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

# backends • AI Agent SDK

> Built-in approval backends for PraisonAI Agents.

# backends

AI Agent

Built-in approval backends for PraisonAI Agents.

Provides lightweight backends that ship with the core SDK:

* **AutoApproveBackend** — always approves (bots, trusted envs).
* **ConsoleBackend** — interactive Rich terminal prompt (CLI default).
* **AgentApproval** — delegates approval decision to another AI agent.

## Import

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

## Classes

> [card] [AutoApproveBackend](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/AutoApproveBackend.md)
>
> Always approves.  Use for bots or trusted unattended environments.

> [card] [ConsoleBackend](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/ConsoleBackend.md)
>
> Interactive Rich terminal prompt.  Default for CLI usage.

> [card] [AgentApproval](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/AgentApproval.md)
>
> Delegates approval decisions to another AI agent.

> [card] [CallbackBackend](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/CallbackBackend.md)
>
> Wraps a legacy `(function_name, arguments, risk_level) - ApprovalDecision` callback

### Constants

| Name | Value |
| - | - |
| `_COMMAND_ARG_KEYS` | `frozenset({'command', 'cmd', 'commands', 'script', 'shell', 'code', 'source', 'program'})` |
| `_SHELL_OPERATORS` | `frozenset({';', '&', '\|', '(', ')', '{', '}', '&lt;', '&gt;', '`'})\` |
| `_VERDICT_TOKEN_RE` | `re.compile('[A-Z]+')` |
| `_NEGATIONS` | `frozenset({'NOT', 'NO', 'NEVER', 'DONT', 'DON', 'CANT', 'CAN'})` |
| `_ARGUMENTS_TAG_RE` | `re.compile('&lt;\\s*/?\\s*arguments\\s*&gt;', re.IGNORECASE)` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.