Await For Completions • AI Agent SDK
await_for_completions: Async, event-driven version of wait_for_completions.
await_for_completions
Async
Method
</div>
This is a method of the AgentTeam class in the agents module.
Async, event-driven version of wait_for_completions.
Signature
async def await_for_completions(timeout: Optional[float], agent_ids: Optional[List[str]]) -> List[SubAgentCompletionEvent]Parameters
ParamField
Optional[float]No description available.
ParamField
OptionalNo description available.
Returns
ResponseField
List[SubAgentCompletionEvent]The result of the operation.
Uses
asyncio.get_running_loopasyncio.Eventcompleted_agents.addloop.call_soon_threadsafecheck_completionssubscribecompletion_event.is_setasyncio.wait_forcompletion_event.waitunsubscribe
Source
View on GitHubpraisonaiagents/agents/agents.py at line 4822