Skip to main content

AgentOSProtocol

Defined in the protocols module.
AI Agent Protocol for AgentOS implementations. AgentOS is a production platform for deploying agents as web services. It wraps agents, teams, and flows into a unified API server. Implementations should:
  • Provide FastAPI-based HTTP endpoints
  • Support WebSocket connections for real-time communication
  • Handle agent lifecycle management
  • Provide health checks and monitoring endpoints
Example implementation (in praisonai wrapper): class AgentOS: def init( self, name: str = “PraisonAI App”, agents: List[Agent] = None, teams: List[AgentTeam] = None, flows: List[AgentFlow] = None, ): … def serve(self, host: str = “0.0.0.0”, port: int = 8000): '''Start the FastAPI server.''' … def get_app(self): '''Get the FastAPI app instance for custom mounting.''' …

Methods

Notes

The protocol was renamed from AgentAppProtocol to AgentOSProtocol in v1.0. AgentAppProtocol remains as a silent alias for backward compatibility.

Source

View on GitHub

praisonaiagents/app/protocols.py at line 21