Record of a step execution

interface StepExecutionRecord {
    stepId: string;
    stepType:
        | "agent"
        | "tool"
        | "conditional"
        | "parallel"
        | "loop"
        | "human_in_the_loop"
        | "rag"
        | "transform";
    status: "running"
    | "completed"
    | "failed"
    | "skipped";
    startTime: Date;
    endTime?: Date;
    input?: unknown;
    output?: unknown;
    error?: Error;
    retryCount?: number;
}

Properties

stepId: string

Step identifier

stepType:
    | "agent"
    | "tool"
    | "conditional"
    | "parallel"
    | "loop"
    | "human_in_the_loop"
    | "rag"
    | "transform"

Step type

status: "running" | "completed" | "failed" | "skipped"

Execution status

startTime: Date

Start time

endTime?: Date

End time

input?: unknown

Input provided

output?: unknown

Output produced

error?: Error

Error if failed

retryCount?: number

Number of retry attempts