
Planner–Executor Patterns
The classic 'Plan and Solve' architecture.
Planner–Executor Patterns
Most complex tasks require thinking before doing.
The Two-Brain System
- Planner (Brain): Generates a list of steps. "1. Get data. 2. Chart data."
- Executor (Hands): Takes Step 1, executes it, returns result.
- Replanner (Brain): Looks at the result. Updates the plan. "Step 1 done. Step 2 is next."
Why separate them?
- The Planner needs high reasoning capabilities (GPT-4).
- The Executor is just calling tools, so it can be simpler/faster.
- If the Executor fails, the Planner can generate a new plan to work around the failure.