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

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.time
  • logger.info
  • HandoffResult
  • on_delegation
  • logger.warning
  • asyncio.wait_for
  • HandoffTimeoutError

Used By

Source

View on GitHub

praisonaiagents/agent/handoff.py at line 738

Async Feature

Background Tasks

Async Jobs