Handoff • AI Agent SDK

Handoff: Represents a handoff configuration for delegating tasks to another agent.

Handoff

Defined in the handoff module.

AI Agent

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

ParamField Agent

No description available.

ParamField Optional[str]

No description available.

ParamField Optional[str]

No description available.

ParamField Optional[Callable]

No description available.

ParamField Optional[type]

No description available.

ParamField Optional

No description available.

ParamField Optional[HandoffConfig]

No description available.

Methods

Source

View on GitHub

praisonaiagents/agent/handoff.py at line 369


Related Documentation