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
def launch(agent: Any, path: str, port: int, host: str, debug: bool) -> NoneParameters
ParamField
AnyThe agent instance to serve
ParamField
strAPI endpoint path (default: ‘/’)
ParamField
intServer port (default: 8000)
ParamField
strServer host (default: ‘0.0.0.0’)
ParamField
boolEnable debug mode (default: False)
Source
View on GitHubpraisonaiagents/agent/protocols.py at line 272