telnyx 5.90.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +9 -227
  5. data/lib/telnyx/models/ai/assistant_update_params.rb +9 -227
  6. data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -232
  7. data/lib/telnyx/models/ai/external_llm.rb +87 -0
  8. data/lib/telnyx/models/ai/external_llm_req.rb +87 -0
  9. data/lib/telnyx/models/ai/fallback_config.rb +37 -0
  10. data/lib/telnyx/models/ai/fallback_config_req.rb +37 -0
  11. data/lib/telnyx/models/ai/inference_embedding.rb +9 -230
  12. data/lib/telnyx/models/ai/post_conversation_settings.rb +30 -0
  13. data/lib/telnyx/models/ai/post_conversation_settings_req.rb +30 -0
  14. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
  15. data/lib/telnyx/resources/ai/assistants.rb +6 -6
  16. data/lib/telnyx/version.rb +1 -1
  17. data/lib/telnyx.rb +6 -0
  18. data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -455
  19. data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -455
  20. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -461
  21. data/rbi/telnyx/models/ai/external_llm.rbi +157 -0
  22. data/rbi/telnyx/models/ai/external_llm_req.rbi +157 -0
  23. data/rbi/telnyx/models/ai/fallback_config.rbi +64 -0
  24. data/rbi/telnyx/models/ai/fallback_config_req.rbi +64 -0
  25. data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -452
  26. data/rbi/telnyx/models/ai/post_conversation_settings.rbi +45 -0
  27. data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +45 -0
  28. data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -5
  29. data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
  30. data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -205
  31. data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -205
  32. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -205
  33. data/sig/telnyx/models/ai/external_llm.rbs +75 -0
  34. data/sig/telnyx/models/ai/external_llm_req.rbs +75 -0
  35. data/sig/telnyx/models/ai/fallback_config.rbs +38 -0
  36. data/sig/telnyx/models/ai/fallback_config_req.rbs +40 -0
  37. data/sig/telnyx/models/ai/inference_embedding.rbs +17 -206
  38. data/sig/telnyx/models/ai/post_conversation_settings.rbs +17 -0
  39. data/sig/telnyx/models/ai/post_conversation_settings_req.rbs +17 -0
  40. data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
  41. data/sig/telnyx/resources/ai/assistants.rbs +6 -6
  42. metadata +20 -2
@@ -32,13 +32,13 @@ module Telnyx
32
32
 
33
33
  # @!attribute external_llm
34
34
  #
35
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::ExternalLlm, nil]
36
- optional :external_llm, -> { Telnyx::AI::Assistants::UpdateAssistant::ExternalLlm }
35
+ # @return [Telnyx::Models::AI::ExternalLlmReq, nil]
36
+ optional :external_llm, -> { Telnyx::AI::ExternalLlmReq }
37
37
 
38
38
  # @!attribute fallback_config
39
39
  #
40
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig, nil]
41
- optional :fallback_config, -> { Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig }
40
+ # @return [Telnyx::Models::AI::FallbackConfigReq, nil]
41
+ optional :fallback_config, -> { Telnyx::AI::FallbackConfigReq }
42
42
 
43
43
  # @!attribute greeting
44
44
  # Text that the assistant will use to start the conversation. This may be
@@ -104,9 +104,8 @@ module Telnyx
104
104
  # Telephony-control tools (e.g. hangup, transfer) are unavailable
105
105
  # post-conversation. Beta feature.
106
106
  #
107
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::PostConversationSettings, nil]
108
- optional :post_conversation_settings,
109
- -> { Telnyx::AI::Assistants::UpdateAssistant::PostConversationSettings }
107
+ # @return [Telnyx::Models::AI::PostConversationSettingsReq, nil]
108
+ optional :post_conversation_settings, -> { Telnyx::AI::PostConversationSettingsReq }
110
109
 
111
110
  # @!attribute privacy_settings
112
111
  #
@@ -158,9 +157,9 @@ module Telnyx
158
157
  #
159
158
  # @param enabled_features [Array<Symbol, Telnyx::Models::AI::EnabledFeatures>]
