| 686 | case ArtifactKind::TranscriptAlignment: return "transcript_alignment"; |
| 687 | case ArtifactKind::DiarizationState: return "diarization_state"; |
| 688 | case ArtifactKind::VadState: return "vad_state"; |
| 689 | case ArtifactKind::Custom: return "custom"; |
| 690 | } |
| 691 | return "custom"; |
| 692 | } |
| 693 | |
| 694 | double require_ttft_ms(const std::optional<double> & ttft_ms) { |
| 695 | if (!ttft_ms.has_value()) { |
| 696 | throw std::runtime_error("streaming response produced no TTFT event"); |
| 697 | } |
| 698 | return *ttft_ms; |
| 699 | } |
| 700 |
nothing calls this directly
no test coverage detected