Quick Start
1
Enable Planning
2
With Configuration
How Planning Works
The Planning Process
| Phase | What Happens | Output |
|---|---|---|
| Analyze | Understand the task requirements | Goal definition |
| Decompose | Break into subtasks | List of steps |
| Order | Determine dependencies | Execution order |
| Execute | Run each step | Intermediate results |
| Synthesize | Combine results | Final output |
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
llm | str | None | LLM model for planning (uses agent’s LLM if not set) |
tools | list | None | Tools available during planning phase |
reasoning | bool | False | Show reasoning process |
auto_approve | bool | False | Auto-approve plans without confirmation |
read_only | bool | False | Only allow read operations |
Planning Modes
Simple Planning
Configured Planning
Read-Only Planning
Multi-Agent Planning
Enable planning for multi-agent workflows:When to Use Planning
✅ Use Planning For
- Complex multi-step tasks
- Tasks requiring coordination
- Code refactoring projects
- Research and analysis
- Content creation workflows
❌ Skip Planning For
- Simple Q&A
- Single-step operations
- Real-time responses needed
- Trivial tasks
Best Practices
Use a powerful model for planning
Use a powerful model for planning
Planning benefits from stronger reasoning. Use
gpt-4o or similar for planning even if using a smaller model for execution.Enable reasoning for complex tasks
Enable reasoning for complex tasks
Set
reasoning=True to see the agent’s thought process and catch issues early.Review plans before execution
Review plans before execution
Keep
auto_approve=False for critical tasks to review and modify plans.Use read-only mode for analysis
Use read-only mode for analysis
When analyzing code or data, use
read_only=True to prevent accidental modifications.
