feat: complete voice session safety and confirmation flow
This commit is contained in:
@@ -10,8 +10,12 @@ export interface VoiceTurnSummary {
|
||||
intent_confidence: number | null
|
||||
understanding_summary: string | null
|
||||
requires_confirmation: boolean
|
||||
confirmation_state: string
|
||||
confirmation_reason: string | null
|
||||
confirmation_message: string | null
|
||||
safety_flags: string[]
|
||||
safety_blocked: boolean
|
||||
safety_message: string | null
|
||||
assistant_text: string | null
|
||||
assistant_audio_ready: boolean
|
||||
assistant_audio_url: string | null
|
||||
@@ -49,7 +53,10 @@ export interface VoiceSessionSummary {
|
||||
latest_detected_intent: string | null
|
||||
latest_understanding_summary: string | null
|
||||
latest_requires_confirmation: boolean
|
||||
latest_confirmation_state: string | null
|
||||
latest_confirmation_message: string | null
|
||||
latest_safety_flags: string[]
|
||||
latest_safety_message: string | null
|
||||
latest_assistant_audio_ready: boolean
|
||||
last_turn_status: string | null
|
||||
transcription_mode_hint: string | null
|
||||
@@ -71,6 +78,23 @@ export interface VoiceTurnAcceptedResponse {
|
||||
status: string
|
||||
}
|
||||
|
||||
export interface VoiceSessionAnalytics {
|
||||
window_days: number | null
|
||||
total_sessions: number
|
||||
active_sessions: number
|
||||
finalized_sessions: number
|
||||
abandoned_sessions: number
|
||||
total_turns: number
|
||||
successful_turns: number
|
||||
failed_turns: number
|
||||
asr_failures: number
|
||||
tts_failures: number
|
||||
low_confidence_turns: number
|
||||
safety_interventions: number
|
||||
turn_success_rate: number
|
||||
finalize_conversion_rate: number
|
||||
}
|
||||
|
||||
export interface VoiceTurnUploadAcceptedResponse extends VoiceTurnAcceptedResponse {
|
||||
transcription_provider: string | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user