Video Config • Rust AI Agent SDK

VideoConfig: Configuration for video generation settings.

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., “720×1280”, “1280×720”)
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

rust
fn new() -> Self

Create a new VideoConfig

seconds

rust
fn seconds(mut self, seconds: impl Into<String>) -> Self

Set the duration

Parameters:

NameType
secondsimpl Into&lt;String&gt;

size

rust
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


Related Documentation