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
Create focused specialists
Create focused specialists
Each agent should handle one domain well. This makes handoffs accurate.
Write clear descriptions
Write clear descriptions
The main agent uses descriptions to decide when to transfer.
Explain transfers to users
Explain transfers to users
Let users know theyβre being connected to a specialist.
Related
Agent
Create AI agents
Teams
Multi-agent teams

