Class: Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent
- Defined in:
- lib/revox/models/call_retrieve_response.rb,
sig/revox/models/call_retrieve_response.rbs
Defined Under Namespace
Modules: Speaker
Instance Attribute Summary collapse
- #id ⇒ String
-
#is_real_turn ⇒ Boolean
False when the segment was flagged as noise/blip rather than a meaningful turn.
-
#llm_system_prompt ⇒ String?
Agent-only: despite the name, the whole prompt the LLM was given for this turn — system instructions plus conversation history — as JSON.
-
#llm_ttft_ms ⇒ Float?
Agent-only: LLM time-to-first-token for the reply, in ms.
-
#llm_winner_model ⇒ String?
Agent-only: the model that produced the reply — the winning leg when the LLM is a race, which is also the model
llm_ttft_msdescribes. -
#speaker ⇒ Symbol, Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent::Speaker
Who was speaking during this segment.
-
#started_speaking_at_ms ⇒ Float
Milliseconds since session start when speech began.
-
#stopped_speaking_at_ms ⇒ Float?
Milliseconds since session start when speech ended.
-
#stt_transcription_delay_ms ⇒ Float?
User-only: time from end-of-speech to final transcript, in ms.
-
#transcript ⇒ String?
Recognized text for this segment, when available.
-
#tts_ttfb_ms ⇒ Float?
Agent-only: TTS time-to-first-audio-byte for the reply, in ms.
-
#was_cut ⇒ Boolean?
Agent-only: true when the agent's audio was interrupted (real or auto-resumed).
Instance Method Summary collapse
-
#initialize(id:, is_real_turn:, llm_system_prompt:, llm_ttft_ms:, llm_winner_model:, speaker:, started_speaking_at_ms:, stopped_speaking_at_ms:, stt_transcription_delay_ms:, transcript:, tts_ttfb_ms:, was_cut:) ⇒ Object
constructor
Some parameter documentations has been truncated, see SpeechEvent for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, is_real_turn:, llm_system_prompt:, llm_ttft_ms:, llm_winner_model:, speaker:, started_speaking_at_ms:, stopped_speaking_at_ms:, stt_transcription_delay_ms:, transcript:, tts_ttfb_ms:, was_cut:) ⇒ Object
Some parameter documentations has been truncated, see Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent for more details.
|
|
# File 'lib/revox/models/call_retrieve_response.rb', line 3395
|
Instance Attribute Details
#id ⇒ String
3322 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3322 required :id, String |
#is_real_turn ⇒ Boolean
False when the segment was flagged as noise/blip rather than a meaningful turn.
3328 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3328 required :is_real_turn, Revox::Internal::Type::Boolean |
#llm_system_prompt ⇒ String?
Agent-only: despite the name, the whole prompt the LLM was given for this turn — system instructions plus conversation history — as JSON.
3335 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3335 required :llm_system_prompt, String, nil?: true |
#llm_ttft_ms ⇒ Float?
Agent-only: LLM time-to-first-token for the reply, in ms.
3341 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3341 required :llm_ttft_ms, Float, nil?: true |
#llm_winner_model ⇒ String?
Agent-only: the model that produced the reply — the winning leg when the LLM is
a race, which is also the model llm_ttft_ms describes.
3348 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3348 required :llm_winner_model, String, nil?: true |
#speaker ⇒ Symbol, Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent::Speaker
Who was speaking during this segment.
3354 3355 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3354 required :speaker, enum: -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent::Speaker } |
#started_speaking_at_ms ⇒ Float
Milliseconds since session start when speech began.
3361 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3361 required :started_speaking_at_ms, Float |
#stopped_speaking_at_ms ⇒ Float?
Milliseconds since session start when speech ended. Null when the session ended before the turn closed.
3368 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3368 required :stopped_speaking_at_ms, Float, nil?: true |
#stt_transcription_delay_ms ⇒ Float?
User-only: time from end-of-speech to final transcript, in ms.
3374 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3374 required :stt_transcription_delay_ms, Float, nil?: true |
#transcript ⇒ String?
Recognized text for this segment, when available.
3380 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3380 required :transcript, String, nil?: true |
#tts_ttfb_ms ⇒ Float?
Agent-only: TTS time-to-first-audio-byte for the reply, in ms.
3386 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3386 required :tts_ttfb_ms, Float, nil?: true |
#was_cut ⇒ Boolean?
Agent-only: true when the agent's audio was interrupted (real or auto-resumed). Null on user segments.
3393 |
# File 'lib/revox/models/call_retrieve_response.rb', line 3393 required :was_cut, Revox::Internal::Type::Boolean, nil?: true |
Instance Method Details
#to_hash ⇒ {
2737 |
# File 'sig/revox/models/call_retrieve_response.rbs', line 2737
def to_hash: -> {
|