SSE endpoint for evaluation progress updates.
Streams real-time events from the evaluation engine to connected clients. Supports multiple concurrent sessions and handles disconnections gracefully.
Args: session_id: Evaluation run ID (same as run.id) request: FastAPI request object for disconnect detection
Returns: StreamingResponse with text/event-stream media type
Event Types: - evaluation_progress: Progress updates (X/Y cases, percentage) - evaluation_result: Single test case result - evaluation_complete: Evaluation finished successfully - evaluation_error: Fatal error occurred - evaluation_stopped: Stopped early (fail-fast scenario)
Example SSE Message: data: {"type": "evaluation_progress", "session_id": "...", "data": {...}}
Keepalive: Sends ": keepalive\n\n" every 30 seconds to prevent timeout
Successful Response
Validation Error
No content
Last updated 4 days ago
GET /v1/sse/evaluation/{session_id} HTTP/1.1 Accept: */*