Skip to main content

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

Classes

AutoApproveBackend

Always approves. Use for bots or trusted unattended environments.

ConsoleBackend

Interactive Rich terminal prompt. Default for CLI usage.

AgentApproval

Delegates approval decisions to another AI agent.

CallbackBackend

Wraps a legacy (function_name, arguments, risk_level) - ApprovalDecision callback