launch • AI Agent SDK

launch: Launch HTTP server for the agent.

launch

Method

</div>

This is a method of the HttpLauncherProtocol class in the protocols module.

Launch HTTP server for the agent.

Signature

python
def launch(agent: Any, path: str, port: int, host: str, debug: bool) -> None

Parameters

ParamField Any

The agent instance to serve

ParamField str

API endpoint path (default: ‘/’)

ParamField int

Server port (default: 8000)

ParamField str

Server host (default: ‘0.0.0.0’)

ParamField bool

Enable debug mode (default: False)

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 272