Class: Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt
- Defined in:
- lib/revox/models/campaign_get_rows_response.rb,
sig/revox/models/campaign_get_rows_response.rbs
Defined Under Namespace
Modules: DialError, EndReason, EndedBy, Result, Status Classes: PostCallTranscript, SMSLog, 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.
-
#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).
-
#id ⇒ String
The ID of the call attempt.
-
#phone_number ⇒ String
The phone number that was called.
-
#post_call_transcript ⇒ Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::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::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog>?
Automatic SMS sent after the call (voicemail and after-call), ordered oldest first.
-
#started_at ⇒ Object
The time the call started.
-
#status ⇒ Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::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::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript>?
The live transcript of the call, built in real time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, answered_at:, dial_error:, ended_at:, phone_number:, recording_url:, result:, started_at:, status:, assistants_used: nil, end_reason: nil, ended_by: nil, post_call_transcript: nil, sms_log: nil, structured_output: nil, transcript: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see CallAttempt 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:, answered_at:, dial_error:, ended_at:, phone_number:, recording_url:, result:, started_at:, status:, assistants_used: nil, end_reason: nil, ended_by: nil, post_call_transcript: nil, sms_log: nil, structured_output: nil, transcript: nil) ⇒ Object
Some parameter documentations has been truncated, see Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt for more details.
This represent a single call attempt. A call attempt is a single call made to the phone number.
|
|
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2027
|
Instance Attribute Details
#answered_at ⇒ Object
The time the call was answered.
1919 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1919 required :answered_at, Revox::Internal::Type::Unknown |
#assistants_used ⇒ Array<String>?
Assistant node ids entered during this attempt, in traversal order.
1971 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1971 optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true |
#dial_error ⇒ Symbol, ...
The SIP error that occurred.
1925 1926 1927 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1925 required :dial_error, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::DialError }, 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'.
1978 1979 1980 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1978 optional :end_reason, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndReason }, nil?: true |
#ended_at ⇒ Object
The time the call ended.
1933 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1933 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).
1987 1988 1989 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1987 optional :ended_by, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::EndedBy }, nil?: true |
#id ⇒ String
The ID of the call attempt.
1913 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1913 required :id, String |
#phone_number ⇒ String
The phone number that was called. Formatted in E.164 format. Example: +1234567890
1940 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1940 required :phone_number, String |
#post_call_transcript ⇒ Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript>?
Higher-quality transcript generated after the call via Soniox async STT. Null until generated or when no recording is available.
1996 1997 1998 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1996 optional :post_call_transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::PostCallTranscript] }, nil?: true |
#recording_url ⇒ String?
The URL of the audio recording of the call.
1946 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1946 required :recording_url, String, nil?: true |
#result ⇒ Symbol, ...
1951 1952 1953 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1951 required :result, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Result }, nil?: true |
#sms_log ⇒ Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::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.
2006 2007 2008 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2006 optional :sms_log, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::SMSLog] }, nil?: true |
#started_at ⇒ Object
The time the call started.
1959 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1959 required :started_at, Revox::Internal::Type::Unknown |
#status ⇒ Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Status
The status of the call attempt.
1965 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 1965 required :status, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Status } |
#structured_output ⇒ Hash{Symbol=>Object}?
The data extracted from the call, using the structured output config from the parent call object.
2015 2016 2017 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2015 optional :structured_output, Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown], nil?: true |
#transcript ⇒ Array<Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript>?
The live transcript of the call, built in real time.
2023 2024 2025 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2023 optional :transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::CallAttempt::Transcript] }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2082
|
Instance Method Details
#to_hash ⇒ {
1610 |
# File 'sig/revox/models/campaign_get_rows_response.rbs', line 1610
def to_hash: -> {
|