O C R Agent • Rust AI Agent SDK
OCRAgent: A specialized agent for OCR (Optical Character Recognition).
OCRAgent
Defined in the agents module.
Rust AI Agent SDK
A specialized agent for OCR (Optical Character Recognition).
Fields
| Name | Type | Description |
|---|---|---|
name | String | Agent name |
model | String | LLM model (e.g., “mistral/mistral-ocr-latest”) |
config | OCRConfig | OCR configuration |
verbose | bool | Verbose output |
Methods
new
fn new() -> OCRAgentBuilderCreate a new OCRAgent builder
name
fn name(&self) -> &strGet agent name
extract
fn extract(&self, source: &str) -> Result<OCRResult>Extract text from a document or image (placeholder)
Parameters:
| Name | Type |
|---|---|
source | &str |
Source
View on GitHubpraisonai/src/agents/mod.rs at line 610