Web Server¶
A WebSocket-first server exposes an HTTP API to create runs and a WebSocket to stream all execution events, enabling custom UIs.
Run the server¶
On start, it prints endpoints like:
- HTTP API:
http://localhost:8000
- WebSocket:
ws://localhost:8001
- Create run:
POST /runs/new
HTTP API¶
POST /runs/new
with JSON body:
or
Response:
WebSocket¶
Connect to ws://localhost:8001/ws/<run_id>
to receive a stream of events:
- Connection, start, termination
- Agent messages and streaming updates
- Human input prompts
- Meeting broadcasts
- Session log entries
Typical flow¶
- Start server
POST /runs/new
with{ path: "my.pb" }
- Open WebSocket and render events in your UI
See also¶
- Playground for a ready-made HTML client
- Observability & Debugging