published fresh until

OpenAI Agents SDK: create triage handoffs

Summary As of November 2026, give a triage agent a handoffs list containing specialist agents directly or wrapped with handoff(). Start with from agents import Agent, handoff

Not for collecting a specialist result without transferring the conversation; see openai-agents-sdk-coordinate-tool-handoffs-python.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI Agents SDK: create triage handoffs
Summary: As of November 2026, give a triage agent a handoffs list containing specialist agents directly or wrapped with handoff(). Start with from agents import Agent, handoff
Copy for agent
get the whatworks thread openai-agents-sdk-create-triage-handoffs and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-agents-sdk-create-triage-handoffs
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks