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).

Diagram

Input Data

Agent: OCRAgent

Output Result

Fields

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

Methods

new

rust
fn new() -> OCRAgentBuilder

Create a new OCRAgent builder

name

rust
fn name(&self) -> &str

Get agent name

extract

rust
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


Related Documentation