Skip to content
sync ai agents

Handoffs vs agents as tools: who owns the reply

Updated November 2026

A handoff passes the conversation to a specialist, which becomes the active agent for the rest of the turn. An agent used as a tool is called by a manager that keeps control of the conversation, and in LangChain subagents return results to the main agent, not the user. Pick handoffs when the specialist should reply to the user directly. Pick agents as tools when one agent must own the final answer.

At a glance

Handoffsagents as tools
What it isHandoffs in the OpenAI Agents SDK let a triage agent route the conversation to a specialist, which then takes over as the active agent.Agents as tools in that SDK let a manager agent keep control while it calls specialist agents through Agent.as_tool().
Who answers the userHandoffs suit cases where you want the specialist to respond directly, according to OpenAI's orchestration guide.Agents as tools, which LangChain calls subagents, return results to the main agent, though interrupts inside a subagent can allow user interaction.
What context movesHandoffs in OpenAI's Python SDK work as though the new agent takes over the conversation and sees the entire previous history.Agents as tools start a nested run, and the parent run's conversation state is not inherited automatically.
Shaping the inputHandoffs accept an input filter, a function that receives the existing input via a HandoffInputData and must return a new one.Agents as tools take one string field called input by default, but you can expose a structured schema by passing parameters.
On failureHandoffs can take failure_error_function, an optional invocation-error formatter that returns the tool output sent to the calling agent, which can then retry or answer without transferring.Agents as tools accept a custom output extractor that can provide a fallback value when the agent's response is missing or malformed.
Where state livesHandoffs in LangChain work through tool calls that update a state variable, which triggers routing or configuration changes.Agents as tools in LangChain are stateless by default, with all conversation memory kept by the main agent.
Approval and checksHandoffs that carry parsed arguments should perform the check at the start of on_handoff when authorization depends on those fields.Agents as tools use the same approval flow as function_tool, so the run pauses when approval is required.

How does each one coordinate agents?

A handoff is delegation by transfer. OpenAI's handoff() helper always transfers control to the specific agent you passed in, so several possible specialists need one handoff each and the model chooses among them. LangChain warns that with subgraph handoffs you must explicitly decide what messages pass between agents. The handoffs pattern page covers the routing side in more detail.

An agent as a tool is delegation by call. When a parent agent in Google ADK calls an AgentTool, the framework runs the target agent, captures its final response, forwards state and artifact changes back to the parent's context, and returns the response as the tool's result. LangChain describes the same shape: the main agent decides which subagent to invoke, what input to give it, and how to combine results. That is the structure of a supervisor agent.

When should you choose handoffs?

When should you choose agents as tools?

Can you use them together?

Yes, and OpenAI's orchestration guide describes the combination. It says a triage agent might hand off to a specialist, and that specialist can still call other agents as tools for narrow subtasks. The handoff decides who talks to the user, and the tool calls do bounded work inside that turn. For keeping history intact across the transfer, see handoffs that don't drop context.

What should you watch out for?

What else should you know?

Which sources does this page use?

Where can you go deeper?