Interface ExecutionState

Current state of plan execution.

interface ExecutionState {
    planId: string;
    currentStepIndex: number;
    completedSteps: string[];
    failedSteps: string[];
    results: Map<string, PlanStepResult>;
    tokensUsed: number;
    startedAt: Date;
    lastUpdatedAt: Date;
}

Properties

planId: string

Plan being executed

currentStepIndex: number

Current step index

completedSteps: string[]

Completed step IDs

failedSteps: string[]

Failed step IDs

results: Map<string, PlanStepResult>

Accumulated results

tokensUsed: number

Total tokens used

startedAt: Date

Start timestamp

lastUpdatedAt: Date

Last update timestamp