Latency Report
The LatencyReport message is the richest latency signal the Agent API emits. The server sends it after each turn with a breakdown of latency across the full STT → LLM → TTS pipeline.
Purpose
LatencyReport lets you attribute latency to the right stage — for example, separating LLM time-to-first-token from TTS time, and isolating tool-call and thinking overhead. It is fully supported and sent automatically; no configuration flag is required to receive it.
Fields
All fields are floats in seconds, and each is optional (omitted when not applicable to that turn), so log defensively rather than assuming every field is present on every report.
Example Payload
Use Cases
Capture LatencyReport the same way as every other frame to chart and troubleshoot latency:
- Attribute end-to-end latency to the STT, LLM, or TTS stage.
- Separate LLM time-to-first-token from TTS time.
- Isolate tool-call and thinking overhead from text generation.
For an end-to-end logging pattern that persists every WebSocket frame, see Session Observability.