HTTP API Guide¶
Use LLM Council as an HTTP server with REST API and SSE streaming.
Installation¶
Start Server¶
Endpoints¶
POST /v1/council/query¶
Submit a query to the council.
curl -X POST http://localhost:8001/v1/council/query \
-H "Content-Type: application/json" \
-d '{
"query": "What are best practices for error handling?",
"confidence": "balanced"
}'
GET /v1/council/stream¶
Stream council events via SSE.
GET /v1/health¶
Health check endpoint.
SSE Events¶
| Event | Description |
|---|---|
council.deliberation_start |
Council begins |
council.stage1.complete |
Initial responses ready |
model.vote_cast |
Model submitted ranking |
council.stage2.complete |
Rankings complete |
council.complete |
Final answer ready |