Class: Revox::Models::CallRetrieveResponse::Call

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

Overview

See Also:

  • Revox::Models::CallRetrieveResponse#call

Defined Under Namespace

Modules: Direction, LlmModel, Outcome, Status Classes: Assignee, Assistant, CallAttempt, CallRetryConfig, Campaign, Contact, LastCallAttempt

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(company:, email:, first_name:, job_title:, last_name:) ⇒ Object

Magic contact variables (prospect identity) extracted from the call's input data and transcript.



# File 'lib/revox/models/call_retrieve_response.rb', line 195


Instance Attribute Details

#assignee ⇒ Revox::Models::CallRetrieveResponse::Call::Assignee?

The team member responsible for following up on this call.



32
# File 'lib/revox/models/call_retrieve_response.rb', line 32

required :assignee, -> { Revox::Models::CallRetrieveResponse::Call::Assignee }, nil?: true

#assistant ⇒ Revox::Models::CallRetrieveResponse::Call::Assistant?



37
# File 'lib/revox/models/call_retrieve_response.rb', line 37

required :assistant, -> { Revox::Models::CallRetrieveResponse::Call::Assistant }, nil?: true

#call_attempts ⇒ Array<Revox::Models::CallRetrieveResponse::Call::CallAttempt>

All call attempts for this call order, ordered by most recent first.



43
44
# File 'lib/revox/models/call_retrieve_response.rb', line 43

required :call_attempts,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallRetrieveResponse::Call::CallAttempt] }

#call_retry_config ⇒ Revox::Models::CallRetrieveResponse::Call::CallRetryConfig?

Configuration for call retry behavior including time windows, delays, and max iterations. If not provided, defaults will be used.



51
# File 'lib/revox/models/call_retrieve_response.rb', line 51

required :call_retry_config, -> { Revox::Models::CallRetrieveResponse::Call::CallRetryConfig }, nil?: true

#calls_count ⇒ Float

The number of call attempts made.



57
# File 'lib/revox/models/call_retrieve_response.rb', line 57

required :calls_count, Float

#campaign ⇒ Revox::Models::CallRetrieveResponse::Call::Campaign?



62
# File 'lib/revox/models/call_retrieve_response.rb', line 62

required :campaign, -> { Revox::Models::CallRetrieveResponse::Call::Campaign }, nil?: true

#contact ⇒ Revox::Models::CallRetrieveResponse::Call::Contact

Magic contact variables (prospect identity) extracted from the call's input data and transcript.



69
# File 'lib/revox/models/call_retrieve_response.rb', line 69

required :contact, -> { Revox::Models::CallRetrieveResponse::Call::Contact }

#created_at ⇒ Object

The time the call order was created.



75
# File 'lib/revox/models/call_retrieve_response.rb', line 75

required :created_at, Revox::Internal::Type::Unknown

#direction ⇒ Symbol, Revox::Models::CallRetrieveResponse::Call::Direction

Whether the call is inbound or outbound.



81
# File 'lib/revox/models/call_retrieve_response.rb', line 81

required :direction, enum: -> { Revox::Models::CallRetrieveResponse::Call::Direction }

#first_sentence_delay_ms ⇒ Integer

Delay in milliseconds before speaking the first sentence. Default: 400.



87
# File 'lib/revox/models/call_retrieve_response.rb', line 87

required :first_sentence_delay_ms, Integer

#follow_up_emails ⇒ Array<String>?

Extra notification recipients resolved from the agent prompt's own routing rules, when it defines any. Added to the assistant's configured notification recipients; never replaces them. Null when the prompt defines no routing rules.



172
# File 'lib/revox/models/call_retrieve_response.rb', line 172

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

#from_phone_number ⇒ String

The phone number that made the call. Formatted in E.164 format. Example: +1234567890



94
# File 'lib/revox/models/call_retrieve_response.rb', line 94

required :from_phone_number, String

#id ⇒ String

The ID of the call.



26
# File 'lib/revox/models/call_retrieve_response.rb', line 26

required :id, String

#is_cancelled ⇒ Boolean

DEPRECATED: Whether the call has been cancelled. This is derived from status. Use status instead.



