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
|
@@ -61,6 +61,8 @@ module Telnyx
|
|
|
61
61
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
62
62
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
63
63
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
64
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
65
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
64
66
|
#
|
|
65
67
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
66
68
|
# female).
|
|
@@ -149,7 +151,8 @@ module Telnyx
|
|
|
149
151
|
Telnyx::AzureVoiceSettings,
|
|
150
152
|
Telnyx::RimeVoiceSettings,
|
|
151
153
|
Telnyx::ResembleVoiceSettings,
|
|
152
|
-
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld
|
|
154
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld,
|
|
155
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai
|
|
153
156
|
)
|
|
154
157
|
)
|
|
155
158
|
)
|
|
@@ -167,7 +170,8 @@ module Telnyx
|
|
|
167
170
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
168
171
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
169
172
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
170
|
-
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash
|
|
173
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
174
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
171
175
|
)
|
|
172
176
|
).void
|
|
173
177
|
end
|
|
@@ -194,7 +198,8 @@ module Telnyx
|
|
|
194
198
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
195
199
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
196
200
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
197
|
-
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash
|
|
201
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
202
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
198
203
|
),
|
|
199
204
|
request_options: Telnyx::RequestOptions::OrHash
|
|
200
205
|
).returns(T.attached_class)
|
|
@@ -242,6 +247,8 @@ module Telnyx
|
|
|
242
247
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
243
248
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
244
249
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
250
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
251
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
245
252
|
#
|
|
246
253
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
247
254
|
# female).
|
|
@@ -290,7 +297,8 @@ module Telnyx
|
|
|
290
297
|
Telnyx::AzureVoiceSettings,
|
|
291
298
|
Telnyx::RimeVoiceSettings,
|
|
292
299
|
Telnyx::ResembleVoiceSettings,
|
|
293
|
-
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld
|
|
300
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld,
|
|
301
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai
|
|
294
302
|
),
|
|
295
303
|
request_options: Telnyx::RequestOptions
|
|
296
304
|
}
|
|
@@ -557,7 +565,8 @@ module Telnyx
|
|
|
557
565
|
Telnyx::AzureVoiceSettings,
|
|
558
566
|
Telnyx::RimeVoiceSettings,
|
|
559
567
|
Telnyx::ResembleVoiceSettings,
|
|
560
|
-
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld
|
|
568
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld,
|
|
569
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai
|
|
561
570
|
)
|
|
562
571
|
end
|
|
563
572
|
|
|
@@ -586,6 +595,42 @@ module Telnyx
|
|
|
586
595
|
end
|
|
587
596
|
end
|
|
588
597
|
|
|
598
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
599
|
+
OrHash =
|
|
600
|
+
T.type_alias do
|
|
601
|
+
T.any(
|
|
602
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai,
|
|
603
|
+
Telnyx::Internal::AnyHash
|
|
604
|
+
)
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
# Voice settings provider type
|
|
608
|
+
sig { returns(Symbol) }
|
|
609
|
+
attr_accessor :type
|
|
610
|
+
|
|
611
|
+
# Language code, or `auto` to detect automatically.
|
|
612
|
+
sig { returns(T.nilable(String)) }
|
|
613
|
+
attr_reader :language
|
|
614
|
+
|
|
615
|
+
sig { params(language: String).void }
|
|
616
|
+
attr_writer :language
|
|
617
|
+
|
|
618
|
+
sig do
|
|
619
|
+
params(language: String, type: Symbol).returns(T.attached_class)
|
|
620
|
+
end
|
|
621
|
+
def self.new(
|
|
622
|
+
# Language code, or `auto` to detect automatically.
|
|
623
|
+
language: nil,
|
|
624
|
+
# Voice settings provider type
|
|
625
|
+
type: :xai
|
|
626
|
+
)
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
sig { override.returns({ type: Symbol, language: String }) }
|
|
630
|
+
def to_hash
|
|
631
|
+
end
|
|
632
|
+
end
|
|
633
|
+
|
|
589
634
|
sig do
|
|
590
635
|
override.returns(
|
|
591
636
|
T::Array[
|
|
@@ -37,10 +37,8 @@ module Telnyx
|
|
|
37
37
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
38
38
|
dynamic_variables_webhook_url: String,
|
|
39
39
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
40
|
-
external_llm:
|
|
41
|
-
|
|
42
|
-
fallback_config:
|
|
43
|
-
Telnyx::AI::Assistants::UpdateAssistant::FallbackConfig::OrHash,
|
|
40
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
41
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
44
42
|
greeting: String,
|
|
45
43
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
46
44
|
instructions: String,
|
|
@@ -60,7 +58,7 @@ module Telnyx
|
|
|
60
58
|
name: String,
|
|
61
59
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
62
60
|
post_conversation_settings:
|
|
63
|
-
Telnyx::AI::
|
|
61
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
64
62
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
65
63
|
tags: T::Array[String],
|
|
66
64
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
@@ -39,10 +39,8 @@ module Telnyx
|
|
|
39
39
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
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
|
integrations:
|
|
@@ -56,7 +54,7 @@ module Telnyx
|
|
|
56
54
|
model: String,
|
|
57
55
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
58
56
|
post_conversation_settings:
|
|
59
|
-
Telnyx::AI::
|
|
57
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
60
58
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
61
59
|
tags: T::Array[String],
|
|
62
60
|
telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
|
|
@@ -202,10 +200,8 @@ module Telnyx
|
|
|
202
200
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
203
201
|
dynamic_variables_webhook_url: String,
|
|
204
202
|
enabled_features: T::Array[Telnyx::AI::EnabledFeatures::OrSymbol],
|
|
205
|
-
external_llm:
|
|
206
|
-
|
|
207
|
-
fallback_config:
|
|
208
|
-
Telnyx::AI::AssistantUpdateParams::FallbackConfig::OrHash,
|
|
203
|
+
external_llm: Telnyx::AI::ExternalLlmReq::OrHash,
|
|
204
|
+
fallback_config: Telnyx::AI::FallbackConfigReq::OrHash,
|
|
209
205
|
greeting: String,
|
|
210
206
|
insight_settings: Telnyx::AI::InsightSettings::OrHash,
|
|
211
207
|
instructions: String,
|
|
@@ -221,7 +217,7 @@ module Telnyx
|
|
|
221
217
|
name: String,
|
|
222
218
|
observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
|
|
223
219
|
post_conversation_settings:
|
|
224
|
-
Telnyx::AI::
|
|
220
|
+
Telnyx::AI::PostConversationSettingsReq::OrHash,
|
|
225
221
|
privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
|
|
226
222
|
promote_to_main: T::Boolean,
|
|
227
223
|
tags: T::Array[String],
|
|
@@ -450,7 +450,8 @@ module Telnyx
|
|
|
450
450
|
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
451
451
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
452
452
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
453
|
-
Telnyx::ResembleVoiceSettings::OrHash
|
|
453
|
+
Telnyx::ResembleVoiceSettings::OrHash,
|
|
454
|
+
Telnyx::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai::OrHash
|
|
454
455
|
),
|
|
455
456
|
request_options: Telnyx::RequestOptions::OrHash
|
|
456
457
|
).returns(Telnyx::Models::Calls::ActionGatherUsingAIResponse)
|
|
@@ -526,6 +527,8 @@ module Telnyx
|
|
|
526
527
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
527
528
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
528
529
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
530
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
531
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
529
532
|
voice: nil,
|
|
530
533
|
# The settings associated with the voice selected
|
|
531
534
|
voice_settings: nil,
|
|
@@ -658,7 +661,8 @@ module Telnyx
|
|
|
658
661
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
659
662
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
660
663
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
661
|
-
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::OrHash
|
|
664
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
665
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai::OrHash
|
|
662
666
|
),
|
|
663
667
|
request_options: Telnyx::RequestOptions::OrHash
|
|
664
668
|
).returns(Telnyx::Models::Calls::ActionGatherUsingSpeakResponse)
|
|
@@ -707,6 +711,8 @@ module Telnyx
|
|
|
707
711
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
708
712
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
709
713
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
714
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
715
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
710
716
|
#
|
|
711
717
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
712
718
|
# female).
|
|
@@ -1068,7 +1074,8 @@ module Telnyx
|
|
|
1068
1074
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
1069
1075
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
1070
1076
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
1071
|
-
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::OrHash
|
|
1077
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
1078
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
1072
1079
|
),
|
|
1073
1080
|
request_options: Telnyx::RequestOptions::OrHash
|
|
1074
1081
|
).returns(Telnyx::Models::Calls::ActionSpeakResponse)
|
|
@@ -1117,6 +1124,8 @@ module Telnyx
|
|
|
1117
1124
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
1118
1125
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1119
1126
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
1127
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1128
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
1120
1129
|
#
|
|
1121
1130
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
1122
1131
|
# female).
|
|
@@ -1190,7 +1199,8 @@ module Telnyx
|
|
|
1190
1199
|
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
1191
1200
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
1192
1201
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
1193
|
-
Telnyx::ResembleVoiceSettings::OrHash
|
|
1202
|
+
Telnyx::ResembleVoiceSettings::OrHash,
|
|
1203
|
+
Telnyx::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai::OrHash
|
|
1194
1204
|
),
|
|
1195
1205
|
request_options: Telnyx::RequestOptions::OrHash
|
|
1196
1206
|
).returns(Telnyx::Models::Calls::ActionStartAIAssistantResponse)
|
|
@@ -1251,6 +1261,8 @@ module Telnyx
|
|
|
1251
1261
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
1252
1262
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
1253
1263
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
1264
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
1265
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
1254
1266
|
voice: nil,
|
|
1255
1267
|
# The settings associated with the voice selected
|
|
1256
1268
|
voice_settings: nil,
|
|
@@ -534,7 +534,8 @@ module Telnyx
|
|
|
534
534
|
Telnyx::AzureVoiceSettings::OrHash,
|
|
535
535
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
536
536
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
537
|
-
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash
|
|
537
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
538
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
538
539
|
),
|
|
539
540
|
request_options: Telnyx::RequestOptions::OrHash
|
|
540
541
|
).returns(Telnyx::Models::Conferences::ActionSpeakResponse)
|
|
@@ -583,6 +584,8 @@ module Telnyx
|
|
|
583
584
|
# `voice_settings` to configure precision, sample_rate, and format.
|
|
584
585
|
# - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
585
586
|
# `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
|
|
587
|
+
# - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
588
|
+
# `ara`, `rex`, `sal`, `leo`.
|
|
586
589
|
#
|
|
587
590
|
# For service_level basic, you may define the gender of the speaker (male or
|
|
588
591
|
# female).
|
|
@@ -10,8 +10,8 @@ module Telnyx
|
|
|
10
10
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
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
|
integrations: ::Array[Telnyx::AI::AssistantCreateParams::Integration],
|
|
@@ -21,7 +21,7 @@ module Telnyx
|
|
|
21
21
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
22
22
|
model: String,
|
|
23
23
|
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
24
|
-
post_conversation_settings: Telnyx::AI::
|
|
24
|
+
post_conversation_settings: Telnyx::AI::PostConversationSettingsReq,
|
|
25
25
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
26
26
|
tags: ::Array[String],
|
|
27
27
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
@@ -63,17 +63,17 @@ module Telnyx
|
|
|
63
63
|
::Array[Telnyx::Models::AI::enabled_features]
|
|
64
64
|
) -> ::Array[Telnyx::Models::AI::enabled_features]
|
|
65
65
|
|
|
66
|
-
attr_reader external_llm: Telnyx::AI::
|
|
66
|
+
attr_reader external_llm: Telnyx::AI::ExternalLlmReq?
|
|
67
67
|
|
|
68
68
|
def external_llm=: (
|
|
69
|
-
Telnyx::AI::
|
|
70
|
-
) -> Telnyx::AI::
|
|
69
|
+
Telnyx::AI::ExternalLlmReq
|
|
70
|
+
) -> Telnyx::AI::ExternalLlmReq
|
|
71
71
|
|
|
72
|
-
attr_reader fallback_config: Telnyx::AI::
|
|
72
|
+
attr_reader fallback_config: Telnyx::AI::FallbackConfigReq?
|
|
73
73
|
|
|
74
74
|
def fallback_config=: (
|
|
75
|
-
Telnyx::AI::
|
|
76
|
-
) -> Telnyx::AI::
|
|
75
|
+
Telnyx::AI::FallbackConfigReq
|
|
76
|
+
) -> Telnyx::AI::FallbackConfigReq
|
|
77
77
|
|
|
78
78
|
attr_reader greeting: String?
|
|
79
79
|
|
|
@@ -123,11 +123,11 @@ module Telnyx
|
|
|
123
123
|
Telnyx::AI::ObservabilityReq
|
|
124
124
|
) -> Telnyx::AI::ObservabilityReq
|
|
125
125
|
|
|
126
|
-
attr_reader post_conversation_settings: Telnyx::AI::
|
|
126
|
+
attr_reader post_conversation_settings: Telnyx::AI::PostConversationSettingsReq?
|
|
127
127
|
|
|
128
128
|
def post_conversation_settings=: (
|
|
129
|
-
Telnyx::AI::
|
|
130
|
-
) -> Telnyx::AI::
|
|
129
|
+
Telnyx::AI::PostConversationSettingsReq
|
|
130
|
+
) -> Telnyx::AI::PostConversationSettingsReq
|
|
131
131
|
|
|
132
132
|
attr_reader privacy_settings: Telnyx::AI::PrivacySettings?
|
|
133
133
|
|
|
@@ -181,8 +181,8 @@ module Telnyx
|
|
|
181
181
|
?dynamic_variables_webhook_timeout_ms: Integer,
|
|
182
182
|
?dynamic_variables_webhook_url: String,
|
|
183
183
|
?enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
184
|
-
?external_llm: Telnyx::AI::
|
|
185
|
-
?fallback_config: Telnyx::AI::
|
|
184
|
+
?external_llm: Telnyx::AI::ExternalLlmReq,
|
|
185
|
+
?fallback_config: Telnyx::AI::FallbackConfigReq,
|
|
186
186
|
?greeting: String,
|
|
187
187
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
188
188
|
?integrations: ::Array[Telnyx::AI::AssistantCreateParams::Integration],
|
|
@@ -192,7 +192,7 @@ module Telnyx
|
|
|
192
192
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
193
193
|
?model: String,
|
|
194
194
|
?observability_settings: Telnyx::AI::ObservabilityReq,
|
|
195
|
-
?post_conversation_settings: Telnyx::AI::
|
|
195
|
+
?post_conversation_settings: Telnyx::AI::PostConversationSettingsReq,
|
|
196
196
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
197
197
|
?tags: ::Array[String],
|
|
198
198
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
@@ -212,8 +212,8 @@ module Telnyx
|
|
|
212
212
|
dynamic_variables_webhook_timeout_ms: Integer,
|
|
213
213
|
dynamic_variables_webhook_url: String,
|
|
214
214
|
enabled_features: ::Array[Telnyx::Models::AI::enabled_features],
|
|
215
|
-
external_llm: Telnyx::AI::
|
|
216
|
-
fallback_config: Telnyx::AI::
|
|
215
|
+
external_llm: Telnyx::AI::ExternalLlmReq,
|
|
216
|
+
fallback_config: Telnyx::AI::FallbackConfigReq,
|
|
217
217
|
greeting: String,
|
|
218
218
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
219
219
|
integrations: ::Array[Telnyx::AI::AssistantCreateParams::Integration],
|
|
@@ -223,7 +223,7 @@ module Telnyx
|
|
|
223
223
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
224
224
|
model: String,
|
|
225
225
|
observability_settings: Telnyx::AI::ObservabilityReq,
|
|
226
|
-
post_conversation_settings: Telnyx::AI::
|
|
226
|
+
post_conversation_settings: Telnyx::AI::PostConversationSettingsReq,
|
|
227
227
|
privacy_settings: Telnyx::AI::PrivacySettings,
|
|
228
228
|
tags: ::Array[String],
|
|
229
229
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
@@ -235,181 +235,6 @@ module Telnyx
|
|
|
235
235
|
request_options: Telnyx::RequestOptions
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
type external_llm =
|
|
239
|
-
{
|
|
240
|
-
base_url: String,
|
|
241
|
-
model: String,
|
|
242
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method,
|
|
243
|
-
certificate_ref: String,
|
|
244
|
-
forward_metadata: bool,
|
|
245
|
-
llm_api_key_ref: String,
|
|
246
|
-
token_retrieval_url: String
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
class ExternalLlm < Telnyx::Internal::Type::BaseModel
|
|
250
|
-
attr_accessor base_url: String
|
|
251
|
-
|
|
252
|
-
attr_accessor model: String
|
|
253
|
-
|
|
254
|
-
attr_reader authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method?
|
|
255
|
-
|
|
256
|
-
def authentication_method=: (
|
|
257
|
-
Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method
|
|
258
|
-
) -> Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method
|
|
259
|
-
|
|
260
|
-
attr_reader certificate_ref: String?
|
|
261
|
-
|
|
262
|
-
def certificate_ref=: (String) -> String
|
|
263
|
-
|
|
264
|
-
attr_reader forward_metadata: bool?
|
|
265
|
-
|
|
266
|
-
def forward_metadata=: (bool) -> bool
|
|
267
|
-
|
|
268
|
-
attr_reader llm_api_key_ref: String?
|
|
269
|
-
|
|
270
|
-
def llm_api_key_ref=: (String) -> String
|
|
271
|
-
|
|
272
|
-
attr_reader token_retrieval_url: String?
|
|
273
|
-
|
|
274
|
-
def token_retrieval_url=: (String) -> String
|
|
275
|
-
|
|
276
|
-
def initialize: (
|
|
277
|
-
base_url: String,
|
|
278
|
-
model: String,
|
|
279
|
-
?authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method,
|
|
280
|
-
?certificate_ref: String,
|
|
281
|
-
?forward_metadata: bool,
|
|
282
|
-
?llm_api_key_ref: String,
|
|
283
|
-
?token_retrieval_url: String
|
|
284
|
-
) -> void
|
|
285
|
-
|
|
286
|
-
def to_hash: -> {
|
|
287
|
-
base_url: String,
|
|
288
|
-
model: String,
|
|
289
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method,
|
|
290
|
-
certificate_ref: String,
|
|
291
|
-
forward_metadata: bool,
|
|
292
|
-
llm_api_key_ref: String,
|
|
293
|
-
token_retrieval_url: String
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
type authentication_method = :token | :certificate
|
|
297
|
-
|
|
298
|
-
module AuthenticationMethod
|
|
299
|
-
extend Telnyx::Internal::Type::Enum
|
|
300
|
-
|
|
301
|
-
TOKEN: :token
|
|
302
|
-
CERTIFICATE: :certificate
|
|
303
|
-
|
|
304
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::ExternalLlm::authentication_method]
|
|
305
|
-
end
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
type fallback_config =
|
|
309
|
-
{
|
|
310
|
-
external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm,
|
|
311
|
-
llm_api_key_ref: String,
|
|
312
|
-
model: String
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
class FallbackConfig < Telnyx::Internal::Type::BaseModel
|
|
316
|
-
attr_reader external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm?
|
|
317
|
-
|
|
318
|
-
def external_llm=: (
|
|
319
|
-
Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm
|
|
320
|
-
) -> Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm
|
|
321
|
-
|
|
322
|
-
attr_reader llm_api_key_ref: String?
|
|
323
|
-
|
|
324
|
-
def llm_api_key_ref=: (String) -> String
|
|
325
|
-
|
|
326
|
-
attr_reader model: String?
|
|
327
|
-
|
|
328
|
-
def model=: (String) -> String
|
|
329
|
-
|
|
330
|
-
def initialize: (
|
|
331
|
-
?external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm,
|
|
332
|
-
?llm_api_key_ref: String,
|
|
333
|
-
?model: String
|
|
334
|
-
) -> void
|
|
335
|
-
|
|
336
|
-
def to_hash: -> {
|
|
337
|
-
external_llm: Telnyx::AI::AssistantCreateParams::FallbackConfig::ExternalLlm,
|
|
338
|
-
llm_api_key_ref: String,
|
|
339
|
-
model: String
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
type external_llm =
|
|
343
|
-
{
|
|
344
|
-
base_url: String,
|
|
345
|
-
model: String,
|
|
346
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method,
|
|
347
|
-
certificate_ref: String,
|
|
348
|
-
forward_metadata: bool,
|
|
349
|
-
llm_api_key_ref: String,
|
|
350
|
-
token_retrieval_url: String
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
class ExternalLlm < Telnyx::Internal::Type::BaseModel
|
|
354
|
-
attr_accessor base_url: String
|
|
355
|
-
|
|
356
|
-
attr_accessor model: String
|
|
357
|
-
|
|
358
|
-
attr_reader authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method?
|
|
359
|
-
|
|
360
|
-
def authentication_method=: (
|
|
361
|
-
Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method
|
|
362
|
-
) -> Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method
|
|
363
|
-
|
|
364
|
-
attr_reader certificate_ref: String?
|
|
365
|
-
|
|
366
|
-
def certificate_ref=: (String) -> String
|
|
367
|
-
|
|
368
|
-
attr_reader forward_metadata: bool?
|
|
369
|
-
|
|
370
|
-
def forward_metadata=: (bool) -> bool
|
|
371
|
-
|
|
372
|
-
attr_reader llm_api_key_ref: String?
|
|
373
|
-
|
|
374
|
-
def llm_api_key_ref=: (String) -> String
|
|
375
|
-
|
|
376
|
-
attr_reader token_retrieval_url: String?
|
|
377
|
-
|
|
378
|
-
def token_retrieval_url=: (String) -> String
|
|
379
|
-
|
|
380
|
-
def initialize: (
|
|
381
|
-
base_url: String,
|
|
382
|
-
model: String,
|
|
383
|
-
?authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method,
|
|
384
|
-
?certificate_ref: String,
|
|
385
|
-
?forward_metadata: bool,
|
|
386
|
-
?llm_api_key_ref: String,
|
|
387
|
-
?token_retrieval_url: String
|
|
388
|
-
) -> void
|
|
389
|
-
|
|
390
|
-
def to_hash: -> {
|
|
391
|
-
base_url: String,
|
|
392
|
-
model: String,
|
|
393
|
-
authentication_method: Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method,
|
|
394
|
-
certificate_ref: String,
|
|
395
|
-
forward_metadata: bool,
|
|
396
|
-
llm_api_key_ref: String,
|
|
397
|
-
token_retrieval_url: String
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
type authentication_method = :token | :certificate
|
|
401
|
-
|
|
402
|
-
module AuthenticationMethod
|
|
403
|
-
extend Telnyx::Internal::Type::Enum
|
|
404
|
-
|
|
405
|
-
TOKEN: :token
|
|
406
|
-
CERTIFICATE: :certificate
|
|
407
|
-
|
|
408
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantCreateParams::FallbackConfig::ExternalLlm::authentication_method]
|
|
409
|
-
end
|
|
410
|
-
end
|
|
411
|
-
end
|
|
412
|
-
|
|
413
238
|
type integration =
|
|
414
239
|
{ integration_id: String, allowed_list: ::Array[String] }
|
|
415
240
|
|
|
@@ -533,18 +358,6 @@ module Telnyx
|
|
|
533
358
|
|
|
534
359
|
def to_hash: -> { id: String, allowed_tools: ::Array[String] }
|
|
535
360
|
end
|
|
536
|
-
|
|
537
|
-
type post_conversation_settings = { enabled: bool }
|
|
538
|
-
|
|
539
|
-
class PostConversationSettings < Telnyx::Internal::Type::BaseModel
|
|
540
|
-
attr_reader enabled: bool?
|
|
541
|
-
|
|
542
|
-
def enabled=: (bool) -> bool
|
|
543
|
-
|
|
544
|
-
def initialize: (?enabled: bool) -> void
|
|
545
|
-
|
|
546
|
-
def to_hash: -> { enabled: bool }
|
|
547
|
-
end
|
|
548
361
|
end
|
|
549
362
|
end
|
|
550
363
|
end
|