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/call.ts
CHANGED
|
@@ -177,7 +177,8 @@ export class Call extends APIResource {
|
|
|
177
177
|
/**
|
|
178
178
|
* Take over an in-progress call from the AI agent. The agent stops responding and
|
|
179
179
|
* the specified live-listen participant is allowed to speak directly to the
|
|
180
|
-
* caller. The call must be in ONGOING status.
|
|
180
|
+
* caller. The call must be in ONGOING status. Calls cannot be taken over while a
|
|
181
|
+
* PCI session is active.
|
|
181
182
|
*
|
|
182
183
|
* @example
|
|
183
184
|
* ```ts
|
|
@@ -7122,7 +7123,9 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7122
7123
|
export interface AgentOverride {
|
|
7123
7124
|
/**
|
|
7124
7125
|
* Override agent configuration settings. Any properties specified here will
|
|
7125
|
-
* override the base agent configuration for this call.
|
|
7126
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
7127
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
7128
|
+
* latest version.
|
|
7126
7129
|
*/
|
|
7127
7130
|
agent?: AgentOverride.Agent;
|
|
7128
7131
|
|
|
@@ -7137,7 +7140,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7137
7140
|
/**
|
|
7138
7141
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
7139
7142
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
7140
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
7143
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
7141
7144
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
7142
7145
|
* begin_message.
|
|
7143
7146
|
*/
|
|
@@ -7147,7 +7150,9 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7147
7150
|
export namespace AgentOverride {
|
|
7148
7151
|
/**
|
|
7149
7152
|
* Override agent configuration settings. Any properties specified here will
|
|
7150
|
-
* override the base agent configuration for this call.
|
|
7153
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
7154
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
7155
|
+
* latest version.
|
|
7151
7156
|
*/
|
|
7152
7157
|
export interface Agent {
|
|
7153
7158
|
/**
|
|
@@ -7400,10 +7405,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7400
7405
|
/**
|
|
7401
7406
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
7402
7407
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
7403
|
-
* `["en-US","es-ES"]`).
|
|
7404
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
7405
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
7406
|
-
* unset, defaults to `en-US`.
|
|
7408
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
7407
7409
|
*/
|
|
7408
7410
|
language?:
|
|
7409
7411
|
| 'en-US'
|
|
@@ -7469,7 +7471,6 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7469
7471
|
| 'ur-IN'
|
|
7470
7472
|
| 'yue-CN'
|
|
7471
7473
|
| 'uk-UA'
|
|
7472
|
-
| 'multi'
|
|
7473
7474
|
| Array<
|
|
7474
7475
|
| 'en-US'
|
|
7475
7476
|
| 'en-IN'
|
|
@@ -7603,6 +7604,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7603
7604
|
| 'gemini-3.6-flash'
|
|
7604
7605
|
| 'gemini-3.7-flash'
|
|
7605
7606
|
| 'gemini-3.8-flash'
|
|
7607
|
+
| 'gemini-4-argon'
|
|
7606
7608
|
| null;
|
|
7607
7609
|
|
|
7608
7610
|
/**
|
|
@@ -8740,6 +8742,26 @@ export namespace CallCreatePhoneCallParams {
|
|
|
8740
8742
|
*/
|
|
8741
8743
|
execution_message_type?: 'prompt' | 'static_text';
|
|
8742
8744
|
|
|
8745
|
+
/**
|
|
8746
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
8747
|
+
* customer number on the call.
|
|
8748
|
+
*/
|
|
8749
|
+
sms_destination?:
|
|
8750
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
8751
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
8752
|
+
| unknown;
|
|
8753
|
+
|
|
8754
|
+
/**
|
|
8755
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
8756
|
+
* agent's phone number.
|
|
8757
|
+
*/
|
|
8758
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
8759
|
+
|
|
8760
|
+
/**
|
|
8761
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
8762
|
+
*/
|
|
8763
|
+
speak_after_execution?: boolean;
|
|
8764
|
+
|
|
8743
8765
|
/**
|
|
8744
8766
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
8745
8767
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -8816,6 +8838,33 @@ export namespace CallCreatePhoneCallParams {
|
|
|
8816
8838
|
right?: string;
|
|
8817
8839
|
}
|
|
8818
8840
|
}
|
|
8841
|
+
|
|
8842
|
+
export interface DestinationCustomerNumber {
|
|
8843
|
+
type: 'customer_number';
|
|
8844
|
+
}
|
|
8845
|
+
|
|
8846
|
+
export interface DestinationPhoneNumber {
|
|
8847
|
+
/**
|
|
8848
|
+
* Destination phone number in E.164 format.
|
|
8849
|
+
*/
|
|
8850
|
+
phone_number: string;
|
|
8851
|
+
|
|
8852
|
+
type: 'phone_number';
|
|
8853
|
+
|
|
8854
|
+
/**
|
|
8855
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
8856
|
+
* transfer_call ignore_e164_validation).
|
|
8857
|
+
*/
|
|
8858
|
+
ignore_e164_validation?: boolean;
|
|
8859
|
+
}
|
|
8860
|
+
|
|
8861
|
+
export interface SenderCurrentNumber {
|
|
8862
|
+
type: 'current_number';
|
|
8863
|
+
}
|
|
8864
|
+
|
|
8865
|
+
export interface SenderRetellLongCode {
|
|
8866
|
+
type: 'retell_long_code';
|
|
8867
|
+
}
|
|
8819
8868
|
}
|
|
8820
8869
|
|
|
8821
8870
|
export interface AppTool {
|
|
@@ -9438,7 +9487,8 @@ export namespace CallCreatePhoneCallParams {
|
|
|
9438
9487
|
| 'gemini-3.5-flash-lite'
|
|
9439
9488
|
| 'gemini-3.6-flash'
|
|
9440
9489
|
| 'gemini-3.7-flash'
|
|
9441
|
-
| 'gemini-3.8-flash'
|
|
9490
|
+
| 'gemini-3.8-flash'
|
|
9491
|
+
| 'gemini-4-argon';
|
|
9442
9492
|
|
|
9443
9493
|
/**
|
|
9444
9494
|
* Type of model choice
|
|
@@ -9449,6 +9499,13 @@ export namespace CallCreatePhoneCallParams {
|
|
|
9449
9499
|
* Whether to use high priority pool with more dedicated resource, default false
|
|
9450
9500
|
*/
|
|
9451
9501
|
high_priority?: boolean;
|
|
9502
|
+
|
|
9503
|
+
/**
|
|
9504
|
+
* Whether to use the ultrafast tier for much faster response generation, default
|
|
9505
|
+
* false. Only supported by gpt-6.1-sol on voice agents; ignored otherwise. Takes
|
|
9506
|
+
* precedence over high_priority.
|
|
9507
|
+
*/
|
|
9508
|
+
ultrafast?: boolean;
|
|
9452
9509
|
}
|
|
9453
9510
|
|
|
9454
9511
|
export interface ModelChoiceS2S {
|
|
@@ -9473,7 +9530,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
9473
9530
|
/**
|
|
9474
9531
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
9475
9532
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
9476
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
9533
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
9477
9534
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
9478
9535
|
* begin_message.
|
|
9479
9536
|
*/
|
|
@@ -9537,6 +9594,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
9537
9594
|
| 'gemini-3.6-flash'
|
|
9538
9595
|
| 'gemini-3.7-flash'
|
|
9539
9596
|
| 'gemini-3.8-flash'
|
|
9597
|
+
| 'gemini-4-argon'
|
|
9540
9598
|
| null;
|
|
9541
9599
|
|
|
9542
9600
|
/**
|
|
@@ -9554,6 +9612,14 @@ export namespace CallCreatePhoneCallParams {
|
|
|
9554
9612
|
*/
|
|
9555
9613
|
model_temperature?: number;
|
|
9556
9614
|
|
|
9615
|
+
/**
|
|
9616
|
+
* If set to true, will use the ultrafast tier for much faster response generation,
|
|
9617
|
+
* default to false. Only supported by gpt-6.1-sol on voice agents; ignored
|
|
9618
|
+
* otherwise. Takes precedence over model_high_priority. This feature comes with a
|
|
9619
|
+
* higher cost.
|
|
9620
|
+
*/
|
|
9621
|
+
model_ultrafast?: boolean | null;
|
|
9622
|
+
|
|
9557
9623
|
/**
|
|
9558
9624
|
* Select the underlying speech to speech model. Can only set this or model, not
|
|
9559
9625
|
* both.
|
|
@@ -9656,7 +9722,9 @@ export namespace CallCreateWebCallParams {
|
|
|
9656
9722
|
export interface AgentOverride {
|
|
9657
9723
|
/**
|
|
9658
9724
|
* Override agent configuration settings. Any properties specified here will
|
|
9659
|
-
* override the base agent configuration for this call.
|
|
9725
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
9726
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
9727
|
+
* latest version.
|
|
9660
9728
|
*/
|
|
9661
9729
|
agent?: AgentOverride.Agent;
|
|
9662
9730
|
|
|
@@ -9671,7 +9739,7 @@ export namespace CallCreateWebCallParams {
|
|
|
9671
9739
|
/**
|
|
9672
9740
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
9673
9741
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
9674
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
9742
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
9675
9743
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
9676
9744
|
* begin_message.
|
|
9677
9745
|
*/
|
|
@@ -9681,7 +9749,9 @@ export namespace CallCreateWebCallParams {
|
|
|
9681
9749
|
export namespace AgentOverride {
|
|
9682
9750
|
/**
|
|
9683
9751
|
* Override agent configuration settings. Any properties specified here will
|
|
9684
|
-
* override the base agent configuration for this call.
|
|
9752
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
9753
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
9754
|
+
* latest version.
|
|
9685
9755
|
*/
|
|
9686
9756
|
export interface Agent {
|
|
9687
9757
|
/**
|
|
@@ -9934,10 +10004,7 @@ export namespace CallCreateWebCallParams {
|
|
|
9934
10004
|
/**
|
|
9935
10005
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
9936
10006
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
9937
|
-
* `["en-US","es-ES"]`).
|
|
9938
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
9939
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
9940
|
-
* unset, defaults to `en-US`.
|
|
10007
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
9941
10008
|
*/
|
|
9942
10009
|
language?:
|
|
9943
10010
|
| 'en-US'
|
|
@@ -10003,7 +10070,6 @@ export namespace CallCreateWebCallParams {
|
|
|
10003
10070
|
| 'ur-IN'
|
|
10004
10071
|
| 'yue-CN'
|
|
10005
10072
|
| 'uk-UA'
|
|
10006
|
-
| 'multi'
|
|
10007
10073
|
| Array<
|
|
10008
10074
|
| 'en-US'
|
|
10009
10075
|
| 'en-IN'
|
|
@@ -10137,6 +10203,7 @@ export namespace CallCreateWebCallParams {
|
|
|
10137
10203
|
| 'gemini-3.6-flash'
|
|
10138
10204
|
| 'gemini-3.7-flash'
|
|
10139
10205
|
| 'gemini-3.8-flash'
|
|
10206
|
+
| 'gemini-4-argon'
|
|
10140
10207
|
| null;
|
|
10141
10208
|
|
|
10142
10209
|
/**
|
|
@@ -11274,6 +11341,26 @@ export namespace CallCreateWebCallParams {
|
|
|
11274
11341
|
*/
|
|
11275
11342
|
execution_message_type?: 'prompt' | 'static_text';
|
|
11276
11343
|
|
|
11344
|
+
/**
|
|
11345
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
11346
|
+
* customer number on the call.
|
|
11347
|
+
*/
|
|
11348
|
+
sms_destination?:
|
|
11349
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
11350
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
11351
|
+
| unknown;
|
|
11352
|
+
|
|
11353
|
+
/**
|
|
11354
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
11355
|
+
* agent's phone number.
|
|
11356
|
+
*/
|
|
11357
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
11358
|
+
|
|
11359
|
+
/**
|
|
11360
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
11361
|
+
*/
|
|
11362
|
+
speak_after_execution?: boolean;
|
|
11363
|
+
|
|
11277
11364
|
/**
|
|
11278
11365
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
11279
11366
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -11350,6 +11437,33 @@ export namespace CallCreateWebCallParams {
|
|
|
11350
11437
|
right?: string;
|
|
11351
11438
|
}
|
|
11352
11439
|
}
|
|
11440
|
+
|
|
11441
|
+
export interface DestinationCustomerNumber {
|
|
11442
|
+
type: 'customer_number';
|
|
11443
|
+
}
|
|
11444
|
+
|
|
11445
|
+
export interface DestinationPhoneNumber {
|
|
11446
|
+
/**
|
|
11447
|
+
* Destination phone number in E.164 format.
|
|
11448
|
+
*/
|
|
11449
|
+
phone_number: string;
|
|
11450
|
+
|
|
11451
|
+
type: 'phone_number';
|
|
11452
|
+
|
|
11453
|
+
/**
|
|
11454
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
11455
|
+
* transfer_call ignore_e164_validation).
|
|
11456
|
+
*/
|
|
11457
|
+
ignore_e164_validation?: boolean;
|
|
11458
|
+
}
|
|
11459
|
+
|
|
11460
|
+
export interface SenderCurrentNumber {
|
|
11461
|
+
type: 'current_number';
|
|
11462
|
+
}
|
|
11463
|
+
|
|
11464
|
+
export interface SenderRetellLongCode {
|
|
11465
|
+
type: 'retell_long_code';
|
|
11466
|
+
}
|
|
11353
11467
|
}
|
|
11354
11468
|
|
|
11355
11469
|
export interface AppTool {
|
|
@@ -11972,7 +12086,8 @@ export namespace CallCreateWebCallParams {
|
|
|
11972
12086
|
| 'gemini-3.5-flash-lite'
|
|
11973
12087
|
| 'gemini-3.6-flash'
|
|
11974
12088
|
| 'gemini-3.7-flash'
|
|
11975
|
-
| 'gemini-3.8-flash'
|
|
12089
|
+
| 'gemini-3.8-flash'
|
|
12090
|
+
| 'gemini-4-argon';
|
|
11976
12091
|
|
|
11977
12092
|
/**
|
|
11978
12093
|
* Type of model choice
|
|
@@ -11983,6 +12098,13 @@ export namespace CallCreateWebCallParams {
|
|
|
11983
12098
|
* Whether to use high priority pool with more dedicated resource, default false
|
|
11984
12099
|
*/
|
|
11985
12100
|
high_priority?: boolean;
|
|
12101
|
+
|
|
12102
|
+
/**
|
|
12103
|
+
* Whether to use the ultrafast tier for much faster response generation, default
|
|
12104
|
+
* false. Only supported by gpt-6.1-sol on voice agents; ignored otherwise. Takes
|
|
12105
|
+
* precedence over high_priority.
|
|
12106
|
+
*/
|
|
12107
|
+
ultrafast?: boolean;
|
|
11986
12108
|
}
|
|
11987
12109
|
|
|
11988
12110
|
export interface ModelChoiceS2S {
|
|
@@ -12007,7 +12129,7 @@ export namespace CallCreateWebCallParams {
|
|
|
12007
12129
|
/**
|
|
12008
12130
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
12009
12131
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
12010
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
12132
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
12011
12133
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
12012
12134
|
* begin_message.
|
|
12013
12135
|
*/
|
|
@@ -12071,6 +12193,7 @@ export namespace CallCreateWebCallParams {
|
|
|
12071
12193
|
| 'gemini-3.6-flash'
|
|
12072
12194
|
| 'gemini-3.7-flash'
|
|
12073
12195
|
| 'gemini-3.8-flash'
|
|
12196
|
+
| 'gemini-4-argon'
|
|
12074
12197
|
| null;
|
|
12075
12198
|
|
|
12076
12199
|
/**
|
|
@@ -12088,6 +12211,14 @@ export namespace CallCreateWebCallParams {
|
|
|
12088
12211
|
*/
|
|
12089
12212
|
model_temperature?: number;
|
|
12090
12213
|
|
|
12214
|
+
/**
|
|
12215
|
+
* If set to true, will use the ultrafast tier for much faster response generation,
|
|
12216
|
+
* default to false. Only supported by gpt-6.1-sol on voice agents; ignored
|
|
12217
|
+
* otherwise. Takes precedence over model_high_priority. This feature comes with a
|
|
12218
|
+
* higher cost.
|
|
12219
|
+
*/
|
|
12220
|
+
model_ultrafast?: boolean | null;
|
|
12221
|
+
|
|
12091
12222
|
/**
|
|
12092
12223
|
* Select the underlying speech to speech model. Can only set this or model, not
|
|
12093
12224
|
* both.
|
|
@@ -12190,7 +12321,9 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12190
12321
|
export interface AgentOverride {
|
|
12191
12322
|
/**
|
|
12192
12323
|
* Override agent configuration settings. Any properties specified here will
|
|
12193
|
-
* override the base agent configuration for this call.
|
|
12324
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
12325
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
12326
|
+
* latest version.
|
|
12194
12327
|
*/
|
|
12195
12328
|
agent?: AgentOverride.Agent;
|
|
12196
12329
|
|
|
@@ -12205,7 +12338,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12205
12338
|
/**
|
|
12206
12339
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
12207
12340
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
12208
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
12341
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
12209
12342
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
12210
12343
|
* begin_message.
|
|
12211
12344
|
*/
|
|
@@ -12215,7 +12348,9 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12215
12348
|
export namespace AgentOverride {
|
|
12216
12349
|
/**
|
|
12217
12350
|
* Override agent configuration settings. Any properties specified here will
|
|
12218
|
-
* override the base agent configuration for this call.
|
|
12351
|
+
* override the base agent configuration for this call. If a Retell LLM or
|
|
12352
|
+
* Conversation Flow response engine is specified without a version, it uses the
|
|
12353
|
+
* latest version.
|
|
12219
12354
|
*/
|
|
12220
12355
|
export interface Agent {
|
|
12221
12356
|
/**
|
|
@@ -12468,10 +12603,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12468
12603
|
/**
|
|
12469
12604
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
12470
12605
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
12471
|
-
* `["en-US","es-ES"]`).
|
|
12472
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
12473
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
12474
|
-
* unset, defaults to `en-US`.
|
|
12606
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
12475
12607
|
*/
|
|
12476
12608
|
language?:
|
|
12477
12609
|
| 'en-US'
|
|
@@ -12537,7 +12669,6 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12537
12669
|
| 'ur-IN'
|
|
12538
12670
|
| 'yue-CN'
|
|
12539
12671
|
| 'uk-UA'
|
|
12540
|
-
| 'multi'
|
|
12541
12672
|
| Array<
|
|
12542
12673
|
| 'en-US'
|
|
12543
12674
|
| 'en-IN'
|
|
@@ -12671,6 +12802,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12671
12802
|
| 'gemini-3.6-flash'
|
|
12672
12803
|
| 'gemini-3.7-flash'
|
|
12673
12804
|
| 'gemini-3.8-flash'
|
|
12805
|
+
| 'gemini-4-argon'
|
|
12674
12806
|
| null;
|
|
12675
12807
|
|
|
12676
12808
|
/**
|
|
@@ -13808,6 +13940,26 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
13808
13940
|
*/
|
|
13809
13941
|
execution_message_type?: 'prompt' | 'static_text';
|
|
13810
13942
|
|
|
13943
|
+
/**
|
|
13944
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
13945
|
+
* customer number on the call.
|
|
13946
|
+
*/
|
|
13947
|
+
sms_destination?:
|
|
13948
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
13949
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
13950
|
+
| unknown;
|
|
13951
|
+
|
|
13952
|
+
/**
|
|
13953
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
13954
|
+
* agent's phone number.
|
|
13955
|
+
*/
|
|
13956
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
13957
|
+
|
|
13958
|
+
/**
|
|
13959
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
13960
|
+
*/
|
|
13961
|
+
speak_after_execution?: boolean;
|
|
13962
|
+
|
|
13811
13963
|
/**
|
|
13812
13964
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
13813
13965
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -13884,6 +14036,33 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
13884
14036
|
right?: string;
|
|
13885
14037
|
}
|
|
13886
14038
|
}
|
|
14039
|
+
|
|
14040
|
+
export interface DestinationCustomerNumber {
|
|
14041
|
+
type: 'customer_number';
|
|
14042
|
+
}
|
|
14043
|
+
|
|
14044
|
+
export interface DestinationPhoneNumber {
|
|
14045
|
+
/**
|
|
14046
|
+
* Destination phone number in E.164 format.
|
|
14047
|
+
*/
|
|
14048
|
+
phone_number: string;
|
|
14049
|
+
|
|
14050
|
+
type: 'phone_number';
|
|
14051
|
+
|
|
14052
|
+
/**
|
|
14053
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
14054
|
+
* transfer_call ignore_e164_validation).
|
|
14055
|
+
*/
|
|
14056
|
+
ignore_e164_validation?: boolean;
|
|
14057
|
+
}
|
|
14058
|
+
|
|
14059
|
+
export interface SenderCurrentNumber {
|
|
14060
|
+
type: 'current_number';
|
|
14061
|
+
}
|
|
14062
|
+
|
|
14063
|
+
export interface SenderRetellLongCode {
|
|
14064
|
+
type: 'retell_long_code';
|
|
14065
|
+
}
|
|
13887
14066
|
}
|
|
13888
14067
|
|
|
13889
14068
|
export interface AppTool {
|
|
@@ -14506,7 +14685,8 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
14506
14685
|
| 'gemini-3.5-flash-lite'
|
|
14507
14686
|
| 'gemini-3.6-flash'
|
|
14508
14687
|
| 'gemini-3.7-flash'
|
|
14509
|
-
| 'gemini-3.8-flash'
|
|
14688
|
+
| 'gemini-3.8-flash'
|
|
14689
|
+
| 'gemini-4-argon';
|
|
14510
14690
|
|
|
14511
14691
|
/**
|
|
14512
14692
|
* Type of model choice
|
|
@@ -14517,6 +14697,13 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
14517
14697
|
* Whether to use high priority pool with more dedicated resource, default false
|
|
14518
14698
|
*/
|
|
14519
14699
|
high_priority?: boolean;
|
|
14700
|
+
|
|
14701
|
+
/**
|
|
14702
|
+
* Whether to use the ultrafast tier for much faster response generation, default
|
|
14703
|
+
* false. Only supported by gpt-6.1-sol on voice agents; ignored otherwise. Takes
|
|
14704
|
+
* precedence over high_priority.
|
|
14705
|
+
*/
|
|
14706
|
+
ultrafast?: boolean;
|
|
14520
14707
|
}
|
|
14521
14708
|
|
|
14522
14709
|
export interface ModelChoiceS2S {
|
|
@@ -14541,7 +14728,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
14541
14728
|
/**
|
|
14542
14729
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
14543
14730
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
14544
|
-
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
14731
|
+
* model_temperature, model_high_priority, model_ultrafast, tool_call_strict_mode,
|
|
14545
14732
|
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
14546
14733
|
* begin_message.
|
|
14547
14734
|
*/
|
|
@@ -14605,6 +14792,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
14605
14792
|
| 'gemini-3.6-flash'
|
|
14606
14793
|
| 'gemini-3.7-flash'
|
|
14607
14794
|
| 'gemini-3.8-flash'
|
|
14795
|
+
| 'gemini-4-argon'
|
|
14608
14796
|
| null;
|
|
14609
14797
|
|
|
14610
14798
|
/**
|
|
@@ -14622,6 +14810,14 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
14622
14810
|
*/
|
|
14623
14811
|
model_temperature?: number;
|
|
14624
14812
|
|
|
14813
|
+
/**
|
|
14814
|
+
* If set to true, will use the ultrafast tier for much faster response generation,
|
|
14815
|
+
* default to false. Only supported by gpt-6.1-sol on voice agents; ignored
|
|
14816
|
+
* otherwise. Takes precedence over model_high_priority. This feature comes with a
|
|
14817
|
+
* higher cost.
|
|
14818
|
+
*/
|
|
14819
|
+
model_ultrafast?: boolean | null;
|
|
14820
|
+
|
|
14625
14821
|
/**
|
|
14626
14822
|
* Select the underlying speech to speech model. Can only set this or model, not
|
|
14627
14823
|
* both.
|