O C R Config • Rust AI Agent SDK

OCRConfig: Configuration for OCR settings.

OCRConfig

Defined in the agents module.

Rust AI Agent SDK

Configuration for OCR settings.

Fields

NameTypeDescription
include_image_base64boolInclude base64 image data in response
pagesOption<Vec<u32>>Specific pages to process
image_limitOption<u32>Maximum number of images to process
timeoutu32Timeout in seconds
api_baseOption<String>API base URL
api_keyOption<String>API key

Methods

new

rust
fn new() -> Self

Create a new OCRConfig

pages

rust
fn pages(mut self, pages: Vec<u32>) -> Self

Set pages to process

Parameters:

NameType
pagesVec&lt;u32&gt;

image_limit

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

Set image limit

Parameters:

NameType
limitu32

Source

View on GitHub

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


Related Documentation