Class: Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse
Defined Under Namespace
Modules: ConversationMetadata
Classes: CallAttempt, CallSettings
Instance Attribute Summary collapse
-
#assistant_id ⇒ String
-
#call_attempts ⇒ Array<Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt>?
-
#call_duration ⇒ Integer?
Duration of the call in seconds.
-
#call_settings ⇒ Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse::CallSettings?
Per-call telephony overrides applied when a scheduled phone-call event dispatches.
-
#call_status ⇒ String?
Values: busy, canceled, no-answer, ringing, completed, failed, in-progress.
-
#conversation_id ⇒ String?
-
#conversation_metadata ⇒ Hash{Symbol=>String, Integer, Boolean}?
-
#created_at ⇒ Time?
-
#dispatched_at ⇒ Time?
Date time at which call was sent.
-
#dynamic_variables ⇒ Hash{Symbol=>String}?
A map of dynamic variable names to values.
-
#errors ⇒ Array<String>?
-
#max_retries_client_errors ⇒ Integer?
Configure number of retries on client errors: busy, no-answer, failed, canceled (caller hung up before the callee answered).
-
#retry_attempts ⇒ Integer?
-
#retry_count ⇒ Integer?
-
#retry_interval_secs ⇒ Integer?
-
#scheduled_at_fixed_datetime ⇒ Time
-
#scheduled_event_id ⇒ String?
-
#status ⇒ Symbol, ...
-
#telnyx_agent_target ⇒ String
-
#telnyx_conversation_channel ⇒ Symbol, Telnyx::Models::AI::Assistants::ConversationChannelType
-
#telnyx_end_user_target ⇒ String
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(attempt_number:, attempted_at:, call_status:, call_duration: nil, telnyx_call_control_id: nil) ⇒ Object
One row in ‘call_attempts` — captures the terminal outcome of a single dispatch.
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 200
|
Instance Attribute Details
#assistant_id ⇒ String
11
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 11
required :assistant_id, String
|
36
37
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 36
optional :call_attempts,
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt] }
|
#call_duration ⇒ Integer?
Duration of the call in seconds
43
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 43
optional :call_duration, Integer
|
Per-call telephony overrides applied when a scheduled phone-call event dispatches. Phone-call events only. New per-call dispatch options should be added here rather than as top-level event fields.
51
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 51
optional :call_settings, -> { Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallSettings }
|
#call_status ⇒ String?
Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
57
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 57
optional :call_status, String
|
#conversation_id ⇒ String?
62
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 62
optional :conversation_id, String
|
67
68
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 67
optional :conversation_metadata,
-> { Telnyx::Internal::Type::HashOf[union: Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::ConversationMetadata] }
|
#created_at ⇒ Time?
73
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 73
optional :created_at, Time
|
#dispatched_at ⇒ Time?
Date time at which call was sent
79
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 79
optional :dispatched_at, Time
|
#dynamic_variables ⇒ Hash{Symbol=>String}?
A map of dynamic variable names to values. These variables can be referenced in the assistant’s instructions and messages using {variable_name} syntax.
86
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 86
optional :dynamic_variables, Telnyx::Internal::Type::HashOf[String]
|
#errors ⇒ Array<String>?
91
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 91
optional :errors, Telnyx::Internal::Type::ArrayOf[String]
|
#max_retries_client_errors ⇒ Integer?
Configure number of retries on client errors: busy, no-answer, failed, canceled (caller hung up before the callee answered)
98
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 98
optional :max_retries_client_errors, Integer
|
#retry_attempts ⇒ Integer?
103
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 103
optional :retry_attempts, Integer
|
#retry_count ⇒ Integer?
108
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 108
optional :retry_count, Integer
|
#retry_interval_secs ⇒ Integer?
113
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 113
optional :retry_interval_secs, Integer
|
#scheduled_at_fixed_datetime ⇒ Time
16
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 16
required :scheduled_at_fixed_datetime, Time
|
#scheduled_event_id ⇒ String?
118
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 118
optional :scheduled_event_id, String
|
#status ⇒ Symbol, ...
123
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 123
optional :status, enum: -> { Telnyx::AI::Assistants::EventStatus }
|
#telnyx_agent_target ⇒ String
21
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 21
required :telnyx_agent_target, String
|
26
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 26
required :telnyx_conversation_channel, enum: -> { Telnyx::AI::Assistants::ConversationChannelType }
|
#telnyx_end_user_target ⇒ String
31
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 31
required :telnyx_end_user_target, String
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 250
|