Class: Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse
Defined Under Namespace
Modules: ConversationMetadata
Classes: CallAttempt
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_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
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 190
|
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
|
#call_status ⇒ String?
Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
49
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 49
optional :call_status, String
|
#conversation_id ⇒ String?
54
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 54
optional :conversation_id, String
|
59
60
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 59
optional :conversation_metadata,
-> { Telnyx::Internal::Type::HashOf[union: Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::ConversationMetadata] }
|
#created_at ⇒ Time?
65
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 65
optional :created_at, Time
|
#dispatched_at ⇒ Time?
Date time at which call was sent
71
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 71
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.
78
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 78
optional :dynamic_variables, Telnyx::Internal::Type::HashOf[String]
|
#errors ⇒ Array<String>?
83
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 83
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)
90
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 90
optional :max_retries_client_errors, Integer
|
#retry_attempts ⇒ Integer?
95
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 95
optional :retry_attempts, Integer
|
#retry_count ⇒ Integer?
100
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 100
optional :retry_count, Integer
|
#retry_interval_secs ⇒ Integer?
105
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 105
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?
110
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 110
optional :scheduled_event_id, String
|
#status ⇒ Symbol, ...
115
|
# File 'lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb', line 115
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
|