Planner–Executor Patterns

Planner–Executor Patterns

The classic 'Plan and Solve' architecture.

Planner–Executor Patterns

Most complex tasks require thinking before doing.

The Two-Brain System

  1. Planner (Brain): Generates a list of steps. "1. Get data. 2. Chart data."
  2. Executor (Hands): Takes Step 1, executes it, returns result.
  3. 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.

Subscribe to our newsletter

Get the latest posts delivered right to your inbox.

Subscribe on LinkedIn