@deskcreate/agentcraft
    Preparing search index...

    Interface ApprovalStepConfig

    Configuration for ApprovalStep.

    interface ApprovalStepConfig {
        approve?: (ctx: WorkflowContext) => boolean | Promise<boolean>;
        description: string;
        id?: string;
        onApproved?: (ctx: WorkflowContext) => void | Promise<void>;
        onRejected?: (
            ctx: WorkflowContext,
            reason?: string,
        ) => void | Promise<void>;
        timeoutMs?: number;
    }
    Index

    Properties

    approve?: (ctx: WorkflowContext) => boolean | Promise<boolean>
    description: string
    id?: string
    onApproved?: (ctx: WorkflowContext) => void | Promise<void>
    onRejected?: (ctx: WorkflowContext, reason?: string) => void | Promise<void>
    timeoutMs?: number