Interface: PlanStep
@providerprotocol/agents / index / PlanStep
Interface: PlanStep
Section titled “Interface: PlanStep”Defined in: src/state/types.ts:157
A single step in an agent’s execution plan.
Represents a discrete unit of work within a larger plan, supporting dependency tracking for proper execution ordering. Used by the Plan execution strategy to decompose complex tasks.
Example
Section titled “Example”const steps: PlanStep[] = [ { id: 'step-1', description: 'Search for relevant files', tool: 'file_search', dependsOn: [], status: 'completed' }, { id: 'step-2', description: 'Analyze file contents', tool: 'read_file', dependsOn: ['step-1'], status: 'pending' }];Properties
Section titled “Properties”dependsOn
Section titled “dependsOn”dependsOn:
string[]
Defined in: src/state/types.ts:168
IDs of steps that must complete before this step can execute
description
Section titled “description”description:
string
Defined in: src/state/types.ts:162
Human-readable description of what this step accomplishes
id:
string
Defined in: src/state/types.ts:159
Unique identifier for this step within the plan
status
Section titled “status”status:
PlanStepStatus
Defined in: src/state/types.ts:171
Current execution status of this step
optionaltool:string
Defined in: src/state/types.ts:165
Name of the tool to invoke for this step (if applicable)