Agents, Tool Use & MCP·Question 25 of 90Intermediate

What are handoffs in multi-agent systems, and how do they differ from orchestration?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

A handoff transfers control of the conversation to a different agent - new system prompt, new tool set, often the same conversation history - and the receiving agent talks to the user (or drives the task) from then on. Orchestration retains control: the orchestrator calls sub-agents like functions and integrates their outputs. The mechanical distinction: in a handoff the delegate becomes the agent; in orchestration it's a tool.

Full worked answer with diagram

A handoff transfers control of the conversation to a different agent - new system prompt, new tool set, often the same conversation history - and the receiving agent talks to the user (or drives the task) from then on. Orchestration retains control: the orchestrator calls sub-agents like functions and integrates their outputs. The mechanical distinction: in a handoff the delegate becomes the agent; in orchestration it's a tool.

Handoffs are the core abstraction of OpenAI's Agents SDK (inherited from its Swarm prototype): implemented as a special tool call (transfer_to_billing_agent) that the runtime interprets as "swap the active agent." Typical use is domain routing in support-style products: a triage agent classifies, then hands off to a billing agent or a technical agent, each with narrow tools and a focused prompt. The value is the same as subagent specialisation - small prompt, few tools, higher per-domain reliability - but with conversational continuity instead of a function-call boundary.

Design decisions that matter:

  • What context transfers. Full history preserves continuity but drags irrelevant (and possibly polluted) context into the specialist; a structured summary ("user, issue, what's been tried") is cleaner but lossy. Most production systems transfer full history within one conversation and summaries across sessions.
  • Routing back. Can the billing agent hand back to triage? Bidirectional handoffs enable flexibility and also ping-pong loops - two agents bouncing a request neither owns. Guard with handoff-count limits and a rule that a bounce-back must include what was attempted.
  • User visibility. Silent handoffs confuse users when tone/capability shifts; explicit ones ("transferring you to billing") set expectations.

When to prefer orchestration instead: when the task decomposes into subtasks with mergeable outputs. Handoffs fit sequential ownership transfer; orchestration fits parallel decomposition.

Worth sketching. Draw where control sits after the call: in one design it moves, in the other it returns.

flowchart LR
    A["Triage agent"] -->|"transfer_to_billing,<br/>control moves"| B["Billing agent"]
    B --> U["User"]
    C["Orchestrator"] -->|"called like a function"| D["Billing worker"]
    D -->|"result returns,<br/>control never left"| C
    C --> U

What a good answer covers

  • A handoff transfers control of the conversation to a different agent - new system prompt, new tool set,…
  • Orchestration retains control: the orchestrator calls sub-agents like functions and integrates their outputs
  • The mechanical distinction: in a handoff the delegate becomes the agent; in orchestration it's a tool
  • Handoffs are the core abstraction of OpenAI's Agents SDK (inherited from its Swarm prototype)
  • The value is the same as subagent specialisation - small prompt, few tools, higher per-domain…

Key terms: What context transfers · Routing back · ping-pong loops · User visibility

Interviewer follow-ups to expect

  1. How do you evaluate routing quality in a handoff system?

  2. What happens to in-flight tool approvals or permissions across a handoff?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep