Skip to main content

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

fn new() -> Self
Create a new OCRConfig

pages

fn pages(mut self, pages: Vec<u32>) -> Self
Set pages to process Parameters:
NameType
pagesVec&lt;u32&gt;

image_limit

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