Interface PlanStep

Represents a single step in an execution plan. Each step contains the reasoning, action, and expected outcome.

interface PlanStep {
    stepId: string;
    index: number;
    action: PlanAction;
    reasoning: string;
    expectedOutcome: string;
    dependsOn: string[];
    estimatedTokens: number;
    confidence: number;
    requiresHumanApproval: boolean;
    status: PlanStepStatus;
    result?: PlanStepResult;
}

Properties

stepId: string

Unique step identifier

index: number

Zero-based step index

action: PlanAction

The action to take (tool call, reasoning, etc.)

reasoning: string

Chain-of-thought reasoning for this step

expectedOutcome: string

Expected outcome description

dependsOn: string[]

Dependencies on other step IDs

estimatedTokens: number

Estimated token cost for this step

confidence: number

Confidence score (0-1) in this step's success

requiresHumanApproval: boolean

Whether this step requires human approval

Current execution status

Actual result after execution