101
# File 'lib/revox/models/call_retrieve_response.rb', line 101

required :is_cancelled, Revox::Internal::Type::Boolean

#is_completed ⇒ Boolean

DEPRECATED: Whether the call has completed. This is derived from status. Use status instead.



108
# File 'lib/revox/models/call_retrieve_response.rb', line 108

required :is_completed, Revox::Internal::Type::Boolean

#last_call_attempt ⇒ Revox::Models::CallRetrieveResponse::Call::LastCallAttempt?

This represent a single call attempt. A call attempt is a single call made to the phone number.



115
# File 'lib/revox/models/call_retrieve_response.rb', line 115

required :last_call_attempt, -> { Revox::Models::CallRetrieveResponse::Call::LastCallAttempt }, nil?: true

#llm_model ⇒ Revox::Models::CallRetrieveResponse::Call::LlmModel::UnionMember0, ...



120
# File 'lib/revox/models/call_retrieve_response.rb', line 120

required :llm_model, union: -> { Revox::Models::CallRetrieveResponse::Call::LlmModel }

#metadata ⇒ Hash{Symbol=>String}?

Metadata stored with the call.



126
# File 'lib/revox/models/call_retrieve_response.rb', line 126

required :metadata, Revox::Internal::Type::HashOf[String], nil?: true

#organization_id ⇒ String

The ID of the organization that owns the call.



132
# File 'lib/revox/models/call_retrieve_response.rb', line 132

required :organization_id, String

#outcome ⇒ Symbol, ...

Business outcome of the call. Null if not computed or no transcript.



178
# File 'lib/revox/models/call_retrieve_response.rb', line 178

optional :outcome, enum: -> { Revox::Models::CallRetrieveResponse::Call::Outcome }, nil?: true

#outcome_summary ⇒ String?

LLM explanation for the outcome, when outcome was computed from the transcript.



184
# File 'lib/revox/models/call_retrieve_response.rb', line 184

optional :outcome_summary, String, nil?: true

#prompt_variables ⇒ Hash{Symbol=>String}?

Variables used to interpolate the prompt.



138
# File 'lib/revox/models/call_retrieve_response.rb', line 138

required :prompt_variables, Revox::Internal::Type::HashOf[String], nil?: true

#scheduled_at ⇒ Object

The time the call order is scheduled to start.



144
# File 'lib/revox/models/call_retrieve_response.rb', line 144

required :scheduled_at, Revox::Internal::Type::Unknown

#slack_channel_ids ⇒ Array<String>?

Slack channels resolved from the agent prompt's own routing rules, when it defines any. Always a subset of the channels configured on the assistant. Null when the prompt defines no routing rules, in which case every configured channel is notified.



193
# File 'lib/revox/models/call_retrieve_response.rb', line 193

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

#status ⇒ Symbol, Revox::Models::CallRetrieveResponse::Call::Status

The status of the call.



150
# File 'lib/revox/models/call_retrieve_response.rb', line 150

required :status, enum: -> { Revox::Models::CallRetrieveResponse::Call::Status }

#to_phone_number ⇒ String

The phone number that received the call. Formatted in E.164 format. Example: +1234567890



157
# File 'lib/revox/models/call_retrieve_response.rb', line 157

required :to_phone_number, String

#updated_at ⇒ Object

The time the call order was last updated (any state change, retry, or analysis result).



164
# File 'lib/revox/models/call_retrieve_response.rb', line 164

required :updated_at, Revox::Internal::Type::Unknown

Class Method Details

.values ⇒ Array<Symbol>



# File 'lib/revox/models/call_retrieve_response.rb', line 1888


.variants ⇒ Array(Revox::Models::CallRetrieveResponse::Call::LlmModel::UnionMember0, Revox::Models::CallRetrieveResponse::Call::LlmModel::UnionMember1, Revox::Models::CallRetrieveResponse::Call::LlmModel::UnionMember2, Revox::Models::CallRetrieveResponse::Call::LlmModel::UnionMember3)



# File 'lib/revox/models/call_retrieve_response.rb', line 3658


Instance Method Details

#to_hash ⇒ {



129
# File 'sig/revox/models/call_retrieve_response.rbs', line 129

def to_hash: -> {