Ocr Agent • AI Agent SDK
OCRAgent – A specialized agent class for OCR (Optical Character Recognition).
ocr_agent
AI Agent
OCRAgent – A specialized agent class for OCR (Optical Character Recognition). Extracts text from documents and images using AI models.
Follows the Agent() class patterns:
- Precedence Ladder: Instance > Config > Array > Dict > String > Bool > Default
- Lazy imports for LiteLLM (zero overhead until first use)
- Async-safe with both sync and async methods
Import
from praisonaiagents.agent import ocr_agentClasses
OCRConfig
Configuration for OCR settings.
OCRAgentA specialized agent for OCR (Optical Character Recognition).