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

  • asyncio.Semaphore
  • time.time
  • logger.info
  • achat
  • asyncio.get_event_loop
  • loop.run_in_executor
  • HandoffResult
  • asyncio.wait_for
  • HandoffTimeoutError

Used By

Source

View on GitHub

praisonaiagents/agent/handoff.py at line 453

Async Feature

Background Tasks

Async Jobs