Agent OS Protocol • AI Agent SDK
AgentOSProtocol: Protocol for AgentOS implementations.
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 = “127.0.0.1”, port: int = 8000): ”’Start the FastAPI server.”’ …
def get_app(self): ”’Get the FastAPI app instance for custom mounting.”’ …
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: AgentOSProtocol"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffMethods
Notes
The protocol was renamed from AgentAppProtocol to AgentOSProtocol in v1.0. AgentAppProtocol remains as a silent alias for backward compatibility.
Source
View on GitHubpraisonaiagents/app/protocols.py at line 21