Skip to main content
Agents can read text from images - receipts, documents, signs, and screenshots.

Quick Start

1

Simple Usage

2

With Configuration


User Interaction Flow


Configuration Levels


Common Uses


Dedicated OCRAgent class

OCRAgent calls a real OCR backend through a required extractor function.

OCRAgentConfig

OCRConfig

OCRExtractRequest

The extractor receives this request:

OCRResult

The extractor returns this shape:
OCRAgent.extract() (and .read()) now throw when no extractor is configured. Before, they returned placeholder text like "[OCR extraction from … - requires API integration]" while logging ✓ OCR complete. That fabricated path is gone.

API Reference

OCRConfig

Complete configuration options

OCRAgent

Full class documentation

Best Practices

Set detail: 'high' when reading receipts or documents.
“Extract the total and date” works better than “read this”.
Clear, well-lit images produce better results.

Vision

Image analysis

Files

File operations