Hand a task across
Specialists
A handoff lets one agent pass the conversation to a specialist.
Build the specialists first. Pass those agent objects in handoffs.
Example
from praisonai import Agent
tech = Agent(
name="TechnicalSupport",
instructions="You are a technical support specialist.",
)
billing = Agent(
name="Billing",
instructions="You are a billing specialist.",
)
desk = Agent(
name="CustomerService",
instructions="For technical issues, hand off to TechnicalSupport.",
handoffs=[tech, billing],
)
print(desk.chat("I cannot install the software"))Example explained
- handoffs — A list of agent objects, not their names.
Reference: documentation