Await Completion • AI Agent SDK

await_completion: Async version of wait_for_completion().

await_completion

Async

Method

</div>

This is a method of the VideoAgent class in the video_agent module.

Async version of wait_for_completion().

Signature

python
async def await_completion(video_id: str, poll_interval: Optional[int], max_wait_time: Optional[int]) -> Any

Parameters

ParamField str

No description available.

ParamField Optional[int]

No description available.

ParamField Optional[int]

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

  • time.time
  • astatus
  • asyncio.sleep
  • TimeoutError

Used By

Source

View on GitHub

praisonaiagents/agent/video_agent.py at line 612