telnyx 5.97.0 → 5.99.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 -231
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -231
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -236
- data/lib/telnyx/models/ai/external_llm.rb +89 -0
- data/lib/telnyx/models/ai/external_llm_req.rb +89 -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 -234
- data/lib/telnyx/models/ai/observability.rb +57 -1
- data/lib/telnyx/models/ai/observability_req.rb +57 -1
- 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/calls/action_gather_using_ai_params.rb +26 -3
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +26 -3
- data/lib/telnyx/models/calls/action_speak_params.rb +26 -3
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +26 -3
- data/lib/telnyx/models/conferences/action_speak_params.rb +26 -3
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +4 -4
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +6 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -463
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -463
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -469
- data/rbi/telnyx/models/ai/external_llm.rbi +161 -0
- data/rbi/telnyx/models/ai/external_llm_req.rbi +161 -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 -460
- data/rbi/telnyx/models/ai/observability.rbi +85 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +86 -0
- 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/calls/action_gather_using_ai_params.rbi +50 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +50 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +50 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +50 -5
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +50 -5
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -5
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/calls/actions.rbi +16 -4
- data/rbi/telnyx/resources/conferences/actions.rbi +4 -1
- 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/observability.rbs +41 -0
- data/sig/telnyx/models/ai/observability_req.rbs +41 -0
- 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/calls/action_gather_using_ai_params.rbs +15 -0
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -0
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -0
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -0
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- metadata +20 -2
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type external_llm_req =
|
|
5
|
+
{
|
|
6
|
+
base_url: String,
|
|
7
|
+
model: String,
|
|
8
|
+
authentication_method: Telnyx::Models::AI::ExternalLlmReq::authentication_method,
|
|
9
|
+
certificate_ref: String,
|
|
10
|
+
forward_metadata: bool,
|
|
11
|
+
llm_api_key_ref: String,
|
|
12
|
+
token_retrieval_url: String
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class ExternalLlmReq < Telnyx::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor base_url: String
|
|
17
|
+
|
|
18
|
+
attr_accessor model: String
|
|
19
|
+
|
|
20
|
+
attr_reader authentication_method: Telnyx::Models::AI::ExternalLlmReq::authentication_method?
|
|
21
|
+
|
|
22
|
+
def authentication_method=: (
|
|
23
|
+
Telnyx::Models::AI::ExternalLlmReq::authentication_method
|
|
24
|
+
) -> Telnyx::Models::AI::ExternalLlmReq::authentication_method
|
|
25
|
+
|
|
26
|
+
attr_reader certificate_ref: String?
|
|
27
|
+
|
|
28
|
+
def certificate_ref=: (String) -> String
|
|
29
|
+
|
|
30
|
+
attr_reader forward_metadata: bool?
|
|
31
|
+
|
|
32
|
+
def forward_metadata=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
attr_reader llm_api_key_ref: String?
|
|
35
|
+
|
|
36
|
+
def llm_api_key_ref=: (String) -> String
|
|
37
|
+
|
|
38
|
+
attr_reader token_retrieval_url: String?
|
|
39
|
+
|
|
40
|
+
def token_retrieval_url=: (String) -> String
|
|
41
|
+
|
|
42
|
+
def initialize: (
|
|
43
|
+
base_url: String,
|
|
44
|
+
model: String,
|
|
45
|
+
?authentication_method: Telnyx::Models::AI::ExternalLlmReq::authentication_method,
|
|
46
|
+
?certificate_ref: String,
|
|
47
|
+
?forward_metadata: bool,
|
|
48
|
+
?llm_api_key_ref: String,
|
|
49
|
+
?token_retrieval_url: String
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
base_url: String,
|
|
54
|
+
model: String,
|
|
55
|
+
authentication_method: Telnyx::Models::AI::ExternalLlmReq::authentication_method,
|
|
56
|
+
certificate_ref: String,
|
|
57
|
+
forward_metadata: bool,
|
|
58
|
+
llm_api_key_ref: String,
|
|
59
|
+
token_retrieval_url: String
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type authentication_method = :token | :certificate
|
|
63
|
+
|
|
64
|
+
module AuthenticationMethod
|
|
65
|
+
extend Telnyx::Internal::Type::Enum
|
|
66
|
+
|
|
67
|
+
TOKEN: :token
|
|
68
|
+
CERTIFICATE: :certificate
|
|
69
|
+
|
|
70
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::ExternalLlmReq::authentication_method]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type fallback_config =
|
|
5
|
+
{
|
|
6
|
+
external_llm: Telnyx::AI::ExternalLlm,
|
|
7
|
+
llm_api_key_ref: String,
|
|
8
|
+
model: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class FallbackConfig < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_reader external_llm: Telnyx::AI::ExternalLlm?
|
|
13
|
+
|
|
14
|
+
def external_llm=: (Telnyx::AI::ExternalLlm) -> Telnyx::AI::ExternalLlm
|
|
15
|
+
|
|
16
|
+
attr_reader llm_api_key_ref: String?
|
|
17
|
+
|
|
18
|
+
def llm_api_key_ref=: (String) -> String
|
|
19
|
+
|
|
20
|
+
attr_reader model: String?
|
|
21
|
+
|
|
22
|
+
def model=: (String) -> String
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?external_llm: Telnyx::AI::ExternalLlm,
|
|
26
|
+
?llm_api_key_ref: String,
|
|
27
|
+
?model: String
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
external_llm: Telnyx::AI::ExternalLlm,
|
|
32
|
+
llm_api_key_ref: String,
|
|
33
|
+
model: String
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type fallback_config_req =
|
|
5
|
+
{
|
|
6
|
+
external_llm: Telnyx::AI::ExternalLlmReq,
|
|
7
|
+
llm_api_key_ref: String,
|
|
8
|
+
model: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class FallbackConfigReq < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_reader external_llm: Telnyx::AI::ExternalLlmReq?
|
|
13
|
+
|
|
14
|
+
def external_llm=: (
|
|
15
|
+
Telnyx::AI::ExternalLlmReq
|
|
16
|
+
) -> Telnyx::AI::ExternalLlmReq
|
|
17
|
+
|
|
18
|
+
attr_reader llm_api_key_ref: String?
|
|
19
|
+
|
|
20
|
+
def llm_api_key_ref=: (String) -> String
|
|
21
|
+
|
|
22
|
+
attr_reader model: String?
|
|
23
|
+
|
|
24
|
+
def model=: (String) -> String
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
?external_llm: Telnyx::AI::ExternalLlmReq,
|
|
28
|
+
?llm_api_key_ref: String,
|
|
29
|
+
?model: String
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
external_llm: Telnyx::AI::ExternalLlmReq,
|
|
34
|
+
llm_api_key_ref: String,
|
|
35
|
+
model: String
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -13,8 +13,8 @@ module Telnyx
|
|
|
13
13
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
14
14
|
dynamic_variables_webhook_url: String,
|
|
15
15
|
enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
16
|
-
external_llm: Telnyx::AI::
|
|
17
|
-
fallback_config: Telnyx::AI::
|
|
16
|
+
external_llm: Telnyx::AI::ExternalLlm,
|
|
17
|
+
fallback_config: Telnyx::AI::FallbackConfig,
|
|
18
18
|
greeting: String,
|
|
19
19
|
import_metadata: Telnyx::AI::ImportMetadata,
|
|
20
20
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
@@ -24,7 +24,7 @@ module Telnyx
|
|
|
24
24
|
mcp_servers: ::Array[Telnyx::AI::InferenceEmbedding::McpServer],
|
|
25
25
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
26
26
|
observability_settings: Telnyx::AI::Observability,
|
|
27
|
-
post_conversation_settings: Telnyx::AI::
|
|
27
|
+
post_conversation_settings: Telnyx::AI::PostConversationSettings,
|
|
28
28
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
29
29
|
related_mission_ids: ::Array[String],
|
|
30
30
|
tags: ::Array[String],
|
|
@@ -71,17 +71,15 @@ module Telnyx
|
|
|
71
71
|
::Array[Telnyx::Models::AI::enabled_features]
|
|
72
72
|
) -> ::Array[Telnyx::Models::AI::enabled_features]
|
|
73
73
|
|
|
74
|
-
attr_reader external_llm: Telnyx::AI::
|
|
74
|
+
attr_reader external_llm: Telnyx::AI::ExternalLlm?
|
|
75
75
|
|
|
76
|
-
def external_llm=: (
|
|
77
|
-
Telnyx::AI::InferenceEmbedding::ExternalLlm
|
|
78
|
-
) -> Telnyx::AI::InferenceEmbedding::ExternalLlm
|
|
76
|
+
def external_llm=: (Telnyx::AI::ExternalLlm) -> Telnyx::AI::ExternalLlm
|
|
79
77
|
|
|
80
|
-
attr_reader fallback_config: Telnyx::AI::
|
|
78
|
+
attr_reader fallback_config: Telnyx::AI::FallbackConfig?
|
|
81
79
|
|
|
82
80
|
def fallback_config=: (
|
|
83
|
-
Telnyx::AI::
|
|
84
|
-
) -> Telnyx::AI::
|
|
81
|
+
Telnyx::AI::FallbackConfig
|
|
82
|
+
) -> Telnyx::AI::FallbackConfig
|
|
85
83
|
|
|
86
84
|
attr_reader greeting: String?
|
|
87
85
|
|
|
@@ -133,11 +131,11 @@ module Telnyx
|
|
|
133
131
|
Telnyx::AI::Observability
|
|
134
132
|
) -> Telnyx::AI::Observability
|
|
135
133
|
|
|
136
|
-
attr_reader post_conversation_settings: Telnyx::AI::
|
|
134
|
+
attr_reader post_conversation_settings: Telnyx::AI::PostConversationSettings?
|
|
137
135
|
|
|
138
136
|
def post_conversation_settings=: (
|
|
139
|
-
Telnyx::AI::
|
|
140
|
-
) -> Telnyx::AI::
|
|
137
|
+
Telnyx::AI::PostConversationSettings
|
|
138
|
+
) -> Telnyx::AI::PostConversationSettings
|
|
141
139
|
|
|
142
140
|
attr_reader privacy_settings: Telnyx::AI::PrivacySettings?
|
|
143
141
|
|
|
@@ -206,8 +204,8 @@ module Telnyx
|
|
|
206
204
|
?dynamic_variables_webhook_timeout_ms: Integer,
|
|
207
205
|
?dynamic_variables_webhook_url: String,
|
|
208
206
|
?enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
209
|
-
?external_llm: Telnyx::AI::
|
|
210
|
-
?fallback_config: Telnyx::AI::
|
|
207
|
+
?external_llm: Telnyx::AI::ExternalLlm,
|
|
208
|
+
?fallback_config: Telnyx::AI::FallbackConfig,
|
|
211
209
|
?greeting: String,
|
|
212
210
|
?import_metadata: Telnyx::AI::ImportMetadata,
|
|
213
211
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
@@ -217,7 +215,7 @@ module Telnyx
|
|
|
217
215
|
?mcp_servers: ::Array[Telnyx::AI::InferenceEmbedding::McpServer],
|
|
218
216
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
219
217
|
?observability_settings: Telnyx::AI::Observability,
|
|
220
|
-
?post_conversation_settings: Telnyx::AI::
|
|
218
|
+
?post_conversation_settings: Telnyx::AI::PostConversationSettings,
|
|
221
219
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
222
220
|
?related_mission_ids: ::Array[String],
|
|
223
221
|
?tags: ::Array[String],
|
|
@@ -242,8 +240,8 @@ module Telnyx
|
|
|
242
240
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
243
241
|
dynamic_variables_webhook_url: String,
|
|
244
242
|
enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
245
|
-
external_llm: Telnyx::AI::
|
|
246
|
-
fallback_config: Telnyx::AI::
|
|
243
|
+
external_llm: Telnyx::AI::ExternalLlm,
|
|
244
|
+
fallback_config: Telnyx::AI::FallbackConfig,
|
|
247
245
|
greeting: String,
|
|
248
246
|
import_metadata: Telnyx::AI::ImportMetadata,
|
|
249
247
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
@@ -253,7 +251,7 @@ module Telnyx
|
|
|
253
251
|
mcp_servers: ::Array[Telnyx::AI::InferenceEmbedding::McpServer],
|
|
254
252
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
255
253
|
observability_settings: Telnyx::AI::Observability,
|
|
256
|
-
post_conversation_settings: Telnyx::AI::
|
|
254
|
+
post_conversation_settings: Telnyx::AI::PostConversationSettings,
|
|
257
255
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
258
256
|
related_mission_ids: ::Array[String],
|
|
259
257
|
tags: ::Array[String],
|
|
@@ -267,181 +265,6 @@ module Telnyx
|
|
|
267
265
|
widget_settings: Telnyx::AI::WidgetSettings
|
|
268
266
|
}
|
|
269
267
|
|
|
270
|
-
type external_llm =
|
|
271
|
-
{
|
|
272
|
-
base_url: String,
|
|
273
|
-
model: String,
|
|
274
|
-
authentication_method: Telnyx::Models::AI::InferenceEmbedding::ExternalLlm::authentication_method,
|
|
275
|
-
certificate_ref: String,
|
|
276
|
-
forward_metadata: bool,
|
|
277
|
-
llm_api_key_ref: String,
|
|
278
|
-
token_retrieval_url: String
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
class ExternalLlm < Telnyx::Internal::Type::BaseModel
|
|
282
|
-
attr_accessor base_url: String
|
|
283
|
-
|
|
284
|
-
attr_accessor model: String
|
|
285
|
-
|
|
286
|
-
attr_reader authentication_method: Telnyx::Models::AI::InferenceEmbedding::ExternalLlm::authentication_method?
|
|
287
|
-
|
|
288
|
-
def authentication_method=: (
|
|
289
|
-
Telnyx::Models::AI::InferenceEmbedding::ExternalLlm::authentication_method
|
|
290
|
-
) -> Telnyx::Models::AI::InferenceEmbedding::ExternalLlm::authentication_method
|
|
291
|
-
|
|
292
|
-
attr_reader certificate_ref: String?
|
|
293
|
-
|
|
294
|
-
def certificate_ref=: (String) -> String
|
|
295
|
-
|
|
296
|
-
attr_reader forward_metadata: bool?
|
|
297
|
-
|
|
298
|
-
def forward_metadata=: (bool) -> bool
|
|
299
|
-
|
|
300
|
-
attr_reader llm_api_key_ref: String?
|
|
301
|
-
|
|
302
|
-
def llm_api_key_ref=: (String) -> String
|
|
303
|
-
|
|
304
|
-
attr_reader token_retrieval_url: String?
|
|
305
|
-
|
|
306
|
-
def token_retrieval_url=: (String) -> String
|
|
307
|
-
|
|
308
|
-
def initialize: (
|
|
309
|
-
base_url: String,
|
|
310
|
-
model: String,
|
|
311
|
-
?authentication_method: Telnyx::Models::AI::InferenceEmbedding::ExternalLlm::authentication_method,
|
|
312
|
-
?certificate_ref: String,
|
|
313
|
-
?forward_metadata: bool,
|
|
314
|
-
?llm_api_key_ref: String,
|
|
315
|
-
?token_retrieval_url: String
|
|
316
|
-
) -> void
|
|
317
|
-
|
|
318
|
-
def to_hash: -> {
|
|
319
|
-
base_url: String,
|
|
320
|
-
model: String,
|
|
321
|
-
authentication_method: Telnyx::Models::AI::InferenceEmbedding::ExternalLlm::authentication_method,
|
|
322
|
-
certificate_ref: String,
|
|
323
|
-
forward_metadata: bool,
|
|
324
|
-
llm_api_key_ref: String,
|
|
325
|
-
token_retrieval_url: String
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
type authentication_method = :token | :certificate
|
|
329
|
-
|
|
330
|
-
module AuthenticationMethod
|
|
331
|
-
extend Telnyx::Internal::Type::Enum
|
|
332
|
-
|
|
333
|
-
TOKEN: :token
|
|
334
|
-
CERTIFICATE: :certificate
|
|
335
|
-
|
|
336
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::InferenceEmbedding::ExternalLlm::authentication_method]
|
|
337
|
-
end
|
|
338
|
-
end
|
|
339
|
-
|
|
340
|
-
type fallback_config =
|
|
341
|
-
{
|
|
342
|
-
external_llm: Telnyx::AI::InferenceEmbedding::FallbackConfig::ExternalLlm,
|
|
343
|
-
llm_api_key_ref: String,
|
|
344
|
-
model: String
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
class FallbackConfig < Telnyx::Internal::Type::BaseModel
|
|
348
|
-
attr_reader external_llm: Telnyx::AI::InferenceEmbedding::FallbackConfig::ExternalLlm?
|
|
349
|
-
|
|
350
|
-
def external_llm=: (
|
|
351
|
-
Telnyx::AI::InferenceEmbedding::FallbackConfig::ExternalLlm
|
|
352
|
-
) -> Telnyx::AI::InferenceEmbedding::FallbackConfig::ExternalLlm
|
|
353
|
-
|
|
354
|
-
attr_reader llm_api_key_ref: String?
|
|
355
|
-
|
|
356
|
-
def llm_api_key_ref=: (String) -> String
|
|
357
|
-
|
|
358
|
-
attr_reader model: String?
|
|
359
|
-
|
|
360
|
-
def model=: (String) -> String
|
|
361
|
-
|
|
362
|
-
def initialize: (
|
|
363
|
-
?external_llm: Telnyx::AI::InferenceEmbedding::FallbackConfig::ExternalLlm,
|
|
364
|
-
?llm_api_key_ref: String,
|
|
365
|
-
?model: String
|
|
366
|
-
) -> void
|
|
367
|
-
|
|
368
|
-
def to_hash: -> {
|
|
369
|
-
external_llm: Telnyx::AI::InferenceEmbedding::FallbackConfig::ExternalLlm,
|
|
370
|
-
llm_api_key_ref: String,
|
|
371
|
-
model: String
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
type external_llm =
|
|
375
|
-
{
|
|
376
|
-
base_url: String,
|
|
377
|
-
model: String,
|
|
378
|
-
authentication_method: Telnyx::Models::AI::InferenceEmbedding::FallbackConfig::ExternalLlm::authentication_method,
|
|
379
|
-
certificate_ref: String,
|
|
380
|
-
forward_metadata: bool,
|
|
381
|
-
llm_api_key_ref: String,
|
|
382
|
-
token_retrieval_url: String
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
class ExternalLlm < Telnyx::Internal::Type::BaseModel
|
|
386
|
-
attr_accessor base_url: String
|
|
387
|
-
|
|
388
|
-
attr_accessor model: String
|
|
389
|
-
|
|
390
|
-
attr_reader authentication_method: Telnyx::Models::AI::InferenceEmbedding::FallbackConfig::ExternalLlm::authentication_method?
|
|
391
|
-
|
|
392
|
-
def authentication_method=: (
|
|
393
|
-
Telnyx::Models::AI::InferenceEmbedding::FallbackConfig::ExternalLlm::authentication_method
|
|
394
|
-
) -> Telnyx::Models::AI::InferenceEmbedding::FallbackConfig::ExternalLlm::authentication_method
|
|
395
|
-
|
|
396
|
-
attr_reader certificate_ref: String?
|
|
397
|
-
|
|
398
|
-
def certificate_ref=: (String) -> String
|
|
399
|
-
|
|
400
|
-
attr_reader forward_metadata: bool?
|
|
401
|
-
|
|
402
|
-
def forward_metadata=: (bool) -> bool
|
|
403
|
-
|
|
404
|
-
attr_reader llm_api_key_ref: String?
|
|
405
|
-
|
|
406
|
-
def llm_api_key_ref=: (String) -> String
|
|
407
|
-
|
|
408
|
-
attr_reader token_retrieval_url: String?
|
|
409
|
-
|
|
410
|
-
def token_retrieval_url=: (String) -> String
|
|
411
|
-
|
|
412
|
-
def initialize: (
|
|
413
|
-
base_url: String,
|
|
414
|
-
model: String,
|
|
415
|
-
?authentication_method: Telnyx::Models::AI::InferenceEmbedding::FallbackConfig::ExternalLlm::authentication_method,
|
|
416
|
-
?certificate_ref: String,
|
|
417
|
-
?forward_metadata: bool,
|
|
418
|
-
?llm_api_key_ref: String,
|
|
419
|
-
?token_retrieval_url: String
|
|
420
|
-
) -> void
|
|
421
|
-
|
|
422
|
-
def to_hash: -> {
|
|
423
|
-
base_url: String,
|
|
424
|
-
model: String,
|
|
425
|
-
authentication_method: Telnyx::Models::AI::InferenceEmbedding::FallbackConfig::ExternalLlm::authentication_method,
|
|
426
|
-
certificate_ref: String,
|
|
427
|
-
forward_metadata: bool,
|
|
428
|
-
llm_api_key_ref: String,
|
|
429
|
-
token_retrieval_url: String
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
type authentication_method = :token | :certificate
|
|
433
|
-
|
|
434
|
-
module AuthenticationMethod
|
|
435
|
-
extend Telnyx::Internal::Type::Enum
|
|
436
|
-
|
|
437
|
-
TOKEN: :token
|
|
438
|
-
CERTIFICATE: :certificate
|
|
439
|
-
|
|
440
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::InferenceEmbedding::FallbackConfig::ExternalLlm::authentication_method]
|
|
441
|
-
end
|
|
442
|
-
end
|
|
443
|
-
end
|
|
444
|
-
|
|
445
268
|
type integration =
|
|
446
269
|
{ integration_id: String, allowed_list: ::Array[String] }
|
|
447
270
|
|
|
@@ -565,18 +388,6 @@ module Telnyx
|
|
|
565
388
|
|
|
566
389
|
def to_hash: -> { id: String, allowed_tools: ::Array[String] }
|
|
567
390
|
end
|
|
568
|
-
|
|
569
|
-
type post_conversation_settings = { enabled: bool }
|
|
570
|
-
|
|
571
|
-
class PostConversationSettings < Telnyx::Internal::Type::BaseModel
|
|
572
|
-
attr_reader enabled: bool?
|
|
573
|
-
|
|
574
|
-
def enabled=: (bool) -> bool
|
|
575
|
-
|
|
576
|
-
def initialize: (?enabled: bool) -> void
|
|
577
|
-
|
|
578
|
-
def to_hash: -> { enabled: bool }
|
|
579
|
-
end
|
|
580
391
|
end
|
|
581
392
|
end
|
|
582
393
|
end
|
|
@@ -4,6 +4,10 @@ module Telnyx
|
|
|
4
4
|
type observability =
|
|
5
5
|
{
|
|
6
6
|
host: String,
|
|
7
|
+
prompt_label: String,
|
|
8
|
+
prompt_name: String,
|
|
9
|
+
prompt_sync: Telnyx::Models::AI::Observability::prompt_sync,
|
|
10
|
+
prompt_version: Integer,
|
|
7
11
|
public_key_ref: String,
|
|
8
12
|
secret_key_ref: String,
|
|
9
13
|
status: Telnyx::Models::AI::Observability::status
|
|
@@ -14,6 +18,24 @@ module Telnyx
|
|
|
14
18
|
|
|
15
19
|
def host=: (String) -> String
|
|
16
20
|
|
|
21
|
+
attr_reader prompt_label: String?
|
|
22
|
+
|
|
23
|
+
def prompt_label=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader prompt_name: String?
|
|
26
|
+
|
|
27
|
+
def prompt_name=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader prompt_sync: Telnyx::Models::AI::Observability::prompt_sync?
|
|
30
|
+
|
|
31
|
+
def prompt_sync=: (
|
|
32
|
+
Telnyx::Models::AI::Observability::prompt_sync
|
|
33
|
+
) -> Telnyx::Models::AI::Observability::prompt_sync
|
|
34
|
+
|
|
35
|
+
attr_reader prompt_version: Integer?
|
|
36
|
+
|
|
37
|
+
def prompt_version=: (Integer) -> Integer
|
|
38
|
+
|
|
17
39
|
attr_reader public_key_ref: String?
|
|
18
40
|
|
|
19
41
|
def public_key_ref=: (String) -> String
|
|
@@ -30,6 +52,10 @@ module Telnyx
|
|
|
30
52
|
|
|
31
53
|
def initialize: (
|
|
32
54
|
?host: String,
|
|
55
|
+
?prompt_label: String,
|
|
56
|
+
?prompt_name: String,
|
|
57
|
+
?prompt_sync: Telnyx::Models::AI::Observability::prompt_sync,
|
|
58
|
+
?prompt_version: Integer,
|
|
33
59
|
?public_key_ref: String,
|
|
34
60
|
?secret_key_ref: String,
|
|
35
61
|
?status: Telnyx::Models::AI::Observability::status
|
|
@@ -37,11 +63,26 @@ module Telnyx
|
|
|
37
63
|
|
|
38
64
|
def to_hash: -> {
|
|
39
65
|
host: String,
|
|
66
|
+
prompt_label: String,
|
|
67
|
+
prompt_name: String,
|
|
68
|
+
prompt_sync: Telnyx::Models::AI::Observability::prompt_sync,
|
|
69
|
+
prompt_version: Integer,
|
|
40
70
|
public_key_ref: String,
|
|
41
71
|
secret_key_ref: String,
|
|
42
72
|
status: Telnyx::Models::AI::Observability::status
|
|
43
73
|
}
|
|
44
74
|
|
|
75
|
+
type prompt_sync = :enabled | :disabled
|
|
76
|
+
|
|
77
|
+
module PromptSync
|
|
78
|
+
extend Telnyx::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
ENABLED: :enabled
|
|
81
|
+
DISABLED: :disabled
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Observability::prompt_sync]
|
|
84
|
+
end
|
|
85
|
+
|
|
45
86
|
type status = :enabled | :disabled
|
|
46
87
|
|
|
47
88
|
module Status
|
|
@@ -4,6 +4,10 @@ module Telnyx
|
|
|
4
4
|
type observability_req =
|
|
5
5
|
{
|
|
6
6
|
host: String,
|
|
7
|
+
prompt_label: String,
|
|
8
|
+
prompt_name: String,
|
|
9
|
+
prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync,
|
|
10
|
+
prompt_version: Integer,
|
|
7
11
|
public_key_ref: String,
|
|
8
12
|
secret_key_ref: String,
|
|
9
13
|
status: Telnyx::Models::AI::ObservabilityReq::status
|
|
@@ -14,6 +18,24 @@ module Telnyx
|
|
|
14
18
|
|
|
15
19
|
def host=: (String) -> String
|
|
16
20
|
|
|
21
|
+
attr_reader prompt_label: String?
|
|
22
|
+
|
|
23
|
+
def prompt_label=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader prompt_name: String?
|
|
26
|
+
|
|
27
|
+
def prompt_name=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync?
|
|
30
|
+
|
|
31
|
+
def prompt_sync=: (
|
|
32
|
+
Telnyx::Models::AI::ObservabilityReq::prompt_sync
|
|
33
|
+
) -> Telnyx::Models::AI::ObservabilityReq::prompt_sync
|
|
34
|
+
|
|
35
|
+
attr_reader prompt_version: Integer?
|
|
36
|
+
|
|
37
|
+
def prompt_version=: (Integer) -> Integer
|
|
38
|
+
|
|
17
39
|
attr_reader public_key_ref: String?
|
|
18
40
|
|
|
19
41
|
def public_key_ref=: (String) -> String
|
|
@@ -30,6 +52,10 @@ module Telnyx
|
|
|
30
52
|
|
|
31
53
|
def initialize: (
|
|
32
54
|
?host: String,
|
|
55
|
+
?prompt_label: String,
|
|
56
|
+
?prompt_name: String,
|
|
57
|
+
?prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync,
|
|
58
|
+
?prompt_version: Integer,
|
|
33
59
|
?public_key_ref: String,
|
|
34
60
|
?secret_key_ref: String,
|
|
35
61
|
?status: Telnyx::Models::AI::ObservabilityReq::status
|
|
@@ -37,11 +63,26 @@ module Telnyx
|
|
|
37
63
|
|
|
38
64
|
def to_hash: -> {
|
|
39
65
|
host: String,
|
|
66
|
+
prompt_label: String,
|
|
67
|
+
prompt_name: String,
|
|
68
|
+
prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync,
|
|
69
|
+
prompt_version: Integer,
|
|
40
70
|
public_key_ref: String,
|
|
41
71
|
secret_key_ref: String,
|
|
42
72
|
status: Telnyx::Models::AI::ObservabilityReq::status
|
|
43
73
|
}
|
|
44
74
|
|
|
75
|
+
type prompt_sync = :enabled | :disabled
|
|
76
|
+
|
|
77
|
+
module PromptSync
|
|
78
|
+
extend Telnyx::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
ENABLED: :enabled
|
|
81
|
+
DISABLED: :disabled
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::ObservabilityReq::prompt_sync]
|
|
84
|
+
end
|
|
85
|
+
|
|
45
86
|
type status = :enabled | :disabled
|
|
46
87
|
|
|
47
88
|
module Status
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type post_conversation_settings = { enabled: bool }
|
|
5
|
+
|
|
6
|
+
class PostConversationSettings < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader enabled: bool?
|
|
8
|
+
|
|
9
|
+
def enabled=: (bool) -> bool
|
|
10
|
+
|
|
11
|
+
def initialize: (?enabled: bool) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { enabled: bool }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type post_conversation_settings_req = { enabled: bool }
|
|
5
|
+
|
|
6
|
+
class PostConversationSettingsReq < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader enabled: bool?
|
|
8
|
+
|
|
9
|
+
def enabled=: (bool) -> bool
|
|
10
|
+
|
|
11
|
+
def initialize: (?enabled: bool) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { enabled: bool }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -182,10 +182,25 @@ module Telnyx
|
|
|
182
182
|
| Telnyx::AzureVoiceSettings
|
|
183
183
|
| Telnyx::RimeVoiceSettings
|
|
184
184
|
| Telnyx::ResembleVoiceSettings
|
|
185
|
+
| Telnyx::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai
|
|
185
186
|
|
|
186
187
|
module VoiceSettings
|
|
187
188
|
extend Telnyx::Internal::Type::Union
|
|
188
189
|
|
|
190
|
+
type xai = { type: :xai, language: String }
|
|
191
|
+
|
|
192
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
193
|
+
attr_accessor type: :xai
|
|
194
|
+
|
|
195
|
+
attr_reader language: String?
|
|
196
|
+
|
|
197
|
+
def language=: (String) -> String
|
|
198
|
+
|
|
199
|
+
def initialize: (?language: String, ?type: :xai) -> void
|
|
200
|
+
|
|
201
|
+
def to_hash: -> { type: :xai, language: String }
|
|
202
|
+
end
|
|
203
|
+
|
|
189
204
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionGatherUsingAIParams::voice_settings]
|
|
190
205
|
end
|
|
191
206
|
end
|
|
@@ -237,6 +237,7 @@ module Telnyx
|
|
|
237
237
|
| Telnyx::RimeVoiceSettings
|
|
238
238
|
| Telnyx::ResembleVoiceSettings
|
|
239
239
|
| Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld
|
|
240
|
+
| Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai
|
|
240
241
|
|
|
241
242
|
module VoiceSettings
|
|
242
243
|
extend Telnyx::Internal::Type::Union
|
|
@@ -251,6 +252,20 @@ module Telnyx
|
|
|
251
252
|
def to_hash: -> { type: :inworld }
|
|
252
253
|
end
|
|
253
254
|
|
|
255
|
+
type xai = { type: :xai, language: String }
|
|
256
|
+
|
|
257
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
258
|
+
attr_accessor type: :xai
|
|
259
|
+
|
|
260
|
+
attr_reader language: String?
|
|
261
|
+
|
|
262
|
+
def language=: (String) -> String
|
|
263
|
+
|
|
264
|
+
def initialize: (?language: String, ?type: :xai) -> void
|
|
265
|
+
|
|
266
|
+
def to_hash: -> { type: :xai, language: String }
|
|
267
|
+
end
|
|
268
|
+
|
|
254
269
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionGatherUsingSpeakParams::voice_settings]
|
|
255
270
|
end
|
|
256
271
|
end
|