Skip to main content

Module plan

Module plan 

Source
Expand description

Plan mode: structured multi-step execution plans.

When plan mode is enabled, the agent generates a structured plan from plain English input, lets the user review/edit/approve it, and then executes the approved plan step-by-step with progress tracking.

Structs§

ExecutionPlan
A structured multi-step execution plan.
PlanAlternative
An alternative approach the LLM considered but did not choose.
PlanConfig
Plan mode configuration.
PlanStep
A single step in an execution plan.

Enums§

PlanDecision
User decision on a plan under review.
PlanStatus
Status of the overall execution plan.
StepStatus
Status of an individual plan step.

Constants§

PLAN_GENERATION_PROMPT
System prompt addendum that instructs the LLM to output structured JSON plans.

Functions§

parse_plan_json
Parse LLM-generated plan JSON into an ExecutionPlan.