Skip to content

Interface: PlanStep

@providerprotocol/agents


@providerprotocol/agents / index / 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.

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'
}
];

dependsOn: string[]

Defined in: src/state/types.ts:168

IDs of steps that must complete before this step can execute


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: PlanStepStatus

Defined in: src/state/types.ts:171

Current execution status of this step


optional tool: string

Defined in: src/state/types.ts:165

Name of the tool to invoke for this step (if applicable)