> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ocr Agent • AI Agent SDK

> OCRAgent - A specialized agent class for OCR (Optical Character Recognition).

# ocr\_agent

<Badge color="blue">AI Agent</Badge>

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

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.agent import ocr_agent
```

## Classes

<CardGroup cols={2}>
  <Card title="OCRConfig" icon="brackets-curly" href="../classes/OCRConfig">
    Configuration for OCR settings.
  </Card>

  <Card title="OCRAgent" icon="brackets-curly" href="../classes/OCRAgent">
    A specialized agent for OCR (Optical Character Recognition).
  </Card>
</CardGroup>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agents Concept" icon="robot" href="/docs/concepts/agents" />

  <Card title="Single Agent Guide" icon="book-open" href="/docs/guides/single-agent" />

  <Card title="Multi-Agent Guide" icon="users" href="/docs/guides/multi-agent" />

  <Card title="Agent Configuration" icon="gear" href="/docs/configuration/agent-config" />

  <Card title="Auto Agents" icon="wand-magic-sparkles" href="/docs/features/autoagents" />
</CardGroup>
