Class: Revox::Models::CallCreateResponse::Call::CallAttempt
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Revox::Models::CallCreateResponse::Call::CallAttempt
- Defined in:
- lib/revox/models/call_create_response.rb,
sig/revox/models/call_create_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::CallCreateResponse::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::CallCreateResponse::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::CallCreateResponse::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::CallCreateResponse::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::CallCreateResponse::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/call_create_response.rb', line 1974
|
Instance Attribute Details
#answered_at ⇒ Object
The time the call was answered.
1870 |
# File 'lib/revox/models/call_create_response.rb', line 1870 required :answered_at, Revox::Internal::Type::Unknown |
#assistants_used ⇒ Array<String>?
Assistant node ids entered during this attempt, in traversal order.
1920 |
# File 'lib/revox/models/call_create_response.rb', line 1920 optional :assistants_used, Revox::Internal::Type::ArrayOf[String], nil?: true |
#dial_error ⇒ Symbol, ...
The SIP error that occurred.
1876 1877 1878 |
# File 'lib/revox/models/call_create_response.rb', line 1876 required :dial_error, enum: -> { Revox::Models::CallCreateResponse::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'.
1927 1928 1929 |
# File 'lib/revox/models/call_create_response.rb', line 1927 optional :end_reason, enum: -> { Revox::Models::CallCreateResponse::Call::CallAttempt::EndReason }, nil?: true |
#ended_at ⇒ Object
The time the call ended.
1884 |
# File 'lib/revox/models/call_create_response.rb', line 1884 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).
1936 |
# File 'lib/revox/models/call_create_response.rb', line 1936 optional :ended_by, enum: -> { Revox::Models::CallCreateResponse::Call::CallAttempt::EndedBy }, nil?: true |
#id ⇒ String
The ID of the call attempt.
1864 |
# File 'lib/revox/models/call_create_response.rb', line 1864 required :id, String |
#phone_number ⇒ String
The phone number that was called. Formatted in E.164 format. Example: +1234567890
1891 |
# File 'lib/revox/models/call_create_response.rb', line 1891 required :phone_number, String |
#post_call_transcript ⇒ Array<Revox::Models::CallCreateResponse::Call::CallAttempt::PostCallTranscript>?
Higher-quality transcript generated after the call via Soniox async STT. Null until generated or when no recording is available.
1943 1944 1945 |
# File 'lib/revox/models/call_create_response.rb', line 1943 optional :post_call_transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallCreateResponse::Call::CallAttempt::PostCallTranscript] }, nil?: true |
#recording_url ⇒ String?
The URL of the audio recording of the call.
1897 |
# File 'lib/revox/models/call_create_response.rb', line 1897 required :recording_url, String, nil?: true |
#result ⇒ Symbol, ...
1902 |
# File 'lib/revox/models/call_create_response.rb', line 1902 required :result, enum: -> { Revox::Models::CallCreateResponse::Call::CallAttempt::Result }, nil?: true |
#sms_log ⇒ Array<Revox::Models::CallCreateResponse::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.
1953 1954 1955 |
# File 'lib/revox/models/call_create_response.rb', line 1953 optional :sms_log, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallCreateResponse::Call::CallAttempt::SMSLog] }, nil?: true |
#started_at ⇒ Object
The time the call started.
1908 |
# File 'lib/revox/models/call_create_response.rb', line 1908 required :started_at, Revox::Internal::Type::Unknown |
#status ⇒ Symbol, Revox::Models::CallCreateResponse::Call::CallAttempt::Status
The status of the call attempt.
1914 |
# File 'lib/revox/models/call_create_response.rb', line 1914 required :status, enum: -> { Revox::Models::CallCreateResponse::Call::CallAttempt::Status } |
#structured_output ⇒ Hash{Symbol=>Object}?
The data extracted from the call, using the structured output config from the parent call object.
1962 1963 1964 |
# File 'lib/revox/models/call_create_response.rb', line 1962 optional :structured_output, Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown], nil?: true |
#transcript ⇒ Array<Revox::Models::CallCreateResponse::Call::CallAttempt::Transcript>?
The live transcript of the call, built in real time.
1970 1971 1972 |
# File 'lib/revox/models/call_create_response.rb', line 1970 optional :transcript, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallCreateResponse::Call::CallAttempt::Transcript] }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/revox/models/call_create_response.rb', line 2028
|
Instance Method Details
#to_hash ⇒ {
1566 |
# File 'sig/revox/models/call_create_response.rbs', line 1566
def to_hash: -> {
|