Skip to main content

praisonaiagents.server

Core SDK Server Module for PraisonAI Agents. Provides an optional HTTP server with SSE event streaming for real-time agent communication. Features:
  • REST API for agent operations
  • Server-Sent Events (SSE) for real-time updates
  • Event bus integration
  • Multi-project support
  • CORS handling
Usage: from praisonaiagents.server import AgentServer

Create and start server

server = AgentServer(port=8080) server.start()

Or use as context manager

with AgentServer(port=8080) as server:

Server is running

pass

Overview

This module provides components for server.