Wait For Completion • AI Agent SDK
wait_for_completion: Wait for video generation to complete.
wait_for_completion
Method
</div>
This is a method of the VideoAgent class in the video_agent module.
Wait for video generation to complete.
Signature
def wait_for_completion(video_id: str, poll_interval: Optional[int], max_wait_time: Optional[int]) -> AnyParameters
ParamField
strThe video ID to poll
ParamField
Optional[int]Seconds between status checks (default: 10)
ParamField
Optional[int]Maximum wait time in seconds (default: 600)
Returns
ResponseField
AnyVideoObject with status “completed” or “failed”
Exceptions
TimeoutError
If max_wait_time is exceeded
Uses
time.timeProgressSpinnerColumnTextColumnprogress.add_taskstatustime.sleepTimeoutError
Used By
Source
View on GitHubpraisonaiagents/agent/video_agent.py at line 557