errors • AI Agent SDK

Structured exception hierarchy for PraisonAI SDK.

errors

AI Agent

Structured exception hierarchy for PraisonAI SDK.

Provides uniform error semantics for consistent handling across:

  • Multi-agent orchestration
  • Tool execution
  • LLM interactions
  • Memory operations
  • External integrations

Import

python
from praisonaiagents import errors

Classes

Constants

NameValue
LEGACY_ERROR_CATEGORY_MAP{'tool': 'unknown', 'llm': 'unknown', 'budget': 'billing', 'validation': 'format_error', 'network': 'unknown', 'handoff': 'unknown'}