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

python
def serve(host: Optional[str], port: Optional[int], reload: bool) -> None

Parameters

ParamField Optional[str]

Host address to bind to (default: “0.0.0.0”)

ParamField Optional[int]

Port number to listen on (default: 8000)

ParamField bool

Enable auto-reload for development (default: False) **kwargs: Additional server configuration

Source

View on GitHub

praisonaiagents/app/protocols.py at line 58