Class: Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt

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

Overview

See Also:

  • Revox::Models::CampaignLaunchResponse::Session::InFlightCall#last_call_attempt

Defined Under Namespace

Modules: DialError, EndReason, EndedBy, Result, Status Classes: EmailLog, HandledByUser, PostCallTranscript, SMSLog, SpeechEvent, Transcript

Instance Attribute Summary collapse

Class Method 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:, created_at:, from_address:, resend_message_id:, subject:, to_emails:) ⇒ Object

Parameters:

  • id (String)
  • created_at (Object)

    When the email was sent.

  • from_address (String)
  • resend_message_id (String, nil)
  • subject (String)
  • to_emails (Array<String>)


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

Instance Attribute Details

#answered_atObject

The time the call was answered.

Parameters:

  • value (top)

Returns:

  • (Object)


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

required :answered_at, Revox::Internal::Type::Unknown

#assistants_usedArray<String>?

Assistant node ids entered during this attempt, in traversal order.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


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

optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true

#dial_errorSymbol, ...

The SIP error that occurred.

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::dial_error, nil)

Returns:



2976
2977
2978
# File 'lib/revox/models/campaign_launch_response.rb', line 2976

required :dial_error,
enum: -> { Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::DialError },
nil?: true

#email_logArray<Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::EmailLog>?

Notification emails sent in connection with the call, ordered oldest first (from/to addresses, subject, sent time).



3053
3054
3055
# File 'lib/revox/models/campaign_launch_response.rb', line 3053

optional :email_log,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::EmailLog] },
nil?: true

#end_reasonSymbol, ...

Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call', 'voicemail', 'transfer', 'ivr_no_navigate'.

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::end_reason, nil)

Returns:



3062
3063
3064
# File 'lib/revox/models/campaign_launch_response.rb', line 3062

optional :end_reason,
enum: -> { Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::EndReason },
nil?: true

#ended_atObject

The time the call ended.

Parameters:

  • value (top)

Returns:

  • (Object)


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

required :ended_at, Revox::Internal::Type::Unknown

#ended_bySymbol, ...

Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or 'system' (e.g. max duration limit).

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::ended_by, nil)

Returns:



3071
3072
3073
# File 'lib/revox/models/campaign_launch_response.rb', line 3071

optional :ended_by,
enum: -> { Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::EndedBy },
nil?: true

#handled_by_aiBoolean

Whether the AI agent conducted the conversation on this attempt. False for a silent speed-dial probe (whose agent only detects a human) and for attempts that were never answered.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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

required :handled_by_ai, Revox::Internal::Type::Boolean

#handled_by_humanBoolean

Whether a human operator conducted (part of) this attempt — a jump-in takeover or a speed-dial operator connection (both stamp human_takeover_at).

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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

required :handled_by_human, Revox::Internal::Type::Boolean

#handled_by_userRevox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::HandledByUser?

The team member responsible for following up on this call.



3005
3006
3007
# File 'lib/revox/models/campaign_launch_response.rb', line 3005

required :handled_by_user,
-> { Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::HandledByUser },
nil?: true

#idString

The ID of the call attempt.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#phone_numberString

The phone number that was called. Formatted in E.164 format. Example: +1234567890

Parameters:

  • value (String)

Returns:

  • (String)


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

required :phone_number, String

#post_call_transcriptArray<Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::PostCallTranscript>?

Higher-quality transcript generated after the call via Soniox async STT. Null until generated or when no recording is available.



3080
3081
3082
# File 'lib/revox/models/campaign_launch_response.rb', line 3080

optional :post_call_transcript,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::PostCallTranscript] },
nil?: true

#recording_urlString?

The URL of the audio recording of the call.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :recording_url, String, nil?: true

#resultSymbol, ...

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::result, nil)

Returns:



3025
3026
3027
# File 'lib/revox/models/campaign_launch_response.rb', line 3025

required :result,
enum: -> { Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::Result },
nil?: true

#sms_logArray<Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::SMSLog>?

Automatic SMS sent after the call (voicemail and after-call), ordered oldest first. The in-call send_sms is excluded — it already appears in the transcript as a tool call.



3090
3091
3092
# File 'lib/revox/models/campaign_launch_response.rb', line 3090

optional :sms_log,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::SMSLog] },
nil?: true

#speech_eventsArray<Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::SpeechEvent>?

Per-turn speech segments (VAD-derived) with timing and pipeline latencies, ordered by started_speaking_at_ms. Empty for calls recorded before this was tracked or for realtime sessions that don't emit them.



3100
3101
3102
# File 'lib/revox/models/campaign_launch_response.rb', line 3100

optional :speech_events,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::SpeechEvent] },
nil?: true

#started_atObject

The time the call started.

Parameters:

  • value (top)

Returns:

  • (Object)


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

required :started_at, Revox::Internal::Type::Unknown

#statusSymbol, Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::Status

The status of the call attempt.

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::status)

Returns:



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

required :status,
enum: -> { Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::Status }

#structured_outputHash{Symbol=>Object}?

The data extracted from the call, using the structured output config from the parent call object.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


3109
3110
3111
# File 'lib/revox/models/campaign_launch_response.rb', line 3109

optional :structured_output,
Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown],
nil?: true

#transcriptArray<Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::Transcript>?

The live transcript of the call, built in real time.



3117
3118
3119
# File 'lib/revox/models/campaign_launch_response.rb', line 3117

optional :transcript,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignLaunchResponse::Session::InFlightCall::LastCallAttempt::Transcript] },
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {