Skip to main content

Handoff

Defined in the handoff module.
Represents a handoff configuration for delegating tasks to another agent. Handoffs are represented as tools to the LLM, allowing agents to transfer control to specialized agents for specific tasks. This is the unified mechanism for agent-to-agent task transfer, supporting:
  • LLM-driven handoffs (via tool calls)
  • Programmatic handoffs (direct Python API)
  • Async handoffs with concurrency control
  • Cycle detection and depth limiting
  • Configurable context policies

Constructor

agent
Agent
required
No description available.
tool_name_override
Optional
No description available.
tool_description_override
Optional
No description available.
on_handoff
Optional
No description available.
input_type
Optional
No description available.
input_filter
Optional
No description available.
config
Optional
No description available.

Methods