download • AI Agent SDK

download: Download a video to a file.

download

Method

</div>

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

Download a video to a file.

Signature

python
def download(video_id: str, output: str) -> str

Parameters

ParamField str

The video ID to download

ParamField str

Path to save the video file

Returns

ResponseField str

Path to the saved file

Uses

  • content
  • f.write

Source

View on GitHub

praisonaiagents/agent/video_agent.py at line 759