Skip to main content

await_for_completions

AsyncMethod
This is a method of the AgentTeam class in the agents module.
Async, event-driven version of wait_for_completions.

Signature

Parameters

Optional[float]
No description available.
Optional
No description available.

Returns

List[SubAgentCompletionEvent]
The result of the operation.

Uses

  • asyncio.Lock
  • asyncio.Event
  • completed_agents.add
  • asyncio.get_running_loop
  • loop.call_soon_threadsafe
  • check_completions
  • completion_event.is_set
  • subscribe
  • asyncio.wait_for
  • completion_event.wait

Source

View on GitHub

praisonaiagents/agents/agents.py at line 3508