Agent Handoff
Agent Handoff enables seamless mid-conversation transfers between agents. When a user’s request falls outside the current agent’s expertise, it can transfer to a specialist agent while carrying over the full conversation context.Quick Start
How It Works
- The agent receives a
transfer_to_agenttool based on the configured targets - When the LLM decides a handoff is needed, it calls the tool with the target agent name
- The
HandoffManagercatches the signal and transfers the conversation - The target agent receives the full conversation history and continues naturally
Configuration
Team Handoff Mode
For managed teams, useTeamMode.Handoff:
Events
| Event | Payload |
|---|---|
handoff.transfer | { runId, fromAgent, toAgent, reason } |
handoff.complete | { runId, chain: string[], finalAgent } |