HTTP Launcher Protocol • AI Agent SDK

HttpLauncherProtocol: Protocol for HTTP server launchers.

HttpLauncherProtocol

Defined in the protocols module.

AI Agent

Protocol for HTTP server launchers.

This defines the interface for launching HTTP servers for agents. The core SDK defines the protocol, while heavy implementations (FastAPI, uvicorn) live in the wrapper layer.

Methods

Usage

python
class FastAPILauncher:
        def launch(self, agent, path="/", port=8000, host="0.0.0.0", debug=False):
            # FastAPI implementation
            pass

    # In Agent class
    launcher: HttpLauncherProtocol = get_http_launcher()
    launcher.launch(self, path, port, host, debug)

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 251