Agent orchestration
Agent orchestration is how an app with several AI agents decides which agent works, in what order, and who picks what happens next.
Some AI apps use several agents. An agent here is a language model that can use tools and take steps on its own. Agent orchestration answers three questions. Which agents work? In what order? And who chooses what happens next? OpenAI’s Agents SDK (a toolkit for building agents) names two ways to do this. Either the model decides, or your code decides. Anthropic draws a similar line. In a workflow, code that was written in advance sets the path for models and tools. In an agent, the model steers its own steps and picks its own tools. LangGraph’s docs agree that workflows follow paths fixed ahead of time, in a set order.
When the model decides, there are two common moves. The first is a handoff. A triage agent, which sorts incoming requests like a front desk, passes the chat to a specialist. The specialist then takes over. The second move keeps a lead agent in charge. It calls specialists like tools, each for one small job. You can mix both moves. Microsoft AutoGen has a group chat where a model reads the shared conversation. It then picks which agent speaks next, using each agent’s name and short description. By default it will not pick the same agent twice in a row. AutoGen’s example team does web search and data analysis.
When code decides, the path is written down before anything runs. Google’s Agent Development Kit (ADK) has ready-made workflows. They run agents one after another, side by side, or in a loop. No AI model is asked to pick the order. In ADK’s side-by-side example, three research agents each save their result in a shared store. A merger agent then combines them. LangGraph can also create worker steps as it goes, each with its own working memory. The workers write their results to a shared place. The orchestrator, the part in charge, reads them to build the final answer.
Once an app has more than one agent, something has to decide who works next.
Follow one refund request through a triage agent, then compare a loop run by code.
- 1 · registerA developer gives a triage agent a list of handoffs, for example one to a billing agent and one to a refund agent.
- 2 · exposeEach handoff reaches the model as a tool, so a handoff to Refund Agent becomes a tool named transfer_to_refund_agent.
- 3 · chooseThe triage model reads the request and calls one handoff tool, and can attach a small note (a payload) such as a reason and a priority.
- 4 · handoverThe refund agent takes charge until this turn ends and, by default, sees the whole earlier conversation.
There are two levers: let the model choose the next agent, or let your code choose it. You can mix the two.
| Who | What they ask | What it works with |
|---|---|---|
| Support desk | “I was charged twice, can I get my money back?” | A triage agent hands the chat to a refund agent |
| Research team | “Summarise three energy topics at the same time.” | Three agents run in parallel and save results for a merger agent |
| Docs writer | “Keep improving this draft until it reads well.” | A writer agent and a critic agent in a loop capped at five rounds |
| Data analyst | “Find the figures online, then calculate the change.” | A model picks which agent speaks next in a group chat |
- Specialist agents can keep their prompts focused, because a triage agent routes each request to the right one.
- Orchestrating in code makes speed, cost and performance more predictable.
- Agents whose tasks do not depend on each other can run in parallel to save time.
- Model-led orchestration suits open-ended tasks where the subtasks are decided from the specific input.
- Loops do not stop on their own. An ADK LoopAgent needs a maximum iteration count or a stop signal from one of its agents.
- Parallel agents do not share history or state automatically, so you must pass data between them yourself.
- A handoff does not hide data. The next agent sees the earlier conversation unless you filter it.
- Coordination can still fail. One study of multi-agent systems found 14 failure modes, including agents misaligned with each other and weak checking of results.
Sources used
This explainer is written in original language. The links below support its factual claims.
- docsAgent orchestration, OpenAI Agents SDK · read 28 Sept 2026
- docsHandoffs, OpenAI Agents SDK · read 28 Sept 2026
- docsTemplate agent workflows, Google Agent Development Kit · read 28 Sept 2026
- docsLoop workflow, Google Agent Development Kit · read 28 Sept 2026
- docsParallel workflow, Google Agent Development Kit · read 28 Sept 2026
- docsWorkflows and agents, LangChain (LangGraph docs) · read 28 Sept 2026
- docsSelector Group Chat, Microsoft AutoGen · read 28 Sept 2026
- officialBuilding effective agents, Anthropic · read 28 Sept 2026
- paperWhy Do Multi-Agent LLM Systems Fail?, Cemri et al., UC Berkeley · read 28 Sept 2026