Skip to main content

execute_async

AsyncMethod
This is a method of the Handoff class in the handoff module.
Execute handoff asynchronously with concurrency control.

Signature

async def execute_async(source_agent: 'Agent', prompt: str, context: Optional[Dict[str, Any]]) -> HandoffResult

Parameters

source_agent
Agent
required
The agent initiating the handoff
prompt
str
required
The task/prompt to pass to target agent
context
Optional
Optional additional context

Returns

Returns
HandoffResult
HandoffResult with response or error