160
159
  #
161
- # @param external_llm [Telnyx::Models::AI::Assistants::UpdateAssistant::ExternalLlm]
160
+ # @param external_llm [Telnyx::Models::AI::ExternalLlmReq]
162
161
  #
163
- # @param fallback_config [Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig]
162
+ # @param fallback_config [Telnyx::Models::AI::FallbackConfigReq]
164
163
  #
165
164
  # @param greeting [String] Text that the assistant will use to start the conversation. This may be template
166
165
  #
@@ -178,7 +177,7 @@ module Telnyx
178
177
  #
179
178
  # @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
180
179
  #
181
- # @param post_conversation_settings [Telnyx::Models::AI::Assistants::UpdateAssistant::PostConversationSettings] Configuration for post-conversation processing. When enabled, the assistant rece
180
+ # @param post_conversation_settings [Telnyx::Models::AI::PostConversationSettingsReq] Configuration for post-conversation processing. When enabled, the assistant rece
182
181
  #
183
182
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
184
183
  #
@@ -193,228 +192,6 @@ module Telnyx
193
192
  # @param voice_settings [Telnyx::Models::AI::VoiceSettings]
194
193
  #
195
194
  # @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
196
-
197
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant#external_llm
198
- class ExternalLlm < Telnyx::Internal::Type::BaseModel
199
- # @!attribute base_url
200
- # Base URL for the external LLM endpoint.
201
- #
202
- # @return [String]
203
- required :base_url, String
204
-
205
- # @!attribute model
206
- # Model identifier to use with the external LLM endpoint.
207
- #
208
- # @return [String]
209
- required :model, String
210
-
211
- # @!attribute authentication_method
212
- # Authentication method used when connecting to the external LLM endpoint.
213
- #
214
- # @return [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::ExternalLlm::AuthenticationMethod, nil]
215
- optional :authentication_method,
216
- enum: -> { Telnyx::AI::Assistants::UpdateAssistant::ExternalLlm::AuthenticationMethod }
217
-
218
- # @!attribute certificate_ref
219
- # Integration secret identifier for the client certificate used with certificate
220
- # authentication.
221
- #
222
- # @return [String, nil]
223
- optional :certificate_ref, String
224
-
225
- # @!attribute forward_metadata
226
- # When enabled, Telnyx forwards the assistant's dynamic variables to the external
227
- # LLM endpoint. Defaults to false. The chat completion request includes a
228
- # top-level `extra_metadata` object when dynamic variables are available. For
229
- # example:
230
- # `{"extra_metadata":{"customer_name":"Jane","account_id":"acct_789","telnyx_agent_target":"+13125550100","telnyx_end_user_target":"+13125550123"}}`.
231
- #
232
- # @return [Boolean, nil]
233
- optional :forward_metadata, Telnyx::Internal::Type::Boolean
234
-
235
- # @!attribute llm_api_key_ref
236
- # Integration secret identifier for the external LLM API key.
237
- #
238
- # @return [String, nil]
239
- optional :llm_api_key_ref, String
240
-
241
- # @!attribute token_retrieval_url
242
- # URL used to retrieve an access token when certificate authentication is enabled.
243
- #
244
- # @return [String, nil]
245
- optional :token_retrieval_url, String
246
-
247
- # @!method initialize(base_url:, model:, authentication_method: nil, certificate_ref: nil, forward_metadata: nil, llm_api_key_ref: nil, token_retrieval_url: nil)
248
- # Some parameter documentations has been truncated, see
249
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::ExternalLlm} for more details.
250
- #
251
- # @param base_url [String] Base URL for the external LLM endpoint.
252
- #
253
- # @param model [String] Model identifier to use with the external LLM endpoint.
254
- #
255
- # @param authentication_method [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::ExternalLlm::AuthenticationMethod] Authentication method used when connecting to the external LLM endpoint.
256
- #
257
- # @param certificate_ref [String] Integration secret identifier for the client certificate used with certificate a
258
- #
259
- # @param forward_metadata [Boolean] When enabled, Telnyx forwards the assistant's dynamic variables to the external
260
- #
261
- # @param llm_api_key_ref [String] Integration secret identifier for the external LLM API key.
262
- #
263
- # @param token_retrieval_url [String] URL used to retrieve an access token when certificate authentication is enabled.
264
-
265
- # Authentication method used when connecting to the external LLM endpoint.
266
- #
267
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant::ExternalLlm#authentication_method
268
- module AuthenticationMethod
269
- extend Telnyx::Internal::Type::Enum
270
-
271
- TOKEN = :token
272
- CERTIFICATE = :certificate
273
-
274
- # @!method self.values
275
- # @return [Array<Symbol>]
276
- end
277
- end
278
-
279
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant#fallback_config
280
- class FallbackConfig < Telnyx::Internal::Type::BaseModel
281
- # @!attribute external_llm
282
- #
283
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm, nil]
284
- optional :external_llm, -> { Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm }
285
-
286
- # @!attribute llm_api_key_ref
287
- # Integration secret identifier for the fallback model API key.
288
- #
289
- # @return [String, nil]
290
- optional :llm_api_key_ref, String
291
-
292
- # @!attribute model
293
- # Fallback Telnyx-hosted model to use when the primary LLM provider is
294
- # unavailable.
295
- #
296
- # @return [String, nil]
297
- optional :model, String
298
-
299
- # @!method initialize(external_llm: nil, llm_api_key_ref: nil, model: nil)
300
- # Some parameter documentations has been truncated, see
301
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig} for more
302
- # details.
303
- #
304
- # @param external_llm [Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm]
305
- #
306
- # @param llm_api_key_ref [String] Integration secret identifier for the fallback model API key.
307
- #
308
- # @param model [String] Fallback Telnyx-hosted model to use when the primary LLM provider is unavailable
309
-
310
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig#external_llm
311
- class ExternalLlm < Telnyx::Internal::Type::BaseModel
312
- # @!attribute base_url
313
- # Base URL for the external LLM endpoint.
314
- #
315
- # @return [String]
316
- required :base_url, String
317
-
318
- # @!attribute model
319
- # Model identifier to use with the external LLM endpoint.
320
- #
321
- # @return [String]
322
- required :model, String
323
-
324
- # @!attribute authentication_method
325
- # Authentication method used when connecting to the external LLM endpoint.
326
- #
327
- # @return [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm::AuthenticationMethod, nil]
328
- optional :authentication_method,
329
- enum: -> { Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm::AuthenticationMethod }
330
-
331
- # @!attribute certificate_ref
332
- # Integration secret identifier for the client certificate used with certificate
333
- # authentication.
334
- #
335
- # @return [String, nil]
336
- optional :certificate_ref, String
337
-
338
- # @!attribute forward_metadata
339
- # When enabled, Telnyx forwards the assistant's dynamic variables to the external
340
- # LLM endpoint. Defaults to false. The chat completion request includes a
341
- # top-level `extra_metadata` object when dynamic variables are available. For
342
- # example:
343
- # `{"extra_metadata":{"customer_name":"Jane","account_id":"acct_789","telnyx_agent_target":"+13125550100","telnyx_end_user_target":"+13125550123"}}`.
344
- #
345
- # @return [Boolean, nil]
346
- optional :forward_metadata, Telnyx::Internal::Type::Boolean
347
-
348
- # @!attribute llm_api_key_ref
349
- # Integration secret identifier for the external LLM API key.
350
- #
351
- # @return [String, nil]
352
- optional :llm_api_key_ref, String
353
-
354
- # @!attribute token_retrieval_url
355
- # URL used to retrieve an access token when certificate authentication is enabled.
356
- #
357
- # @return [String, nil]
358
- optional :token_retrieval_url, String
359
-
360
- # @!method initialize(base_url:, model:, authentication_method: nil, certificate_ref: nil, forward_metadata: nil, llm_api_key_ref: nil, token_retrieval_url: nil)
361
- # Some parameter documentations has been truncated, see
362
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm}
363
- # for more details.
364
- #
365
- # @param base_url [String] Base URL for the external LLM endpoint.
366
- #
367
- # @param model [String] Model identifier to use with the external LLM endpoint.
368
- #
369
- # @param authentication_method [Symbol, Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm::AuthenticationMethod] Authentication method used when connecting to the external LLM endpoint.
370
- #
371
- # @param certificate_ref [String] Integration secret identifier for the client certificate used with certificate a
372
- #
373
- # @param forward_metadata [Boolean] When enabled, Telnyx forwards the assistant's dynamic variables to the external
374
- #
375
- # @param llm_api_key_ref [String] Integration secret identifier for the external LLM API key.
376
- #
377
- # @param token_retrieval_url [String] URL used to retrieve an access token when certificate authentication is enabled.
378
-
379
- # Authentication method used when connecting to the external LLM endpoint.
380
- #
381
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig::ExternalLlm#authentication_method
382
- module AuthenticationMethod
383
- extend Telnyx::Internal::Type::Enum
384
-
385
- TOKEN = :token
386
- CERTIFICATE = :certificate
387
-
388
- # @!method self.values
389
- # @return [Array<Symbol>]
390
- end
391
- end
392
- end
393
-
394
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant#post_conversation_settings
395
- class PostConversationSettings < Telnyx::Internal::Type::BaseModel
396
- # @!attribute enabled
397
- # Whether post-conversation processing is enabled. When true, the assistant will
398
- # be invoked after the conversation ends to perform any final tool calls. Defaults
399
- # to false.
400
- #
401
- # @return [Boolean, nil]
402
- optional :enabled, Telnyx::Internal::Type::Boolean
403
-
404
- # @!method initialize(enabled: nil)
405
- # Some parameter documentations has been truncated, see
406
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::PostConversationSettings} for
407
- # more details.
408
- #
409
- # Configuration for post-conversation processing. When enabled, the assistant
410
- # receives one additional LLM turn after the conversation ends, allowing it to
411
- # execute tool calls such as logging to a CRM or sending a summary. The assistant
412
- # can execute multiple parallel or sequential tools during this phase.
413
- # Telephony-control tools (e.g. hangup, transfer) are unavailable
414
- # post-conversation. Beta feature.
415
- #
416
- # @param enabled [Boolean] Whether post-conversation processing is enabled. When true, the assistant will b
417
- end
418
195
  end
