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
| Name | Type | Description |
|---|---|---|
include_image_base64 | bool | Include base64 image data in response |
pages | Option<Vec<u32>> | Specific pages to process |
image_limit | Option<u32> | Maximum number of images to process |
timeout | u32 | Timeout in seconds |
api_base | Option<String> | API base URL |
api_key | Option<String> | API key |
Methods
new
fn new() -> SelfCreate a new OCRConfig
pages
fn pages(mut self, pages: Vec<u32>) -> SelfSet pages to process
Parameters:
| Name | Type |
|---|---|
pages | Vec<u32> |
image_limit
fn image_limit(mut self, limit: u32) -> SelfSet image limit
Parameters:
| Name | Type |
|---|---|
limit | u32 |
Source
View on GitHubpraisonai/src/agents/mod.rs at line 561