Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Agent orchestration

Route a task to a specialist agent by explicit intent

Have a triage agent route matching requests to the right specialist and define who answers after transfer.

Goal

Route requests to the proper specialist and prevent mismatches from being handed off.

Steps

  1. List each specialist’s boundaries, acceptance conditions, and explicit exclusions. [openai-handoffs]
  2. Give each specialist a concrete handoff_description and register allowed targets in Agent(handoffs=[...]). [openai-handoffs]
  3. Use handoff(agent=..., input_type=...) for structured routing fields and check authorization in on_handoff. [openai-handoffs]
  4. Provide a clarification or return-to-manager path for boundary cases rather than silently choosing a specialist. [openai-handoffs]
  5. Test matching, non-matching, and ambiguous requests for each specialist and check who answers. [openai-handoffs]

How to verify

Routing tests should show the selected specialist and response owner; ambiguous requests should clarify or fall back.

Troubleshooting

If routing is unstable, narrow handoff descriptions and add explicit fallback behavior for ambiguous requests.

Permissions

Prerequisites

Permissions

Limitations

SDK behavior varies by version. Check the pinned revision against your agent or client, then review data retention, authorization, and side effects before production use.

Pinned upstream source

https://github.com/openai/openai-agents-python/blob/f53c62451c7f34c15f0c87fa745e05404025420f/docs/handoffs.md

Repository
openai/openai-agents-python
File path
docs/handoffs.md
Pinned commit
f53c62451c7f34c15f0c87fa745e05404025420f
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: MIT

Main topic

Turn ecommerce campaign materials into a reviewable weekly brief

Related resources