handoff_to
Method
This is a method of the Agent class in the agent module.Programmatically hand off a task to another agent. This is the unified programmatic handoff API that replaces delegate(). It uses the same Handoff mechanism as LLM-driven handoffs but can be called directly from code.
Signature
Parameters
The agent to hand off to
The task/prompt to pass to target agent
Optional additional context dictionary
Optional HandoffConfig for advanced settings
Returns
HandoffResult with response or error