419
196
  end
420
197
 
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class ExternalLlm < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute base_url
8
+ # Base URL for the external LLM endpoint.
9
+ #
10
+ # @return [String]
11
+ required :base_url, String
12
+
13
+ # @!attribute model
14
+ # Model identifier to use with the external LLM endpoint.
15
+ #
16
+ # @return [String]
17
+ required :model, String
18
+
19
+ # @!attribute authentication_method
20
+ # Authentication method used when connecting to the external LLM endpoint.
21
+ #
22
+ # @return [Symbol, Telnyx::Models::AI::ExternalLlm::AuthenticationMethod, nil]
23
+ optional :authentication_method, enum: -> { Telnyx::AI::ExternalLlm::AuthenticationMethod }
24
+
25
+ # @!attribute certificate_ref
26
+ # Integration secret identifier for the client certificate used with certificate
27
+ # authentication.
28
+ #
29
+ # @return [String, nil]
30
+ optional :certificate_ref, String
31
+
32
+ # @!attribute forward_metadata
33
+ # When enabled, Telnyx forwards the assistant's dynamic variables to the external
34
+ # LLM endpoint. Defaults to false. The chat completion request includes a
35
+ # top-level `extra_metadata` object when dynamic variables are available. For
36
+ # example:
37
+ # `{"extra_metadata":{"customer_name":"Jane","account_id":"acct_789","telnyx_agent_target":"+13125550100","telnyx_end_user_target":"+13125550123"}}`.
38
+ #
39
+ # @return [Boolean, nil]
40
+ optional :forward_metadata, Telnyx::Internal::Type::Boolean
41
+
42
+ # @!attribute llm_api_key_ref
43
+ # Integration secret identifier for the external LLM API key.
44
+ #
45
+ # @return [String, nil]
46
+ optional :llm_api_key_ref, String
47
+
48
+ # @!attribute token_retrieval_url
49
+ # URL used to retrieve an access token when certificate authentication is enabled.
50
+ #
51
+ # @return [String, nil]
52
+ optional :token_retrieval_url, String
53
+
54
+ # @!method initialize(base_url:, model:, authentication_method: nil, certificate_ref: nil, forward_metadata: nil, llm_api_key_ref: nil, token_retrieval_url: nil)
55
+ # Some parameter documentations has been truncated, see
56
+ # {Telnyx::Models::AI::ExternalLlm} for more details.
57
+ #
58
+ # @param base_url [String] Base URL for the external LLM endpoint.
59
+ #
60
+ # @param model [String] Model identifier to use with the external LLM endpoint.
61
+ #
62
+ # @param authentication_method [Symbol, Telnyx::Models::AI::ExternalLlm::AuthenticationMethod] Authentication method used when connecting to the external LLM endpoint.
63
+ #
64
+ # @param certificate_ref [String] Integration secret identifier for the client certificate used with certificate a
65
+ #
66
+ # @param forward_metadata [Boolean] When enabled, Telnyx forwards the assistant's dynamic variables to the external
67
+ #
68
+ # @param llm_api_key_ref [String] Integration secret identifier for the external LLM API key.
69
+ #
70
+ # @param token_retrieval_url [String] URL used to retrieve an access token when certificate authentication is enabled.
71
+
72
+ # Authentication method used when connecting to the external LLM endpoint.
73
+ #
74
+ # @see Telnyx::Models::AI::ExternalLlm#authentication_method
75
+ module AuthenticationMethod
76
+ extend Telnyx::Internal::Type::Enum
77
+
78
+ TOKEN = :token
79
+ CERTIFICATE = :certificate
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class ExternalLlmReq < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute base_url
8
+ # Base URL for the external LLM endpoint.
9
+ #
10
+ # @return [String]
11
+ required :base_url, String
12
+
13
+ # @!attribute model
14
+ # Model identifier to use with the external LLM endpoint.
15
+ #
16
+ # @return [String]
17
+ required :model, String
18
+
19
+ # @!attribute authentication_method
20
+ # Authentication method used when connecting to the external LLM endpoint.
21
+ #
22
+ # @return [Symbol, Telnyx::Models::AI::ExternalLlmReq::AuthenticationMethod, nil]
23
+ optional :authentication_method, enum: -> { Telnyx::AI::ExternalLlmReq::AuthenticationMethod }
24
+
25
+ # @!attribute certificate_ref
26
+ # Integration secret identifier for the client certificate used with certificate
27
+ # authentication.
28
+ #
29
+ # @return [String, nil]
30
+ optional :certificate_ref, String
31
+
32
+ # @!attribute forward_metadata
33
+ # When enabled, Telnyx forwards the assistant's dynamic variables to the external
34
+ # LLM endpoint. Defaults to false. The chat completion request includes a
35
+ # top-level `extra_metadata` object when dynamic variables are available. For
36
+ # example:
37
+ # `{"extra_metadata":{"customer_name":"Jane","account_id":"acct_789","telnyx_agent_target":"+13125550100","telnyx_end_user_target":"+13125550123"}}`.
38
+ #
39
+ # @return [Boolean, nil]
40
+ optional :forward_metadata, Telnyx::Internal::Type::Boolean
41
+
42
+ # @!attribute llm_api_key_ref
43
+ # Integration secret identifier for the external LLM API key.
44
+ #
45
+ # @return [String, nil]
46
+ optional :llm_api_key_ref, String
47
+
48
+ # @!attribute token_retrieval_url
49
+ # URL used to retrieve an access token when certificate authentication is enabled.
50
+ #
51
+ # @return [String, nil]
52
+ optional :token_retrieval_url, String
53
+
54
+ # @!method initialize(base_url:, model:, authentication_method: nil, certificate_ref: nil, forward_metadata: nil, llm_api_key_ref: nil, token_retrieval_url: nil)
55
+ # Some parameter documentations has been truncated, see
56
+ # {Telnyx::Models::AI::ExternalLlmReq} for more details.
57
+ #
58
+ # @param base_url [String] Base URL for the external LLM endpoint.
59
+ #
60
+ # @param model [String] Model identifier to use with the external LLM endpoint.
61
+ #
62
+ # @param authentication_method [Symbol, Telnyx::Models::AI::ExternalLlmReq::AuthenticationMethod] Authentication method used when connecting to the external LLM endpoint.
63
+ #
64
+ # @param certificate_ref [String] Integration secret identifier for the client certificate used with certificate a
65
+ #
66
+ # @param forward_metadata [Boolean] When enabled, Telnyx forwards the assistant's dynamic variables to the external
67
+ #
68
+ # @param llm_api_key_ref [String] Integration secret identifier for the external LLM API key.
69
+ #
70
+ # @param token_retrieval_url [String] URL used to retrieve an access token when certificate authentication is enabled.
71
+
72
+ # Authentication method used when connecting to the external LLM endpoint.
73
+ #
74
+ # @see Telnyx::Models::AI::ExternalLlmReq#authentication_method
75
+ module AuthenticationMethod
76
+ extend Telnyx::Internal::Type::Enum
77
+
78
+ TOKEN = :token
79
+ CERTIFICATE = :certificate
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class FallbackConfig < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute external_llm
8
+ #
9
+ # @return [Telnyx::Models::AI::ExternalLlm, nil]
10
+ optional :external_llm, -> { Telnyx::AI::ExternalLlm }
11
+
12
+ # @!attribute llm_api_key_ref
13
+ # Integration secret identifier for the fallback model API key.
14
+ #
15
+ # @return [String, nil]
16
+ optional :llm_api_key_ref, String
17
+
18
+ # @!attribute model
19
+ # Fallback Telnyx-hosted model to use when the primary LLM provider is
20
+ # unavailable.
21
+ #
22
+ # @return [String, nil]
23
+ optional :model, String
24
+
25
+ # @!method initialize(external_llm: nil, llm_api_key_ref: nil, model: nil)
26
+ # Some parameter documentations has been truncated, see
27
+ # {Telnyx::Models::AI::FallbackConfig} for more details.
28
+ #
29
+ # @param external_llm [Telnyx::Models::AI::ExternalLlm]
30
+ #
31
+ # @param llm_api_key_ref [String] Integration secret identifier for the fallback model API key.
32
+ #
33
+ # @param model [String] Fallback Telnyx-hosted model to use when the primary LLM provider is unavailable
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class FallbackConfigReq < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute external_llm
8
+ #
9
+ # @return [Telnyx::Models::AI::ExternalLlmReq, nil]
10
+ optional :external_llm, -> { Telnyx::AI::ExternalLlmReq }
11
+
12
+ # @!attribute llm_api_key_ref
13
+ # Integration secret identifier for the fallback model API key.
14
+ #
15
+ # @return [String, nil]
16
+ optional :llm_api_key_ref, String
17
+
18
+ # @!attribute model
19
+ # Fallback Telnyx-hosted model to use when the primary LLM provider is
20
+ # unavailable.
21
+ #
22
+ # @return [String, nil]
23
+ optional :model, String
24
+
25
+ # @!method initialize(external_llm: nil, llm_api_key_ref: nil, model: nil)
26
+ # Some parameter documentations has been truncated, see
27
+ # {Telnyx::Models::AI::FallbackConfigReq} for more details.
28
+ #
29
+ # @param external_llm [Telnyx::Models::AI::ExternalLlmReq]
30
+ #
31
+ # @param llm_api_key_ref [String] Integration secret identifier for the fallback model API key.
32
+ #
33
+ # @param model [String] Fallback Telnyx-hosted model to use when the primary LLM provider is unavailable
34
+ end
35
+ end
36
+ end
37
+ end