Class: Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt
- Defined in:
- lib/revox/models/campaign_get_rows_response.rb,
sig/revox/models/campaign_get_rows_response.rbs
Overview
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::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::CampaignGetRowsResponse::Row::Call::LastCallAttempt::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::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::CampaignGetRowsResponse::Row::Call::LastCallAttempt::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 LastCallAttempt 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::LastCallAttempt 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 2658
|
Instance Attribute Details
#answered_at ⇒ Object
The time the call was answered.
2550 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2550 required :answered_at, Revox::Internal::Type::Unknown |
#assistants_used ⇒ Array<String>?
Assistant node ids entered during this attempt, in traversal order.
2602 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2602 optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true |
#dial_error ⇒ Symbol, ...
The SIP error that occurred.
2556 2557 2558 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2556 required :dial_error, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::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'.
2609 2610 2611 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2609 optional :end_reason, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndReason }, nil?: true |
#ended_at ⇒ Object
The time the call ended.
2564 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2564 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).
2618 2619 2620 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2618 optional :ended_by, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::EndedBy }, nil?: true |
#id ⇒ String
The ID of the call attempt.
2544 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2544 required :id, String |
#phone_number ⇒ String
The phone number that was called. Formatted in E.164 format. Example: +1234567890
2571 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2571 required :phone_number, String |
#post_call_transcript ⇒ Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript>?
Higher-quality transcript generated after the call via Soniox async STT. Null until generated or when no recording is available.
2627 2628 2629 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2627 optional :post_call_transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::PostCallTranscript] }, nil?: true |
#recording_url ⇒ String?
The URL of the audio recording of the call.
2577 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2577 required :recording_url, String, nil?: true |
#result ⇒ Symbol, ...
2582 2583 2584 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2582 required :result, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Result }, nil?: true |
#sms_log ⇒ Array<Revox::Models::CampaignGetRowsResponse::Row::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.
2637 2638 2639 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2637 optional :sms_log, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::SMSLog] }, nil?: true |
#started_at ⇒ Object
The time the call started.
2590 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2590 required :started_at, Revox::Internal::Type::Unknown |
#status ⇒ Symbol, Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Status
The status of the call attempt.
2596 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2596 required :status, enum: -> { Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Status } |
#structured_output ⇒ Hash{Symbol=>Object}?
The data extracted from the call, using the structured output config from the parent call object.
2646 2647 2648 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2646 optional :structured_output, Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown], nil?: true |
#transcript ⇒ Array<Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript>?
The live transcript of the call, built in real time.
2654 2655 2656 |
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2654 optional :transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignGetRowsResponse::Row::Call::LastCallAttempt::Transcript] }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/revox/models/campaign_get_rows_response.rb', line 2713
|
Instance Method Details
#to_hash ⇒ {
2160 |
# File 'sig/revox/models/campaign_get_rows_response.rbs', line 2160
def to_hash: -> {
|