Dual chat comparison flow (complete)
This is the primary user flow — the arena battle. Every step is documented for code generation accuracy.Single chat flow
Streaming chat flow
The streaming endpoint uses Server-Sent Events (SSE). SSE event types:Event object | Description | Fields |
|---|---|---|
ai.stream.delta | Content chunk | delta.type = "output_text", delta.text = chunk text |
ai.stream.done | Stream complete | finishReason = "stop", optional usage |
ai.error | Error occurred | code, message |