Class: Revox::Models::CallRetrieveResponse::Call::LastCallAttempt
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::CallRetrieveResponse::Call::LastCallAttempt
- Defined in:
- lib/revox/models/call_retrieve_response.rb,
sig/revox/models/call_retrieve_response.rbs
Overview
Defined Under Namespace
Modules: DialError, EndReason, EndedBy, Result, Status Classes: EmailLog, HandledByUser, PostCallTranscript, SMSLog, SpeechEvent, Transcript
Instance Attribute Summary collapse
-
#answered_at ⇒ Object
The time the call was answered.
-
#assistants_used ⇒ Array<String>?
Assistant node ids entered during this attempt, in traversal order.
-
#dial_error ⇒ Symbol, ...
The SIP error that occurred.
-
#email_log ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::EmailLog>?
Notification emails sent in connection with the call, ordered oldest first (from/to addresses, subject, sent time).
-
#end_reason ⇒ Symbol, ...
Reason for ending the call when ended_by is 'agent'.
-
#ended_at ⇒ Object
The time the call ended.
-
#ended_by ⇒ Symbol, ...
Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or 'system' (e.g. max duration limit).
-
#handled_by_ai ⇒ Boolean
Whether the AI agent conducted the conversation on this attempt.
-
#handled_by_human ⇒ Boolean
Whether a human operator conducted (part of) this attempt — a jump-in takeover or a speed-dial operator connection (both stamp human_takeover_at).
-
#handled_by_user ⇒ Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::HandledByUser?
The team member responsible for following up on this call.
-
#id ⇒ String
The ID of the call attempt.
-
#phone_number ⇒ String
The phone number that was called.
-
#post_call_transcript ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::PostCallTranscript>?
Higher-quality transcript generated after the call via Soniox async STT.
-
#recording_url ⇒ String?
The URL of the audio recording of the call.
- #result ⇒ Symbol, ...
-
#sms_log ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SMSLog>?
Automatic SMS sent after the call (voicemail and after-call), ordered oldest first.
-
#speech_events ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent>?
Per-turn speech segments (VAD-derived) with timing and pipeline latencies, ordered by started_speaking_at_ms.
-
#started_at ⇒ Object
The time the call started.
-
#status ⇒ Symbol, Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::Status
The status of the call attempt.
-
#structured_output ⇒ Hash{Symbol=>Object}?
The data extracted from the call, using the structured output config from the parent call object.
-
#transcript ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::Transcript>?
The live transcript of the call, built in real time.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(id:, created_at:, from_address:, resend_message_id:, subject:, to_emails:) ⇒ Object constructor
- #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:, created_at:, from_address:, resend_message_id:, subject:, to_emails:) ⇒ Object
|
|
# File 'lib/revox/models/call_retrieve_response.rb', line 2949
|
Instance Attribute Details
#answered_at ⇒ Object
The time the call was answered.
2799 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2799 required :answered_at, Revox::Internal::Type::Unknown |
#assistants_used ⇒ Array<String>?
Assistant node ids entered during this attempt, in traversal order.
2874 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2874 optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true |
#dial_error ⇒ Symbol, ...
The SIP error that occurred.
2805 2806 2807 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2805 required :dial_error, enum: -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::DialError }, nil?: true |
#email_log ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::EmailLog>?
Notification emails sent in connection with the call, ordered oldest first (from/to addresses, subject, sent time).
2881 2882 2883 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2881 optional :email_log, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::EmailLog] }, nil?: true |
#end_reason ⇒ Symbol, ...
Reason for ending the call when ended_by is 'agent'. E.g. 'tool_end_call', 'voicemail', 'transfer', 'ivr_no_navigate'.
2890 2891 2892 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2890 optional :end_reason, enum: -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::EndReason }, nil?: true |
#ended_at ⇒ Object
The time the call ended.
2813 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2813 required :ended_at, Revox::Internal::Type::Unknown |
#ended_by ⇒ Symbol, ...
Who ended the call: 'agent' (AI agent), 'user' (caller/callee hung up), or 'system' (e.g. max duration limit).
2899 2900 2901 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2899 optional :ended_by, enum: -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::EndedBy }, nil?: true |
#handled_by_ai ⇒ Boolean
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.
2821 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2821 required :handled_by_ai, Revox::Internal::Type::Boolean |
#handled_by_human ⇒ Boolean
Whether a human operator conducted (part of) this attempt — a jump-in takeover or a speed-dial operator connection (both stamp human_takeover_at).
2828 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2828 required :handled_by_human, Revox::Internal::Type::Boolean |
#handled_by_user ⇒ Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::HandledByUser?
The team member responsible for following up on this call.
2834 2835 2836 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2834 required :handled_by_user, -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::HandledByUser }, nil?: true |
#id ⇒ String
The ID of the call attempt.
2793 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2793 required :id, String |
#phone_number ⇒ String
The phone number that was called. Formatted in E.164 format. Example: +1234567890
2843 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2843 required :phone_number, String |
#post_call_transcript ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::PostCallTranscript>?
Higher-quality transcript generated after the call via Soniox async STT. Null until generated or when no recording is available.
2908 2909 2910 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2908 optional :post_call_transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::PostCallTranscript] }, nil?: true |
#recording_url ⇒ String?
The URL of the audio recording of the call.
2849 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2849 required :recording_url, String, nil?: true |
#result ⇒ Symbol, ...
2854 2855 2856 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2854 required :result, enum: -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::Result }, nil?: true |
#sms_log ⇒ Array<Revox::Models::CallRetrieveResponse::Call::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.
2918 2919 2920 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2918 optional :sms_log, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SMSLog] }, nil?: true |
#speech_events ⇒ Array<Revox::Models::CallRetrieveResponse::Call::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.
2928 2929 2930 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2928 optional :speech_events, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::SpeechEvent] }, nil?: true |
#started_at ⇒ Object
The time the call started.
2862 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2862 required :started_at, Revox::Internal::Type::Unknown |
#status ⇒ Symbol, Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::Status
The status of the call attempt.
2868 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2868 required :status, enum: -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::Status } |
#structured_output ⇒ Hash{Symbol=>Object}?
The data extracted from the call, using the structured output config from the parent call object.
2937 2938 2939 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2937 optional :structured_output, Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown], nil?: true |
#transcript ⇒ Array<Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::Transcript>?
The live transcript of the call, built in real time.
2945 2946 2947 |
# File 'lib/revox/models/call_retrieve_response.rb', line 2945 optional :transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallRetrieveResponse::Call::LastCallAttempt::Transcript] }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/revox/models/call_retrieve_response.rb', line 3013
|
Instance Method Details
#to_hash ⇒ {
2331 |
# File 'sig/revox/models/call_retrieve_response.rbs', line 2331
def to_hash: -> {
|