Reference · Agent Orchestration
Six Orchestration Shapes
From Anthropic's "Building effective agents." Pick the simplest one that works.
Workflow = you design the path in code. Agent = the model directs its own path. Graph = a workflow whose nodes may be agents. All are built from the augmented LLM (model + retrieval + tools + memory). [source]
| Shape | Who decides path | Use when |
|---|---|---|
| ① Prompt chaining | You | Same fixed steps every time; add code gates between steps |
| ② Routing | You (classifier picks branch) | Distinct input categories, reliably classifiable |
| ③ Parallelization | You | Independent parts (sectioning) or several attempts (voting) |
| ④ Orchestrator-workers | You fix the shape; the orchestrator picks subtasks | Subtasks only known at runtime |
| ⑤ Evaluator-optimizer | You | Clear criteria; refining measurably helps (the evaluator may be tests) |
| ⑥ Autonomous agent | Model | Open-ended, unpredictable number of steps; needs a strong harness |
① Prompt chaining
② Routing
③ Parallelization
④ Orchestrator-workers
⑤ Evaluator-optimizer
⑥ Autonomous agent
Decision key: ask in order, stop at the first yes
- Model picks its own steps, unknown count? → Autonomous agent
- Work sent back to be redone? → Evaluator-optimizer
- Each input takes one branch of several? → Routing
- Simultaneous calls, list fixed by you in code? → Parallelization
- Simultaneous calls, list decided by a model after seeing input? → Orchestrator-workers
- Otherwise, fixed sequence (gates only stop, never send back) → Prompt chaining
Choosing, simplest first
- One call (+ retrieval, examples)
- Chaining / routing / parallelization
- + evaluator-optimizer if criteria are clear
- Orchestrator-workers if subtasks emerge at runtime
- Autonomous agent if steps are unpredictable
Introduced in Lesson 2: Workflows vs Agents; decision key from Lesson 3.