Skip to main content

Agent Planners

Planners inject planning instructions into the system prompt before each LLM call.

Custom planner

PlanReActPlanner

Enforces structured planning tags — the agent must emit /*PLANNING*/ and /*FINAL_ANSWER*/ blocks.

TaskPlanner

Maintains a task board in ctx.state and injects status into the system prompt. Pairs with ManageTasksTool.
The agent calls manage_tasks with actions: initialize, list, create, update, complete, remove.