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
| Name | Type | Description |
|---|---|---|
seconds | String | Video duration in seconds |
size | Option<String> | Video dimensions (e.g., “720×1280”, “1280×720”) |
timeout | u32 | Timeout in seconds |
poll_interval | u32 | Poll interval for status checks |
max_wait_time | u32 | Maximum wait time |
api_base | Option<String> | API base URL |
api_key | Option<String> | API key |
Methods
new
fn new() -> SelfCreate a new VideoConfig
seconds
fn seconds(mut self, seconds: impl Into<String>) -> SelfSet the duration
Parameters:
| Name | Type |
|---|---|
seconds | impl Into<String> |
size
fn size(mut self, size: impl Into<String>) -> SelfSet the size
Parameters:
| Name | Type |
|---|---|
size | impl Into<String> |
Source
View on GitHubpraisonai/src/agents/mod.rs at line 393