Handoff (agents)
Definition
A transfer of control between agents: one agent passes the conversation and its history to another, which carries on with the user.
In more detail
In the OpenAI Agents SDK a handoff is offered to the model as a tool, so an agent called Refund Agent becomes a tool named transfer_to_refund_agent, and by default the receiving agent sees the whole conversation so far. A triage agent that passes a support chat to a billing or refunds specialist is the usual example.
The difference from a subagent, or an agent called as a tool, is who keeps control. After a handoff the first agent is out of the loop, while an orchestrator that calls a worker gets a result back and carries on. Filter the history you pass on when the next agent does not need all of it.
Related terms
Multi-agent system
An application in which several agents, often with different roles, tools or instructions, cooperate or hand work to each other.
Orchestrator-workers
A pattern where one model breaks a task into subtasks at run time, hands each to a worker model, and combines the results.
Routing (agent pattern)
A workflow pattern where a first step classifies the input and sends it on to a specialised prompt, tool or model for that type.
Subagent
A separate agent instance with its own context window, launched by a main agent to handle a focused task and report back a short result.
Read more about Handoff (agents)
- Multi-agent orchestration
Splitting work across subagents or cooperating agents with separate context.
- OpenAI Agents SDK
Lightweight Python framework for agents, handoffs and guardrails.
- Workflows vs agents: start with the simplest thing that works
Most LLM features should be a fixed workflow, not an agent. How to tell which one you need, when an agent earns its cost, and the useful patterns in between.