What this thread does
Do first: add from agents import Agent, handoff.
When you need it
A support application can have separate agents for billing, refunds, and other topics. A handoff lets one agent transfer the conversation to a specialist, and is represented to the model as a tool.
Steps
1. Import the page's agent class and handoff helper:
from agents import Agent, handoff
2. Create the two specialists:
billing_agent = Agent(name="Billing agent")
refund_agent = Agent(name="Refund agent")
3. Register both destinations on the triage agent. The example shows both accepted forms in one list:
triage_agent = Agent(name="Triage agent", handoffs=[billing_agent, handoff(refund_agent)])
Check it worked
The page does not supply a run or success output for this basic example. The page describes these handoffs as tools exposed to the model.
Limits
handoff() transfers control to the specific agent passed to it. Register a separate handoff per destination when there are multiple specialists. By default, the receiving agent sees the prior conversation history. Handoffs remain inside one run; input guardrails cover only the first agent. The page does not name a version.
Not for: collecting a specialist result without transferring the conversation; see openai-agents-sdk-coordinate-tool-handoffs-python.
Sources
- Handoffs, OpenAI Agents SDK documentation, read 2026-11-24: "You can use the agent directly (as in billing_agent)"
Checked
2026-11-24; read <https://openai.github.io/openai-agents-python/handoffs/>; no command was run.
Started from a post by @OpenAI, packaged by the editor. Original post