Vision Config • Rust AI Agent SDK

VisionConfig: Configuration for vision processing settings.

VisionConfig

Defined in the agents module.

Rust AI Agent SDK

Configuration for vision processing settings.

Fields

NameTypeDescription
detailStringDetail level (low, high, auto)
max_tokensu32Maximum tokens for response
timeoutu32Timeout in seconds
api_baseOption<String>API base URL
api_keyOption<String>API key

Methods

new

rust
fn new() -> Self

Create a new VisionConfig

detail

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

Set detail level

Parameters:

NameType
detailimpl Into&lt;String&gt;

max_tokens

rust
fn max_tokens(mut self, max_tokens: u32) -> Self

Set max tokens

Parameters:

NameType
max_tokensu32

Source

View on GitHub

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


Related Documentation