Skip to main content
Agents can transfer conversations to other specialized agents when needed.

Quick Start

1

Simple Usage

2

With Configuration


User Interaction Flow


Configuration Levels


When to Transfer


Safety Features

Handoffs include built-in protections:
  • Cycle detection: Prevents A β†’ B β†’ A loops
  • Depth limits: Maximum 10 handoffs in a chain
  • Timeouts: Handoffs timeout after 5 minutes

API Reference

Agent Module

Agent module with handoff support

AgentConfig

Agent configuration

Best Practices

Each agent should handle one domain well. This makes handoffs accurate.
The main agent uses descriptions to decide when to transfer.
Let users know they’re being connected to a specialist.

Agent

Create AI agents

Teams

Multi-agent teams