serve • AI Agent SDK
serve: Start the AgentApp server.
serve
Method
</div>
This is a method of the AgentOSProtocol class in the protocols module.
Start the AgentApp server.
Signature
def serve(host: Optional[str], port: Optional[int], reload: bool) -> NoneParameters
ParamField
Optional[str]Host address to bind to (default: “0.0.0.0”)
ParamField
Optional[int]Port number to listen on (default: 8000)
ParamField
boolEnable auto-reload for development (default: False) **kwargs: Additional server configuration
Source
View on GitHubpraisonaiagents/app/protocols.py at line 58