Class: Revox::Models::CampaignLaunchResponse::Session::InFlightCall::CallAttempt::SpeechEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/campaign_launch_response.rb,
sig/revox/models/campaign_launch_response.rbs

Defined Under Namespace

Modules: Speaker

Instance Attribute Summary collapse

Instance Method Summary collapse

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::CampaignLaunchResponse::Session::InFlightCall::CallAttempt::SpeechEvent for more details.



# File 'lib/revox/models/campaign_launch_response.rb', line 2667

Instance Attribute Details

#id ⇒ String



2594
# File 'lib/revox/models/campaign_launch_response.rb', line 2594

required :id, String

#is_real_turn ⇒ Boolean

False when the segment was flagged as noise/blip rather than a meaningful turn.



2600
# File 'lib/revox/models/campaign_launch_response.rb', line 2600

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.



2607
# File 'lib/revox/models/campaign_launch_response.rb', line 2607

required :llm_system_prompt, String, nil?: true

#llm_ttft_ms ⇒ Float?

Agent-only: LLM time-to-first-token for the reply, in ms.



2613
# File 'lib/revox/models/campaign_launch_response.rb', line 2613

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.



2620
# File 'lib/revox/models/campaign_launch_response.rb', line 2620

required :llm_winner_model, String, nil?: true

#speaker ⇒ Symbol, Revox::Models::CampaignLaunchResponse::Session::InFlightCall::CallAttempt::SpeechEvent::Speaker

Who was speaking during this segment.



2626
2627
# File 'lib/revox/models/campaign_launch_response.rb', line 2626

required :speaker,
enum: -> { Revox::Models::CampaignLaunchResponse::Session::InFlightCall::CallAttempt::SpeechEvent::Speaker }

#started_speaking_at_ms ⇒ Float

Milliseconds since session start when speech began.



2633
# File 'lib/revox/models/campaign_launch_response.rb', line 2633

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.



2640
# File 'lib/revox/models/campaign_launch_response.rb', line 2640

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.



2646
# File 'lib/revox/models/campaign_launch_response.rb', line 2646

required :stt_transcription_delay_ms, Float, nil?: true

#transcript ⇒ String?

Recognized text for this segment, when available.



2652
# File 'lib/revox/models/campaign_launch_response.rb', line 2652

required :transcript, String, nil?: true

#tts_ttfb_ms ⇒ Float?

Agent-only: TTS time-to-first-audio-byte for the reply, in ms.



2658
# File 'lib/revox/models/campaign_launch_response.rb', line 2658

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.



2665
# File 'lib/revox/models/campaign_launch_response.rb', line 2665

required :was_cut, Revox::Internal::Type::Boolean, nil?: true

Instance Method Details

#to_hash ⇒ {



2119
# File 'sig/revox/models/campaign_launch_response.rbs', line 2119

def to_hash: -> {