retell-sdk 6.2.6 → 6.2.8
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.
- package/CHANGELOG.md +20 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +141 -18
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +141 -18
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +61 -12
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +61 -12
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +185 -37
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +185 -37
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +2 -1
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +2 -1
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +130 -18
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +130 -18
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +492 -42
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +492 -42
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +1005 -87
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +1005 -87
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/llm.d.mts +234 -3
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +234 -3
- package/resources/llm.d.ts.map +1 -1
- package/resources/tests.d.mts +3 -3
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +3 -3
- package/resources/tests.d.ts.map +1 -1
- package/src/resources/agent.ts +172 -15
- package/src/resources/batch-call.ts +75 -10
- package/src/resources/call.ts +227 -31
- package/src/resources/chat-agent.ts +159 -15
- package/src/resources/conversation-flow-component.ts +627 -42
- package/src/resources/conversation-flow.ts +1290 -87
- package/src/resources/llm.ts +291 -0
- package/src/resources/tests.ts +6 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/agent.ts
CHANGED
|
@@ -495,6 +495,11 @@ export interface AgentResponse {
|
|
|
495
495
|
*/
|
|
496
496
|
is_published?: boolean;
|
|
497
497
|
|
|
498
|
+
/**
|
|
499
|
+
* Whether the agent is a transfer agent used for agentic warm transfer.
|
|
500
|
+
*/
|
|
501
|
+
is_transfer_agent?: boolean;
|
|
502
|
+
|
|
498
503
|
/**
|
|
499
504
|
* If this option is set, the call will try to detect IVR in the first 3 minutes of
|
|
500
505
|
* the call. Actions defined will be applied when the IVR is detected. Set this to
|
|
@@ -505,10 +510,7 @@ export interface AgentResponse {
|
|
|
505
510
|
/**
|
|
506
511
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
507
512
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
508
|
-
* `["en-US","es-ES"]`).
|
|
509
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
510
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
511
|
-
* unset, defaults to `en-US`.
|
|
513
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
512
514
|
*/
|
|
513
515
|
language?:
|
|
514
516
|
| 'en-US'
|
|
@@ -574,7 +576,6 @@ export interface AgentResponse {
|
|
|
574
576
|
| 'ur-IN'
|
|
575
577
|
| 'yue-CN'
|
|
576
578
|
| 'uk-UA'
|
|
577
|
-
| 'multi'
|
|
578
579
|
| Array<
|
|
579
580
|
| 'en-US'
|
|
580
581
|
| 'en-IN'
|
|
@@ -708,6 +709,7 @@ export interface AgentResponse {
|
|
|
708
709
|
| 'gemini-3.6-flash'
|
|
709
710
|
| 'gemini-3.7-flash'
|
|
710
711
|
| 'gemini-3.8-flash'
|
|
712
|
+
| 'gemini-4-argon'
|
|
711
713
|
| null;
|
|
712
714
|
|
|
713
715
|
/**
|
|
@@ -1875,6 +1877,23 @@ export namespace AgentResponse {
|
|
|
1875
1877
|
*/
|
|
1876
1878
|
execution_message_type?: 'prompt' | 'static_text';
|
|
1877
1879
|
|
|
1880
|
+
/**
|
|
1881
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
1882
|
+
* customer number on the call.
|
|
1883
|
+
*/
|
|
1884
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
1888
|
+
* agent's phone number.
|
|
1889
|
+
*/
|
|
1890
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
1894
|
+
*/
|
|
1895
|
+
speak_after_execution?: boolean;
|
|
1896
|
+
|
|
1878
1897
|
/**
|
|
1879
1898
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
1880
1899
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -1951,6 +1970,33 @@ export namespace AgentResponse {
|
|
|
1951
1970
|
right?: string;
|
|
1952
1971
|
}
|
|
1953
1972
|
}
|
|
1973
|
+
|
|
1974
|
+
export interface DestinationCustomerNumber {
|
|
1975
|
+
type: 'customer_number';
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
export interface DestinationPhoneNumber {
|
|
1979
|
+
/**
|
|
1980
|
+
* Destination phone number in E.164 format.
|
|
1981
|
+
*/
|
|
1982
|
+
phone_number: string;
|
|
1983
|
+
|
|
1984
|
+
type: 'phone_number';
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
1988
|
+
* transfer_call ignore_e164_validation).
|
|
1989
|
+
*/
|
|
1990
|
+
ignore_e164_validation?: boolean;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
export interface SenderCurrentNumber {
|
|
1994
|
+
type: 'current_number';
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
export interface SenderRetellLongCode {
|
|
1998
|
+
type: 'retell_long_code';
|
|
1999
|
+
}
|
|
1954
2000
|
}
|
|
1955
2001
|
|
|
1956
2002
|
export interface AppTool {
|
|
@@ -2466,6 +2512,11 @@ export namespace AgentListResponse {
|
|
|
2466
2512
|
* update or creation if no updates available.
|
|
2467
2513
|
*/
|
|
2468
2514
|
user_modified_timestamp: number;
|
|
2515
|
+
|
|
2516
|
+
/**
|
|
2517
|
+
* Whether the agent is a transfer agent used for agentic warm transfer.
|
|
2518
|
+
*/
|
|
2519
|
+
is_transfer_agent?: boolean;
|
|
2469
2520
|
}
|
|
2470
2521
|
|
|
2471
2522
|
export namespace Item {
|
|
@@ -2786,6 +2837,14 @@ export interface AgentCreateParams {
|
|
|
2786
2837
|
*/
|
|
2787
2838
|
interruption_sensitivity?: number;
|
|
2788
2839
|
|
|
2840
|
+
/**
|
|
2841
|
+
* Whether to create the agent as a transfer agent for agentic warm transfer. You
|
|
2842
|
+
* can only set this field when creating the agent. The response engine must also
|
|
2843
|
+
* be configured for transfer use with is_transfer_llm or is_transfer_cf. Custom
|
|
2844
|
+
* LLM agents cannot be transfer agents.
|
|
2845
|
+
*/
|
|
2846
|
+
is_transfer_agent?: boolean;
|
|
2847
|
+
|
|
2789
2848
|
/**
|
|
2790
2849
|
* If this option is set, the call will try to detect IVR in the first 3 minutes of
|
|
2791
2850
|
* the call. Actions defined will be applied when the IVR is detected. Set this to
|
|
@@ -2796,10 +2855,7 @@ export interface AgentCreateParams {
|
|
|
2796
2855
|
/**
|
|
2797
2856
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
2798
2857
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
2799
|
-
* `["en-US","es-ES"]`).
|
|
2800
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
2801
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
2802
|
-
* unset, defaults to `en-US`.
|
|
2858
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
2803
2859
|
*/
|
|
2804
2860
|
language?:
|
|
2805
2861
|
| 'en-US'
|
|
@@ -2865,7 +2921,6 @@ export interface AgentCreateParams {
|
|
|
2865
2921
|
| 'ur-IN'
|
|
2866
2922
|
| 'yue-CN'
|
|
2867
2923
|
| 'uk-UA'
|
|
2868
|
-
| 'multi'
|
|
2869
2924
|
| Array<
|
|
2870
2925
|
| 'en-US'
|
|
2871
2926
|
| 'en-IN'
|
|
@@ -2999,6 +3054,7 @@ export interface AgentCreateParams {
|
|
|
2999
3054
|
| 'gemini-3.6-flash'
|
|
3000
3055
|
| 'gemini-3.7-flash'
|
|
3001
3056
|
| 'gemini-3.8-flash'
|
|
3057
|
+
| 'gemini-4-argon'
|
|
3002
3058
|
| null;
|
|
3003
3059
|
|
|
3004
3060
|
/**
|
|
@@ -4171,6 +4227,23 @@ export namespace AgentCreateParams {
|
|
|
4171
4227
|
*/
|
|
4172
4228
|
execution_message_type?: 'prompt' | 'static_text';
|
|
4173
4229
|
|
|
4230
|
+
/**
|
|
4231
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
4232
|
+
* customer number on the call.
|
|
4233
|
+
*/
|
|
4234
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
4235
|
+
|
|
4236
|
+
/**
|
|
4237
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
4238
|
+
* agent's phone number.
|
|
4239
|
+
*/
|
|
4240
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
4241
|
+
|
|
4242
|
+
/**
|
|
4243
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
4244
|
+
*/
|
|
4245
|
+
speak_after_execution?: boolean;
|
|
4246
|
+
|
|
4174
4247
|
/**
|
|
4175
4248
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
4176
4249
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -4247,6 +4320,33 @@ export namespace AgentCreateParams {
|
|
|
4247
4320
|
right?: string;
|
|
4248
4321
|
}
|
|
4249
4322
|
}
|
|
4323
|
+
|
|
4324
|
+
export interface DestinationCustomerNumber {
|
|
4325
|
+
type: 'customer_number';
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
export interface DestinationPhoneNumber {
|
|
4329
|
+
/**
|
|
4330
|
+
* Destination phone number in E.164 format.
|
|
4331
|
+
*/
|
|
4332
|
+
phone_number: string;
|
|
4333
|
+
|
|
4334
|
+
type: 'phone_number';
|
|
4335
|
+
|
|
4336
|
+
/**
|
|
4337
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
4338
|
+
* transfer_call ignore_e164_validation).
|
|
4339
|
+
*/
|
|
4340
|
+
ignore_e164_validation?: boolean;
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4343
|
+
export interface SenderCurrentNumber {
|
|
4344
|
+
type: 'current_number';
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
export interface SenderRetellLongCode {
|
|
4348
|
+
type: 'retell_long_code';
|
|
4349
|
+
}
|
|
4250
4350
|
}
|
|
4251
4351
|
|
|
4252
4352
|
export interface AppTool {
|
|
@@ -4993,10 +5093,7 @@ export interface AgentUpdateParams {
|
|
|
4993
5093
|
/**
|
|
4994
5094
|
* Body param: Specifies what language(s) the agent will operate in. Accepts either
|
|
4995
5095
|
* a single locale (e.g. `en-US`) or an array of locales for multilingual agents
|
|
4996
|
-
* (e.g. `["en-US","es-ES"]`).
|
|
4997
|
-
* accepted as a scalar, and is stored and returned as the ten locales it used to
|
|
4998
|
-
* mean. It must not appear inside the array form. Send an explicit locale array
|
|
4999
|
-
* instead. If unset, defaults to `en-US`.
|
|
5096
|
+
* (e.g. `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
5000
5097
|
*/
|
|
5001
5098
|
language?:
|
|
5002
5099
|
| 'en-US'
|
|
@@ -5062,7 +5159,6 @@ export interface AgentUpdateParams {
|
|
|
5062
5159
|
| 'ur-IN'
|
|
5063
5160
|
| 'yue-CN'
|
|
5064
5161
|
| 'uk-UA'
|
|
5065
|
-
| 'multi'
|
|
5066
5162
|
| Array<
|
|
5067
5163
|
| 'en-US'
|
|
5068
5164
|
| 'en-IN'
|
|
@@ -5196,6 +5292,7 @@ export interface AgentUpdateParams {
|
|
|
5196
5292
|
| 'gemini-3.6-flash'
|
|
5197
5293
|
| 'gemini-3.7-flash'
|
|
5198
5294
|
| 'gemini-3.8-flash'
|
|
5295
|
+
| 'gemini-4-argon'
|
|
5199
5296
|
| null;
|
|
5200
5297
|
|
|
5201
5298
|
/**
|
|
@@ -6344,6 +6441,23 @@ export namespace AgentUpdateParams {
|
|
|
6344
6441
|
*/
|
|
6345
6442
|
execution_message_type?: 'prompt' | 'static_text';
|
|
6346
6443
|
|
|
6444
|
+
/**
|
|
6445
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
6446
|
+
* customer number on the call.
|
|
6447
|
+
*/
|
|
6448
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
6449
|
+
|
|
6450
|
+
/**
|
|
6451
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
6452
|
+
* agent's phone number.
|
|
6453
|
+
*/
|
|
6454
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
6455
|
+
|
|
6456
|
+
/**
|
|
6457
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
6458
|
+
*/
|
|
6459
|
+
speak_after_execution?: boolean;
|
|
6460
|
+
|
|
6347
6461
|
/**
|
|
6348
6462
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
6349
6463
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -6420,6 +6534,33 @@ export namespace AgentUpdateParams {
|
|
|
6420
6534
|
right?: string;
|
|
6421
6535
|
}
|
|
6422
6536
|
}
|
|
6537
|
+
|
|
6538
|
+
export interface DestinationCustomerNumber {
|
|
6539
|
+
type: 'customer_number';
|
|
6540
|
+
}
|
|
6541
|
+
|
|
6542
|
+
export interface DestinationPhoneNumber {
|
|
6543
|
+
/**
|
|
6544
|
+
* Destination phone number in E.164 format.
|
|
6545
|
+
*/
|
|
6546
|
+
phone_number: string;
|
|
6547
|
+
|
|
6548
|
+
type: 'phone_number';
|
|
6549
|
+
|
|
6550
|
+
/**
|
|
6551
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
6552
|
+
* transfer_call ignore_e164_validation).
|
|
6553
|
+
*/
|
|
6554
|
+
ignore_e164_validation?: boolean;
|
|
6555
|
+
}
|
|
6556
|
+
|
|
6557
|
+
export interface SenderCurrentNumber {
|
|
6558
|
+
type: 'current_number';
|
|
6559
|
+
}
|
|
6560
|
+
|
|
6561
|
+
export interface SenderRetellLongCode {
|
|
6562
|
+
type: 'retell_long_code';
|
|
6563
|
+
}
|
|
6423
6564
|
}
|
|
6424
6565
|
|
|
6425
6566
|
export interface AppTool {
|
|
@@ -6973,6 +7114,11 @@ export namespace AgentListParams {
|
|
|
6973
7114
|
export interface FilterCriteria {
|
|
6974
7115
|
channel?: FilterCriteria.Channel;
|
|
6975
7116
|
|
|
7117
|
+
/**
|
|
7118
|
+
* Filter by whether the agent is a transfer agent.
|
|
7119
|
+
*/
|
|
7120
|
+
is_transfer_agent?: FilterCriteria.IsTransferAgent;
|
|
7121
|
+
|
|
6976
7122
|
/**
|
|
6977
7123
|
* Case-insensitive substring search over agent name, plus substring search over
|
|
6978
7124
|
* agent id.
|
|
@@ -6991,6 +7137,17 @@ export namespace AgentListParams {
|
|
|
6991
7137
|
|
|
6992
7138
|
value: 'voice' | 'chat';
|
|
6993
7139
|
}
|
|
7140
|
+
|
|
7141
|
+
/**
|
|
7142
|
+
* Filter by whether the agent is a transfer agent.
|
|
7143
|
+
*/
|
|
7144
|
+
export interface IsTransferAgent {
|
|
7145
|
+
op: 'eq';
|
|
7146
|
+
|
|
7147
|
+
type: 'boolean';
|
|
7148
|
+
|
|
7149
|
+
value: boolean;
|
|
7150
|
+
}
|
|
6994
7151
|
}
|
|
6995
7152
|
}
|
|
6996
7153
|
|
|
@@ -199,7 +199,9 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
199
199
|
export interface AgentOverride {
|
|
200
200
|
/**
|
|
201
201
|
* Override agent configuration settings. Any properties specified here will
|
|
202
|
-
* override the base agent configuration for this call.
|
|
202
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
203
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
204
|
+
* latest version.
|
|
203
205
|
*/
|
|
204
206
|
agent?: AgentOverride.Agent;
|
|
205
207
|
|
|
@@ -214,7 +216,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
214
216
|
/**
|
|
215
217
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
216
218
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
217
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
219
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
218
220
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
219
221
|
* begin_message.
|
|
220
222
|
*/
|
|
@@ -224,7 +226,9 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
224
226
|
export namespace AgentOverride {
|
|
225
227
|
/**
|
|
226
228
|
* Override agent configuration settings. Any properties specified here will
|
|
227
|
-
* override the base agent configuration for this call.
|
|
229
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
230
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
231
|
+
* latest version.
|
|
228
232
|
*/
|
|
229
233
|
export interface Agent {
|
|
230
234
|
/**
|
|
@@ -477,10 +481,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
477
481
|
/**
|
|
478
482
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
479
483
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
480
|
-
* `["en-US","es-ES"]`).
|
|
481
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
482
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
483
|
-
* unset, defaults to `en-US`.
|
|
484
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
484
485
|
*/
|
|
485
486
|
language?:
|
|
486
487
|
| 'en-US'
|
|
@@ -546,7 +547,6 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
546
547
|
| 'ur-IN'
|
|
547
548
|
| 'yue-CN'
|
|
548
549
|
| 'uk-UA'
|
|
549
|
-
| 'multi'
|
|
550
550
|
| Array<
|
|
551
551
|
| 'en-US'
|
|
552
552
|
| 'en-IN'
|
|
@@ -680,6 +680,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
680
680
|
| 'gemini-3.6-flash'
|
|
681
681
|
| 'gemini-3.7-flash'
|
|
682
682
|
| 'gemini-3.8-flash'
|
|
683
|
+
| 'gemini-4-argon'
|
|
683
684
|
| null;
|
|
684
685
|
|
|
685
686
|
/**
|
|
@@ -1817,6 +1818,26 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1817
1818
|
*/
|
|
1818
1819
|
execution_message_type?: 'prompt' | 'static_text';
|
|
1819
1820
|
|
|
1821
|
+
/**
|
|
1822
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
1823
|
+
* customer number on the call.
|
|
1824
|
+
*/
|
|
1825
|
+
sms_destination?:
|
|
1826
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
1827
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
1828
|
+
| unknown;
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
1832
|
+
* agent's phone number.
|
|
1833
|
+
*/
|
|
1834
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
1838
|
+
*/
|
|
1839
|
+
speak_after_execution?: boolean;
|
|
1840
|
+
|
|
1820
1841
|
/**
|
|
1821
1842
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
1822
1843
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -1893,6 +1914,33 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1893
1914
|
right?: string;
|
|
1894
1915
|
}
|
|
1895
1916
|
}
|
|
1917
|
+
|
|
1918
|
+
export interface DestinationCustomerNumber {
|
|
1919
|
+
type: 'customer_number';
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
export interface DestinationPhoneNumber {
|
|
1923
|
+
/**
|
|
1924
|
+
* Destination phone number in E.164 format.
|
|
1925
|
+
*/
|
|
1926
|
+
phone_number: string;
|
|
1927
|
+
|
|
1928
|
+
type: 'phone_number';
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
1932
|
+
* transfer_call ignore_e164_validation).
|
|
1933
|
+
*/
|
|
1934
|
+
ignore_e164_validation?: boolean;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
export interface SenderCurrentNumber {
|
|
1938
|
+
type: 'current_number';
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
export interface SenderRetellLongCode {
|
|
1942
|
+
type: 'retell_long_code';
|
|
1943
|
+
}
|
|
1896
1944
|
}
|
|
1897
1945
|
|
|
1898
1946
|
export interface AppTool {
|
|
@@ -2515,7 +2563,8 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
2515
2563
|
| 'gemini-3.5-flash-lite'
|
|
2516
2564
|
| 'gemini-3.6-flash'
|
|
2517
2565
|
| 'gemini-3.7-flash'
|
|
2518
|
-
| 'gemini-3.8-flash'
|
|
2566
|
+
| 'gemini-3.8-flash'
|
|
2567
|
+
| 'gemini-4-argon';
|
|
2519
2568
|
|
|
2520
2569
|
/**
|
|
2521
2570
|
* Type of model choice
|
|
@@ -2526,6 +2575,13 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
2526
2575
|
* Whether to use high priority pool with more dedicated resource, default false
|
|
2527
2576
|
*/
|
|
2528
2577
|
high_priority?: boolean;
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* Whether to use the ultrafast tier for much faster response generation, default
|
|
2581
|
+
* false. Only supported by gpt-6.1-sol on voice agents; ignored otherwise. Takes
|
|
2582
|
+
* precedence over high_priority.
|
|
2583
|
+
*/
|
|
2584
|
+
ultrafast?: boolean;
|
|
2529
2585
|
}
|
|
2530
2586
|
|
|
2531
2587
|
export interface ModelChoiceS2S {
|
|
@@ -2550,7 +2606,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
2550
2606
|
/**
|
|
2551
2607
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
2552
2608
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
2553
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
2609
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
2554
2610
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
2555
2611
|
* begin_message.
|
|
2556
2612
|
*/
|
|
@@ -2614,6 +2670,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
2614
2670
|
| 'gemini-3.6-flash'
|
|
2615
2671
|
| 'gemini-3.7-flash'
|
|
2616
2672
|
| 'gemini-3.8-flash'
|
|
2673
|
+
| 'gemini-4-argon'
|
|
2617
2674
|
| null;
|
|
2618
2675
|
|
|
2619
2676
|
/**
|
|
@@ -2631,6 +2688,14 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
2631
2688
|
*/
|
|
2632
2689
|
model_temperature?: number;
|
|
2633
2690
|
|
|
2691
|
+
/**
|
|
2692
|
+
* If set to true, will use the ultrafast tier for much faster response generation,
|
|
2693
|
+
* default to false. Only supported by gpt-6.1-sol on voice agents; ignored
|
|
2694
|
+
* otherwise. Takes precedence over model_high_priority. This feature comes with a
|
|
2695
|
+
* higher cost.
|
|
2696
|
+
*/
|
|
2697
|
+
model_ultrafast?: boolean | null;
|
|
2698
|
+
|
|
2634
2699
|
/**
|
|
2635
2700
|
* Select the underlying speech to speech model. Can only set this or model, not
|
|
2636
2701
|
* both.
|