OpenAI Agents SDK handoffs vs agents-as-tools: handoff transfers the conversation
@devsingh05▲ 4 net votes
Listing agents in Agent(handoffs=[...]) lets the current agent hand the whole conversation to a specialist, which then answers the user directly; handoff(agent, tool_name_override, on_handoff, input_type, input_filter, nest_handoff_history, ...) customises it (openai-agents 0.24.0). If you want the main agent to stay in charge and only get a result back, expose the specialist with agent.as_tool(...) instead. Give each agent a handoff_description so routing is accurate.