telnyx 5.89.0 → 5.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -227
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -227
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -232
- data/lib/telnyx/models/ai/external_llm.rb +87 -0
- data/lib/telnyx/models/ai/external_llm_req.rb +87 -0
- data/lib/telnyx/models/ai/fallback_config.rb +37 -0
- data/lib/telnyx/models/ai/fallback_config_req.rb +37 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -230
- data/lib/telnyx/models/ai/post_conversation_settings.rb +30 -0
- data/lib/telnyx/models/ai/post_conversation_settings_req.rb +30 -0
- data/lib/telnyx/models/message_send_whatsapp_params.rb +9 -1
- data/lib/telnyx/models/whatsapp/phone_numbers/profile_update_params.rb +17 -1
- data/lib/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rb +8 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/messages.rb +3 -1
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile.rb +3 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +6 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -455
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -455
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -461
- data/rbi/telnyx/models/ai/external_llm.rbi +157 -0
- data/rbi/telnyx/models/ai/external_llm_req.rbi +157 -0
- data/rbi/telnyx/models/ai/fallback_config.rbi +64 -0
- data/rbi/telnyx/models/ai/fallback_config_req.rbi +64 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -452
- data/rbi/telnyx/models/ai/post_conversation_settings.rbi +45 -0
- data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +45 -0
- data/rbi/telnyx/models/message_send_whatsapp_params.rbi +11 -0
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile_update_params.rbi +11 -0
- data/rbi/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rbi +9 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -5
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/messages.rbi +3 -0
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile.rbi +3 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -205
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -205
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -205
- data/sig/telnyx/models/ai/external_llm.rbs +75 -0
- data/sig/telnyx/models/ai/external_llm_req.rbs +75 -0
- data/sig/telnyx/models/ai/fallback_config.rbs +38 -0
- data/sig/telnyx/models/ai/fallback_config_req.rbs +40 -0
- data/sig/telnyx/models/ai/inference_embedding.rbs +17 -206
- data/sig/telnyx/models/ai/post_conversation_settings.rbs +17 -0
- data/sig/telnyx/models/ai/post_conversation_settings_req.rbs +17 -0
- data/sig/telnyx/models/message_send_whatsapp_params.rbs +7 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile_update_params.rbs +7 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rbs +7 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/messages.rbs +1 -0
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile.rbs +1 -0
- metadata +20 -2
|
@@ -68,6 +68,12 @@ module Telnyx
|
|
|
68
68
|
sig { params(phone_number_id: String).void }
|
|
69
69
|
attr_writer :phone_number_id
|
|
70
70
|
|
|
71
|
+
sig { returns(T.nilable(String)) }
|
|
72
|
+
attr_reader :profile_id
|
|
73
|
+
|
|
74
|
+
sig { params(profile_id: String).void }
|
|
75
|
+
attr_writer :profile_id
|
|
76
|
+
|
|
71
77
|
sig { returns(T.nilable(String)) }
|
|
72
78
|
attr_reader :profile_photo_url
|
|
73
79
|
|
|
@@ -103,6 +109,7 @@ module Telnyx
|
|
|
103
109
|
display_name: String,
|
|
104
110
|
email: String,
|
|
105
111
|
phone_number_id: String,
|
|
112
|
+
profile_id: String,
|
|
106
113
|
profile_photo_url: String,
|
|
107
114
|
record_type: String,
|
|
108
115
|
updated_at: Time,
|
|
@@ -120,6 +127,7 @@ module Telnyx
|
|
|
120
127
|
email: nil,
|
|
121
128
|
# Whatsapp phone number ID
|
|
122
129
|
phone_number_id: nil,
|
|
130
|
+
profile_id: nil,
|
|
123
131
|
profile_photo_url: nil,
|
|
124
132
|
record_type: nil,
|
|
125
133
|
updated_at: nil,
|
|
@@ -139,6 +147,7 @@ module Telnyx
|
|
|
139
147
|
display_name: String,
|
|
140
148
|
email: String,
|
|
141
149
|
phone_number_id: String,
|
|
150
|
+
profile_id: String,
|
|
142
151
|
profile_photo_url: String,
|
|
143
152
|
record_type: String,
|
|
144
153
|
updated_at: Time,
|
|
@@ -36,10 +36,8 @@ module Telnyx
|
|
|
36
36
|
dynamic_variables: T::Hash[Symbol, T.anything],
|
|
37
37
|
dynamic_variables_webhook_url: String,
|
|
38
38
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
39
|
-
external_llm:
|
|
40
|
-
|
|
41
|
-
fallback_config:
|
|
42
|
-
Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig::OrHash,
|
|
39
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
40
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
43
41
|
greeting: String,
|
|
44
42
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
45
43
|
instructions: String,
|
|
@@ -49,7 +47,7 @@ module Telnyx
|
|
|
49
47
|
name: String,
|
|
50
48
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
51
49
|
post_conversation_settings:
|
|
52
|
-
Telnyx::AI::
|
|
50
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
53
51
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
54
52
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
55
53
|
tool_ids: T::Array[String],
|
|
@@ -39,17 +39,15 @@ module Telnyx
|
|
|
39
39
|
dynamic_variables: T::Hash[Symbol, T.anything],
|
|
40
40
|
dynamic_variables_webhook_url: String,
|
|
41
41
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
42
|
-
external_llm:
|
|
43
|
-
|
|
44
|
-
fallback_config:
|
|
45
|
-
Telnyx::AI::AssistantCreateParams::FallbackConfig::OrHash,
|
|
42
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
43
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
46
44
|
greeting: String,
|
|
47
45
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
48
46
|
llm_api_key_ref: String,
|
|
49
47
|
messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
|
|
50
48
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
51
49
|
post_conversation_settings:
|
|
52
|
-
Telnyx::AI::
|
|
50
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
53
51
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
54
52
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
55
53
|
tool_ids: T::Array[String],
|
|
@@ -160,10 +158,8 @@ module Telnyx
|
|
|
160
158
|
dynamic_variables: T::Hash[Symbol, T.anything],
|
|
161
159
|
dynamic_variables_webhook_url: String,
|
|
162
160
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
163
|
-
external_llm:
|
|
164
|
-
|
|
165
|
-
fallback_config:
|
|
166
|
-
Telnyx::AI::AssistantUpdateParams::FallbackConfig::OrHash,
|
|
161
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
162
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
167
163
|
greeting: String,
|
|
168
164
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
169
165
|
instructions: String,
|
|
@@ -173,7 +169,7 @@ module Telnyx
|
|
|
173
169
|
name: String,
|
|
174
170
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
175
171
|
post_conversation_settings:
|
|
176
|
-
Telnyx::AI::
|
|
172
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
177
173
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
178
174
|
promote_to_main: T::Boolean,
|
|
179
175
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
@@ -406,6 +406,7 @@ module Telnyx
|
|
|
406
406
|
from: String,
|
|
407
407
|
to: String,
|
|
408
408
|
whatsapp_message: Telnyx::WhatsappMessageContent::OrHash,
|
|
409
|
+
messaging_profile_id: String,
|
|
409
410
|
type: Telnyx::MessageSendWhatsappParams::Type::OrSymbol,
|
|
410
411
|
webhook_url: String,
|
|
411
412
|
request_options: Telnyx::RequestOptions::OrHash
|
|
@@ -417,6 +418,8 @@ module Telnyx
|
|
|
417
418
|
# Phone number in +E.164 format
|
|
418
419
|
to:,
|
|
419
420
|
whatsapp_message:,
|
|
421
|
+
# Messaging profile ID - required if the 'from' number is not SMS-enabled
|
|
422
|
+
messaging_profile_id: nil,
|
|
420
423
|
# Message type - must be set to "WHATSAPP"
|
|
421
424
|
type: nil,
|
|
422
425
|
# The URL where webhooks related to this message will be sent.
|
|
@@ -38,6 +38,7 @@ module Telnyx
|
|
|
38
38
|
description: String,
|
|
39
39
|
display_name: String,
|
|
40
40
|
email: String,
|
|
41
|
+
profile_id: String,
|
|
41
42
|
website: String,
|
|
42
43
|
request_options: Telnyx::RequestOptions::OrHash
|
|
43
44
|
).returns(
|
|
@@ -53,6 +54,8 @@ module Telnyx
|
|
|
53
54
|
description: nil,
|
|
54
55
|
display_name: nil,
|
|
55
56
|
email: nil,
|
|
57
|
+
# Messaging profile ID for inbound messages
|
|
58
|
+
profile_id: nil,
|
|
56
59
|
website: nil,
|
|
57
60
|
request_options: {}
|
|
58
61
|
)
|
|
@@ -10,14 +10,14 @@ module Telnyx
|
|
|
10
10
|
dynamic_variables: ::Hash[Symbol, top],
|
|
11
11
|
dynamic_variables_webhook_url: String,
|
|
12
12
|
enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
13
|
-
external_llm: Telnyx::AI::
|
|
14
|
-
fallback_config: Telnyx::AI::
|
|
13
|
+
external_llm: Telnyx::AI::ExternalLlmReq,
|
|
14
|
+
fallback_config: Telnyx::AI::FallbackConfigReq,
|
|
15
15
|
greeting: String,
|
|
16
16
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
17
17
|
llm_api_key_ref: String,
|
|
18
18
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
19
19
|
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
20
|
-
post_conversation_settings: Telnyx::AI::
|
|
20
|
+
post_conversation_settings: Telnyx::AI::PostConversationSettingsReq,
|
|
21
21
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
22
22
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
23
23
|
tool_ids: ::Array[String],
|
|
@@ -56,17 +56,17 @@ module Telnyx
|
|
|
56
56
|
::Array[Telnyx::Models::AI::enabled_features]
|
|
57
57
|
) -> ::Array[Telnyx::Models::AI::enabled_features]
|
|
58
58
|
|
|
59
|
-
attr_reader external_llm: Telnyx::AI::
|
|
59
|
+
attr_reader external_llm: Telnyx::AI::ExternalLlmReq?
|
|
60
60
|
|
|
61
61
|
def external_llm=: (
|
|
62
|
-
Telnyx::AI::
|
|
63
|
-
) -> Telnyx::AI::
|
|
62
|
+
Telnyx::AI::ExternalLlmReq
|
|
63
|
+
) -> Telnyx::AI::ExternalLlmReq
|
|
64
64
|
|
|
65
|
-
attr_reader fallback_config: Telnyx::AI::
|
|
65
|
+
attr_reader fallback_config: Telnyx::AI::FallbackConfigReq?
|
|
66
66
|
|
|
67
67
|
def fallback_config=: (
|
|
68
|
-
Telnyx::AI::
|
|
69
|
-
) -> Telnyx::AI::
|
|
68
|
+
Telnyx::AI::FallbackConfigReq
|
|
69
|
+
) -> Telnyx::AI::FallbackConfigReq
|
|
70
70
|
|
|
71
71
|
attr_reader greeting: String?
|
|
72
72
|
|
|
@@ -94,11 +94,11 @@ module Telnyx
|
|
|
94
94
|
Telnyx::AI::ObservabilityReq
|
|
95
95
|
) -> Telnyx::AI::ObservabilityReq
|
|
96
96
|
|
|
97
|
-
attr_reader post_conversation_settings: Telnyx::AI::
|
|
97
|
+
attr_reader post_conversation_settings: Telnyx::AI::PostConversationSettingsReq?
|
|
98
98
|
|
|
99
99
|
def post_conversation_settings=: (
|
|
100
|
-
Telnyx::AI::
|
|
101
|
-
) -> Telnyx::AI::
|
|
100
|
+
Telnyx::AI::PostConversationSettingsReq
|
|
101
|
+
) -> Telnyx::AI::PostConversationSettingsReq
|
|
102
102
|
|
|
103
103
|
attr_reader privacy_settings: Telnyx::AI::PrivacySettings?
|
|
104
104
|
|
|
@@ -148,14 +148,14 @@ module Telnyx
|
|
|
148
148
|
?dynamic_variables: ::Hash[Symbol, top],
|
|
149
149
|
?dynamic_variables_webhook_url: String,
|
|
150
150
|
?enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
151
|
-
?external_llm: Telnyx::AI::
|
|
152
|
-
?fallback_config: Telnyx::AI::
|
|
151
|
+
?external_llm: Telnyx::AI::ExternalLlmReq,
|
|
152
|
+
?fallback_config: Telnyx::AI::FallbackConfigReq,
|
|
153
153
|
?greeting: String,
|
|
154
154
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
155
155
|
?llm_api_key_ref: String,
|
|
156
156
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
157
157
|
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
158
|
-
?post_conversation_settings: Telnyx::AI::
|
|
158
|
+
?post_conversation_settings: Telnyx::AI::PostConversationSettingsReq,
|
|
159
159
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
160
160
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
161
161
|
?tool_ids: ::Array[String],
|
|
@@ -174,14 +174,14 @@ module Telnyx
|
|
|
174
174
|
dynamic_variables: ::Hash[Symbol, top],
|
|
175
175
|
dynamic_variables_webhook_url: String,
|
|
176
176
|
enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
177
|
-
external_llm: Telnyx::AI::
|
|
178
|
-
fallback_config: Telnyx::AI::
|
|
177
|
+
external_llm: Telnyx::AI::ExternalLlmReq,
|
|
178
|
+
fallback_config: Telnyx::AI::FallbackConfigReq,
|
|
179
179
|
greeting: String,
|
|
180
180
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
181
181
|
llm_api_key_ref: String,
|
|
182
182
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
183
183
|
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
184
|
-
post_conversation_settings: Telnyx::AI::
|
|
184
|
+
post_conversation_settings: Telnyx::AI::PostConversationSettingsReq,
|
|
185
185
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
186
186
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
187
187
|
tool_ids: ::Array[String],
|
|
@@ -191,193 +191,6 @@ module Telnyx
|
|
|
191
191
|
widget_settings: Telnyx::AI::WidgetSettings,
|
|
192
192
|
request_options: Telnyx::RequestOptions
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
type external_llm =
|
|
196
|
-
{
|
|
197
|
-
base_url: String,
|
|
198
|
-
model: String,
|
|
199
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method,
|
|
200
|
-
certificate_ref: String,
|
|
201
|
-
forward_metadata: bool,
|
|
202
|
-
llm_api_key_ref: String,
|
|
203
|
-
token_retrieval_url: String
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
class ExternalLlm < Telnyx::Internal::Type::BaseModel
|
|
207
|
-
attr_accessor base_url: String
|
|
208
|
-
|
|
209
|
-
attr_accessor model: String
|
|
210
|
-
|
|
211
|
-
attr_reader authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method?
|
|
212
|
-
|
|
213
|
-
def authentication_method=: (
|
|
214
|
-
Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method
|
|
215
|
-
) -> Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method
|
|
216
|
-
|
|
217
|
-
attr_reader certificate_ref: String?
|
|
218
|
-
|
|
219
|
-
def certificate_ref=: (String) -> String
|
|
220
|
-
|
|
221
|
-
attr_reader forward_metadata: bool?
|
|
222
|
-
|
|
223
|
-
def forward_metadata=: (bool) -> bool
|
|
224
|
-
|
|
225
|
-
attr_reader llm_api_key_ref: String?
|
|
226
|
-
|
|
227
|
-
def llm_api_key_ref=: (String) -> String
|
|
228
|
-
|
|
229
|
-
attr_reader token_retrieval_url: String?
|
|
230
|
-
|
|
231
|
-
def token_retrieval_url=: (String) -> String
|
|
232
|
-
|
|
233
|
-
def initialize: (
|
|
234
|
-
base_url: String,
|
|
235
|
-
model: String,
|
|
236
|
-
?authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method,
|
|
237
|
-
?certificate_ref: String,
|
|
238
|
-
?forward_metadata: bool,
|
|
239
|
-
?llm_api_key_ref: String,
|
|
240
|
-
?token_retrieval_url: String
|
|
241
|
-
) -> void
|
|
242
|
-
|
|
243
|
-
def to_hash: -> {
|
|
244
|
-
base_url: String,
|
|
245
|
-
model: String,
|
|
246
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method,
|
|
247
|
-
certificate_ref: String,
|
|
248
|
-
forward_metadata: bool,
|
|
249
|
-
llm_api_key_ref: String,
|
|
250
|
-
token_retrieval_url: String
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
type authentication_method = :token | :certificate
|
|
254
|
-
|
|
255
|
-
module AuthenticationMethod
|
|
256
|
-
extend Telnyx::Internal::Type::Enum
|
|
257
|
-
|
|
258
|
-
TOKEN: :token
|
|
259
|
-
CERTIFICATE: :certificate
|
|
260
|
-
|
|
261
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method]
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
type fallback_config =
|
|
266
|
-
{
|
|
267
|
-
external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm,
|
|
268
|
-
llm_api_key_ref: String,
|
|
269
|
-
model: String
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
class FallbackConfig < Telnyx::Internal::Type::BaseModel
|
|
273
|
-
attr_reader external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm?
|
|
274
|
-
|
|
275
|
-
def external_llm=: (
|
|
276
|
-
Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm
|
|
277
|
-
) -> Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm
|
|
278
|
-
|
|
279
|
-
attr_reader llm_api_key_ref: String?
|
|
280
|
-
|
|
281
|
-
def llm_api_key_ref=: (String) -> String
|
|
282
|
-
|
|
283
|
-
attr_reader model: String?
|
|
284
|
-
|
|
285
|
-
def model=: (String) -> String
|
|
286
|
-
|
|
287
|
-
def initialize: (
|
|
288
|
-
?external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm,
|
|
289
|
-
?llm_api_key_ref: String,
|
|
290
|
-
?model: String
|
|
291
|
-
) -> void
|
|
292
|
-
|
|
293
|
-
def to_hash: -> {
|
|
294
|
-
external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm,
|
|
295
|
-
llm_api_key_ref: String,
|
|
296
|
-
model: String
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
type external_llm =
|
|
300
|
-
{
|
|
301
|
-
base_url: String,
|
|
302
|
-
model: String,
|
|
303
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method,
|
|
304
|
-
certificate_ref: String,
|
|
305
|
-
forward_metadata: bool,
|
|
306
|
-
llm_api_key_ref: String,
|
|
307
|
-
token_retrieval_url: String
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
class ExternalLlm < Telnyx::Internal::Type::BaseModel
|
|
311
|
-
attr_accessor base_url: String
|
|
312
|
-
|
|
313
|
-
attr_accessor model: String
|
|
314
|
-
|
|
315
|
-
attr_reader authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method?
|
|
316
|
-
|
|
317
|
-
def authentication_method=: (
|
|
318
|
-
Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method
|
|
319
|
-
) -> Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method
|
|
320
|
-
|
|
321
|
-
attr_reader certificate_ref: String?
|
|
322
|
-
|
|
323
|
-
def certificate_ref=: (String) -> String
|
|
324
|
-
|
|
325
|
-
attr_reader forward_metadata: bool?
|
|
326
|
-
|
|
327
|
-
def forward_metadata=: (bool) -> bool
|
|
328
|
-
|
|
329
|
-
attr_reader llm_api_key_ref: String?
|
|
330
|
-
|
|
331
|
-
def llm_api_key_ref=: (String) -> String
|
|
332
|
-
|
|
333
|
-
attr_reader token_retrieval_url: String?
|
|
334
|
-
|
|
335
|
-
def token_retrieval_url=: (String) -> String
|
|
336
|
-
|
|
337
|
-
def initialize: (
|
|
338
|
-
base_url: String,
|
|
339
|
-
model: String,
|
|
340
|
-
?authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method,
|
|
341
|
-
?certificate_ref: String,
|
|
342
|
-
?forward_metadata: bool,
|
|
343
|
-
?llm_api_key_ref: String,
|
|
344
|
-
?token_retrieval_url: String
|
|
345
|
-
) -> void
|
|
346
|
-
|
|
347
|
-
def to_hash: -> {
|
|
348
|
-
base_url: String,
|
|
349
|
-
model: String,
|
|
350
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method,
|
|
351
|
-
certificate_ref: String,
|
|
352
|
-
forward_metadata: bool,
|
|
353
|
-
llm_api_key_ref: String,
|
|
354
|
-
token_retrieval_url: String
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
type authentication_method = :token | :certificate
|
|
358
|
-
|
|
359
|
-
module AuthenticationMethod
|
|
360
|
-
extend Telnyx::Internal::Type::Enum
|
|
361
|
-
|
|
362
|
-
TOKEN: :token
|
|
363
|
-
CERTIFICATE: :certificate
|
|
364
|
-
|
|
365
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method]
|
|
366
|
-
end
|
|
367
|
-
end
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
type post_conversation_settings = { enabled: bool }
|
|
371
|
-
|
|
372
|
-
class PostConversationSettings < Telnyx::Internal::Type::BaseModel
|
|
373
|
-
attr_reader enabled: bool?
|
|
374
|
-
|
|
375
|
-
def enabled=: (bool) -> bool
|
|
376
|
-
|
|
377
|
-
def initialize: (?enabled: bool) -> void
|
|
378
|
-
|
|
379
|
-
def to_hash: -> { enabled: bool }
|
|
380
|
-
end
|
|
381
194
|
end
|
|
382
195
|
end
|
|
383
196
|
end
|