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
| Handoffs | agents as tools | |
|---|---|---|
| What it is | Handoffs 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 user | Handoffs 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 moves | Handoffs 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 input | Handoffs 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 failure | Handoffs 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 lives | Handoffs 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 checks | Handoffs 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?
- Routing is part of the workflow. OpenAI's guide says to use handoffs when you want the chosen specialist to own the remainder of the current turn.
- Users talk to the specialist. LangChain's supervisor tutorial says that when agents need to have conversations with users, you should use handoffs instead.
- A transfer reason must be logged. OpenAI's SDK suggests input_type for a small piece of model-generated metadata such as a reason or priority.
- History needs trimming before the receiver sees it. You can set an input_filter to change what the next agent gets.
When should you choose agents as tools?
- One agent must own the answer. OpenAI's guide fits this pattern to cases where you want one agent to own the final answer or to combine outputs from several specialists.
- A specialist helps with a bounded subtask. The same page says such a specialist should not take over the user-facing conversation.
- Several specialists should run in one turn. In LangChain, the main agent can invoke multiple subagents in a single turn.
- Structured input matters more than a transfer. OpenAI's handoff docs point you to Agent.as_tool with parameters when you want structured input for a nested specialist without moving the conversation.
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?
- Handoff guardrails cover only part of the chain. OpenAI's SDK applies input guardrails only to the first agent, and output guardrails only to the agent that produces the final output.
- Forwarded history is not redacted. OpenAI's docs state that nested handoff history does not redact sensitive data.
- A tool-agent can return too little. LangChain names a failure mode where sub-agents perform tool calls but don't include the results in their final response.
- Per-thread subagents cannot run in parallel. LangGraph's docs say per-thread subgraphs do not support parallel tool calls, because parallel calls write to the same namespace.
What else should you know?
Does a handoff return a result to the first agent?
In the OpenAI Agents SDK, the specialist becomes the active agent for the rest of the turn. If the caller needs a result back to work with, call the specialist as a tool instead.
Does the tool-agent see the parent conversation?
Not automatically. To share client-managed history between parent and nested runs, OpenAI's docs say to explicitly pass the same session to both.
Can I filter history on every handoff?
Not with every conversation setup. OpenAI's docs say server-managed conversations do not support handoff input filters.
How does Google ADK wrap an agent for tool calls?
You wrap the target agent instance in AgentTool and add it to the parent LlmAgent's tools list. In Python, AgentTool validates the calling agent's arguments against the target agent's input_schema when one is set.
Which sources does this page use?
- Agent orchestration (openai.github.io), reviewed November 2026
- Subagents (docs.langchain.com), reviewed November 2026
- Handoffs (openai.github.io), reviewed November 2026
- Tools (openai.github.io), reviewed November 2026
- Handoffs (openai.github.io), reviewed November 2026
- Multi-agent (docs.langchain.com), reviewed November 2026
- Handoffs (docs.langchain.com), reviewed November 2026
- Custom template workflows (adk.dev), reviewed November 2026
- Build a personal assistant with subagents (docs.langchain.com), reviewed November 2026
- Subgraphs (docs.langchain.com), reviewed November 2026
- Simple agents (adk.dev), reviewed November 2026