Skip to main content

OCRAgent

Defined in the agents module.
Rust AI Agent SDK A specialized agent for OCR (Optical Character Recognition).

Fields

NameTypeDescription
nameStringAgent name
modelStringLLM model (e.g., “mistral/mistral-ocr-latest”)
configOCRConfigOCR configuration
verboseboolVerbose output

Methods

new

fn new() -> OCRAgentBuilder
Create a new OCRAgent builder

name

fn name(&self) -> &str
Get agent name

extract

fn extract(&self, source: &str) -> Result<OCRResult>
Extract text from a document or image (placeholder) Parameters:
NameType
source&str

Source

View on GitHub

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