TurnMetricsSummary
One completed (or interrupted) conversation turn's timing summary.
Defined in: src/core/pipeline/TurnMetrics.ts:121
One completed (or interrupted) conversation turn’s timing summary.
Remarks
Emitted through the collector’s summary callback, which CompositeVoice re-emits as the turn.metrics SDK event.
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
durations | TurnDurations | Derived phase durations in milliseconds. | src/core/pipeline/TurnMetrics.ts:144 |
eagerUsed | boolean | Whether an eager (preflight-triggered) LLM generation was adopted. | src/core/pipeline/TurnMetrics.ts:132 |
interrupted | boolean | Whether the turn ended early — barge-in, stopSpeaking(), or a pipeline error — rather than completing playback. | src/core/pipeline/TurnMetrics.ts:138 |
modality | "voice" | "text" | How the turn was initiated: transcribed speech or typed text. | src/core/pipeline/TurnMetrics.ts:129 |
timestamps | TurnTimestamps | Absolute timestamps (epoch ms) for each captured stage. | src/core/pipeline/TurnMetrics.ts:141 |
transcript | string | The user text that started the turn. | src/core/pipeline/TurnMetrics.ts:126 |
turnId | number | Monotonic turn counter, starting at 1 for the first turn. | src/core/pipeline/TurnMetrics.ts:123 |