Skip to main content

handoff_to_async

AsyncMethod
This is a method of the Agent class in the agent module.
Asynchronously hand off a task to another agent. This is the async version of handoff_to() with concurrency control and timeout support.

Signature

Parameters

target_agent
Agent
required
The agent to hand off to
prompt
str
required
The task/prompt to pass to target agent
context
Optional
Optional additional context dictionary
config
Optional
Optional HandoffConfig for advanced settings

Returns

Returns
'HandoffResult'
HandoffResult with response or error

Usage

Uses

  • Handoff
  • HandoffConfig
  • handoff_obj.execute_async

Source

View on GitHub

praisonaiagents/agent/agent.py at line 2464

Async Feature

Background Tasks

Async Jobs

Handoffs Concept

Handoffs Feature