Skip to main content

VideoConfig

Defined in the agents module.
Rust AI Agent SDK Configuration for video generation settings.

Fields

NameTypeDescription
secondsStringVideo duration in seconds
sizeOption<String>Video dimensions (e.g., “720x1280”, “1280x720”)
timeoutu32Timeout in seconds
poll_intervalu32Poll interval for status checks
max_wait_timeu32Maximum wait time
api_baseOption<String>API base URL
api_keyOption<String>API key

Methods

new

fn new() -> Self
Create a new VideoConfig

seconds

fn seconds(mut self, seconds: impl Into<String>) -> Self
Set the duration Parameters:
NameType
secondsimpl Into&lt;String&gt;

size

fn size(mut self, size: impl Into<String>) -> Self
Set the size Parameters:
NameType
sizeimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/agents/mod.rs at line 393