execute_programmatic
Method
This is a method of the Handoff class in the handoff module.Execute handoff programmatically (not via LLM tool call). This is the unified programmatic handoff API that replaces Agent.delegate().
Signature
Parameters
Agent
required
The agent initiating the handoff
str
required
The task/prompt to pass to target agent
Optional
Optional additional context
Returns
HandoffResult
HandoffResult with response or error
Uses
time.timelogger.infochatHandoffResultlogger.error
Used By
Source
View on GitHub
praisonaiagents/agent/handoff.py at line 367
