Skip to main content

SDK Reference

Complete SDK documentation for PraisonAI packages. This section covers all classes, modules, and functions available in the SDK.

Packages

Quick Start

from praisonaiagents import Agent

agent = Agent(instructions="You are a helpful assistant")
response = agent.start("Hello!")
print(response)

Core Modules

ModuleDescription
AgentCore agent class for AI interactions
AgentsMulti-agent orchestration
TaskTask definition and management
ProcessTask execution flows

Agent Variants

ModuleDescription
ImageAgentVision and image processing agent
RouterAgentIntelligent request routing
DeepResearchAgentMulti-step research with citations
QueryRewriterAgentQuery optimization for RAG
PromptExpanderAgentPrompt enhancement
ContextAgentContext-aware processing

Data & Memory

ModuleDescription
MemoryMemory management for stateful agents
KnowledgeKnowledge base and RAG support
SessionSession management and persistence
DBDatabase adapters and storage
CheckpointsState checkpointing

Tools & Integration

ModuleDescription
ToolsTool system and decorators
MCPModel Context Protocol support
HandoffAgent-to-agent handoffs
WorkflowsMulti-step workflow execution
SkillsAgent Skills standard support

Safety & Control

ModuleDescription
GuardrailsInput/output validation
PlanningPlanning mode support
PolicyPolicy-based controls
ApprovalHuman-in-the-loop approval
ThinkingExtended thinking support

Observability

ModuleDescription
TelemetryObservability and monitoring
HooksEvent hooks and callbacks
DisplayConsole display utilities
EvalAgent evaluation framework

praisonai Wrapper

ModuleDescription
PraisonAIMain wrapper class
CLICommand-line interface
AutoAutomated agent generation
DeployDeployment utilities
SchedulerTask scheduling

Installation

# Core agents package
pip install praisonaiagents

# With memory support
pip install "praisonaiagents[memory]"

# With knowledge/RAG support
pip install "praisonaiagents[knowledge]"

# Full wrapper with all features
pip install "praisonai[all]"

See Also