@deskcreate/agentcraft
    Preparing search index...

    Interface AgentWorkflowConfig<TInput>

    Definition passed to AgentWorkflow.create().

    interface AgentWorkflowConfig<TInput = unknown> {
        id?: string;
        input?: ZodType<TInput, ZodTypeDef, TInput>;
        onStepComplete?: (
            stepId: string,
            output: unknown,
            ctx: WorkflowContext<TInput>,
        ) => void | Promise<void>;
        onStepError?: (
            stepId: string,
            error: Error,
            ctx: WorkflowContext<TInput>,
        ) => void | Promise<void>;
        steps: readonly WorkflowStep[];
        workspace?: AgentWorkspaceInstance;
    }

    Type Parameters

    • TInput = unknown
    Index

    Properties

    id?: string
    input?: ZodType<TInput, ZodTypeDef, TInput>
    onStepComplete?: (
        stepId: string,
        output: unknown,
        ctx: WorkflowContext<TInput>,
    ) => void | Promise<void>
    onStepError?: (
        stepId: string,
        error: Error,
        ctx: WorkflowContext<TInput>,
    ) => void | Promise<void>
    steps: readonly WorkflowStep[]