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/resources/llm.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export interface LlmResponse {
|
|
|
127
127
|
/**
|
|
128
128
|
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
129
129
|
*/
|
|
130
|
-
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-6-astra' | 'gpt-6-sol' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'claude-4.6-sonnet' | 'claude-5-opus' | 'claude-5.5-opus' | 'claude-5-sonnet' | 'claude-5.5-sonnet' | 'claude-5.5-haiku' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | null;
|
|
130
|
+
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-6-astra' | 'gpt-6-sol' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'claude-4.6-sonnet' | 'claude-5-opus' | 'claude-5.5-opus' | 'claude-5-sonnet' | 'claude-5.5-sonnet' | 'claude-5.5-haiku' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | 'gemini-4-argon' | null;
|
|
131
131
|
/**
|
|
132
132
|
* If set to true, will use high priority pool with more dedicated resource to
|
|
133
133
|
* ensure lower and more consistent latency, default to false. This feature usually
|
|
@@ -141,6 +141,13 @@ export interface LlmResponse {
|
|
|
141
141
|
* recommended.
|
|
142
142
|
*/
|
|
143
143
|
model_temperature?: number;
|
|
144
|
+
/**
|
|
145
|
+
* If set to true, will use the ultrafast tier for much faster response generation,
|
|
146
|
+
* default to false. Only supported by gpt-6.1-sol on voice agents; ignored
|
|
147
|
+
* otherwise. Takes precedence over model_high_priority. This feature comes with a
|
|
148
|
+
* higher cost.
|
|
149
|
+
*/
|
|
150
|
+
model_ultrafast?: boolean | null;
|
|
144
151
|
/**
|
|
145
152
|
* Select the underlying speech to speech model. Can only set this or model, not
|
|
146
153
|
* both.
|
|
@@ -612,6 +619,20 @@ export declare namespace LlmResponse {
|
|
|
612
619
|
* to "prompt".
|
|
613
620
|
*/
|
|
614
621
|
execution_message_type?: 'prompt' | 'static_text';
|
|
622
|
+
/**
|
|
623
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
624
|
+
* customer number on the call.
|
|
625
|
+
*/
|
|
626
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
627
|
+
/**
|
|
628
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
629
|
+
* agent's phone number.
|
|
630
|
+
*/
|
|
631
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
632
|
+
/**
|
|
633
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
634
|
+
*/
|
|
635
|
+
speak_after_execution?: boolean;
|
|
615
636
|
/**
|
|
616
637
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
617
638
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -643,6 +664,27 @@ export declare namespace LlmResponse {
|
|
|
643
664
|
template: 'info_collection';
|
|
644
665
|
type: 'template';
|
|
645
666
|
}
|
|
667
|
+
interface DestinationCustomerNumber {
|
|
668
|
+
type: 'customer_number';
|
|
669
|
+
}
|
|
670
|
+
interface DestinationPhoneNumber {
|
|
671
|
+
/**
|
|
672
|
+
* Destination phone number in E.164 format.
|
|
673
|
+
*/
|
|
674
|
+
phone_number: string;
|
|
675
|
+
type: 'phone_number';
|
|
676
|
+
/**
|
|
677
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
678
|
+
* transfer_call ignore_e164_validation).
|
|
679
|
+
*/
|
|
680
|
+
ignore_e164_validation?: boolean;
|
|
681
|
+
}
|
|
682
|
+
interface SenderCurrentNumber {
|
|
683
|
+
type: 'current_number';
|
|
684
|
+
}
|
|
685
|
+
interface SenderRetellLongCode {
|
|
686
|
+
type: 'retell_long_code';
|
|
687
|
+
}
|
|
646
688
|
}
|
|
647
689
|
interface CustomTool {
|
|
648
690
|
/**
|
|
@@ -1784,6 +1826,20 @@ export declare namespace LlmResponse {
|
|
|
1784
1826
|
* to "prompt".
|
|
1785
1827
|
*/
|
|
1786
1828
|
execution_message_type?: 'prompt' | 'static_text';
|
|
1829
|
+
/**
|
|
1830
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
1831
|
+
* customer number on the call.
|
|
1832
|
+
*/
|
|
1833
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
1834
|
+
/**
|
|
1835
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
1836
|
+
* agent's phone number.
|
|
1837
|
+
*/
|
|
1838
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
1839
|
+
/**
|
|
1840
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
1841
|
+
*/
|
|
1842
|
+
speak_after_execution?: boolean;
|
|
1787
1843
|
/**
|
|
1788
1844
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
1789
1845
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -1815,6 +1871,27 @@ export declare namespace LlmResponse {
|
|
|
1815
1871
|
template: 'info_collection';
|
|
1816
1872
|
type: 'template';
|
|
1817
1873
|
}
|
|
1874
|
+
interface DestinationCustomerNumber {
|
|
1875
|
+
type: 'customer_number';
|
|
1876
|
+
}
|
|
1877
|
+
interface DestinationPhoneNumber {
|
|
1878
|
+
/**
|
|
1879
|
+
* Destination phone number in E.164 format.
|
|
1880
|
+
*/
|
|
1881
|
+
phone_number: string;
|
|
1882
|
+
type: 'phone_number';
|
|
1883
|
+
/**
|
|
1884
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
1885
|
+
* transfer_call ignore_e164_validation).
|
|
1886
|
+
*/
|
|
1887
|
+
ignore_e164_validation?: boolean;
|
|
1888
|
+
}
|
|
1889
|
+
interface SenderCurrentNumber {
|
|
1890
|
+
type: 'current_number';
|
|
1891
|
+
}
|
|
1892
|
+
interface SenderRetellLongCode {
|
|
1893
|
+
type: 'retell_long_code';
|
|
1894
|
+
}
|
|
1818
1895
|
}
|
|
1819
1896
|
interface CustomTool {
|
|
1820
1897
|
/**
|
|
@@ -2473,7 +2550,7 @@ export interface LlmCreateParams {
|
|
|
2473
2550
|
/**
|
|
2474
2551
|
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
2475
2552
|
*/
|
|
2476
|
-
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-6-astra' | 'gpt-6-sol' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'claude-4.6-sonnet' | 'claude-5-opus' | 'claude-5.5-opus' | 'claude-5-sonnet' | 'claude-5.5-sonnet' | 'claude-5.5-haiku' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | null;
|
|
2553
|
+
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-6-astra' | 'gpt-6-sol' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'claude-4.6-sonnet' | 'claude-5-opus' | 'claude-5.5-opus' | 'claude-5-sonnet' | 'claude-5.5-sonnet' | 'claude-5.5-haiku' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | 'gemini-4-argon' | null;
|
|
2477
2554
|
/**
|
|
2478
2555
|
* If set to true, will use high priority pool with more dedicated resource to
|
|
2479
2556
|
* ensure lower and more consistent latency, default to false. This feature usually
|
|
@@ -2487,6 +2564,13 @@ export interface LlmCreateParams {
|
|
|
2487
2564
|
* recommended.
|
|
2488
2565
|
*/
|
|
2489
2566
|
model_temperature?: number;
|
|
2567
|
+
/**
|
|
2568
|
+
* If set to true, will use the ultrafast tier for much faster response generation,
|
|
2569
|
+
* default to false. Only supported by gpt-6.1-sol on voice agents; ignored
|
|
2570
|
+
* otherwise. Takes precedence over model_high_priority. This feature comes with a
|
|
2571
|
+
* higher cost.
|
|
2572
|
+
*/
|
|
2573
|
+
model_ultrafast?: boolean | null;
|
|
2490
2574
|
/**
|
|
2491
2575
|
* Select the underlying speech to speech model. Can only set this or model, not
|
|
2492
2576
|
* both.
|
|
@@ -2954,6 +3038,20 @@ export declare namespace LlmCreateParams {
|
|
|
2954
3038
|
* to "prompt".
|
|
2955
3039
|
*/
|
|
2956
3040
|
execution_message_type?: 'prompt' | 'static_text';
|
|
3041
|
+
/**
|
|
3042
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
3043
|
+
* customer number on the call.
|
|
3044
|
+
*/
|
|
3045
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
3046
|
+
/**
|
|
3047
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
3048
|
+
* agent's phone number.
|
|
3049
|
+
*/
|
|
3050
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
3051
|
+
/**
|
|
3052
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
3053
|
+
*/
|
|
3054
|
+
speak_after_execution?: boolean;
|
|
2957
3055
|
/**
|
|
2958
3056
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
2959
3057
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -2985,6 +3083,27 @@ export declare namespace LlmCreateParams {
|
|
|
2985
3083
|
template: 'info_collection';
|
|
2986
3084
|
type: 'template';
|
|
2987
3085
|
}
|
|
3086
|
+
interface DestinationCustomerNumber {
|
|
3087
|
+
type: 'customer_number';
|
|
3088
|
+
}
|
|
3089
|
+
interface DestinationPhoneNumber {
|
|
3090
|
+
/**
|
|
3091
|
+
* Destination phone number in E.164 format.
|
|
3092
|
+
*/
|
|
3093
|
+
phone_number: string;
|
|
3094
|
+
type: 'phone_number';
|
|
3095
|
+
/**
|
|
3096
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
3097
|
+
* transfer_call ignore_e164_validation).
|
|
3098
|
+
*/
|
|
3099
|
+
ignore_e164_validation?: boolean;
|
|
3100
|
+
}
|
|
3101
|
+
interface SenderCurrentNumber {
|
|
3102
|
+
type: 'current_number';
|
|
3103
|
+
}
|
|
3104
|
+
interface SenderRetellLongCode {
|
|
3105
|
+
type: 'retell_long_code';
|
|
3106
|
+
}
|
|
2988
3107
|
}
|
|
2989
3108
|
interface CustomTool {
|
|
2990
3109
|
/**
|
|
@@ -4126,6 +4245,20 @@ export declare namespace LlmCreateParams {
|
|
|
4126
4245
|
* to "prompt".
|
|
4127
4246
|
*/
|
|
4128
4247
|
execution_message_type?: 'prompt' | 'static_text';
|
|
4248
|
+
/**
|
|
4249
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
4250
|
+
* customer number on the call.
|
|
4251
|
+
*/
|
|
4252
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
4253
|
+
/**
|
|
4254
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
4255
|
+
* agent's phone number.
|
|
4256
|
+
*/
|
|
4257
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
4258
|
+
/**
|
|
4259
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
4260
|
+
*/
|
|
4261
|
+
speak_after_execution?: boolean;
|
|
4129
4262
|
/**
|
|
4130
4263
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
4131
4264
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -4157,6 +4290,27 @@ export declare namespace LlmCreateParams {
|
|
|
4157
4290
|
template: 'info_collection';
|
|
4158
4291
|
type: 'template';
|
|
4159
4292
|
}
|
|
4293
|
+
interface DestinationCustomerNumber {
|
|
4294
|
+
type: 'customer_number';
|
|
4295
|
+
}
|
|
4296
|
+
interface DestinationPhoneNumber {
|
|
4297
|
+
/**
|
|
4298
|
+
* Destination phone number in E.164 format.
|
|
4299
|
+
*/
|
|
4300
|
+
phone_number: string;
|
|
4301
|
+
type: 'phone_number';
|
|
4302
|
+
/**
|
|
4303
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
4304
|
+
* transfer_call ignore_e164_validation).
|
|
4305
|
+
*/
|
|
4306
|
+
ignore_e164_validation?: boolean;
|
|
4307
|
+
}
|
|
4308
|
+
interface SenderCurrentNumber {
|
|
4309
|
+
type: 'current_number';
|
|
4310
|
+
}
|
|
4311
|
+
interface SenderRetellLongCode {
|
|
4312
|
+
type: 'retell_long_code';
|
|
4313
|
+
}
|
|
4160
4314
|
}
|
|
4161
4315
|
interface CustomTool {
|
|
4162
4316
|
/**
|
|
@@ -4818,7 +4972,7 @@ export interface LlmUpdateParams {
|
|
|
4818
4972
|
* Body param: Select the underlying text LLM. If not set, would default to
|
|
4819
4973
|
* gpt-5.6-terra.
|
|
4820
4974
|
*/
|
|
4821
|
-
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-6-astra' | 'gpt-6-sol' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'claude-4.6-sonnet' | 'claude-5-opus' | 'claude-5.5-opus' | 'claude-5-sonnet' | 'claude-5.5-sonnet' | 'claude-5.5-haiku' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | null;
|
|
4975
|
+
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-6-astra' | 'gpt-6-sol' | 'gpt-6.1-sol' | 'gpt-6-luna' | 'claude-4.6-sonnet' | 'claude-5-opus' | 'claude-5.5-opus' | 'claude-5-sonnet' | 'claude-5.5-sonnet' | 'claude-5.5-haiku' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | 'gemini-4-argon' | null;
|
|
4822
4976
|
/**
|
|
4823
4977
|
* Body param: If set to true, will use high priority pool with more dedicated
|
|
4824
4978
|
* resource to ensure lower and more consistent latency, default to false. This
|
|
@@ -4832,6 +4986,13 @@ export interface LlmUpdateParams {
|
|
|
4832
4986
|
* lower value is recommended.
|
|
4833
4987
|
*/
|
|
4834
4988
|
model_temperature?: number;
|
|
4989
|
+
/**
|
|
4990
|
+
* Body param: If set to true, will use the ultrafast tier for much faster response
|
|
4991
|
+
* generation, default to false. Only supported by gpt-6.1-sol on voice agents;
|
|
4992
|
+
* ignored otherwise. Takes precedence over model_high_priority. This feature comes
|
|
4993
|
+
* with a higher cost.
|
|
4994
|
+
*/
|
|
4995
|
+
model_ultrafast?: boolean | null;
|
|
4835
4996
|
/**
|
|
4836
4997
|
* Body param: Select the underlying speech to speech model. Can only set this or
|
|
4837
4998
|
* model, not both.
|
|
@@ -5299,6 +5460,20 @@ export declare namespace LlmUpdateParams {
|
|
|
5299
5460
|
* to "prompt".
|
|
5300
5461
|
*/
|
|
5301
5462
|
execution_message_type?: 'prompt' | 'static_text';
|
|
5463
|
+
/**
|
|
5464
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
5465
|
+
* customer number on the call.
|
|
5466
|
+
*/
|
|
5467
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
5468
|
+
/**
|
|
5469
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
5470
|
+
* agent's phone number.
|
|
5471
|
+
*/
|
|
5472
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
5473
|
+
/**
|
|
5474
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
5475
|
+
*/
|
|
5476
|
+
speak_after_execution?: boolean;
|
|
5302
5477
|
/**
|
|
5303
5478
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
5304
5479
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -5330,6 +5505,27 @@ export declare namespace LlmUpdateParams {
|
|
|
5330
5505
|
template: 'info_collection';
|
|
5331
5506
|
type: 'template';
|
|
5332
5507
|
}
|
|
5508
|
+
interface DestinationCustomerNumber {
|
|
5509
|
+
type: 'customer_number';
|
|
5510
|
+
}
|
|
5511
|
+
interface DestinationPhoneNumber {
|
|
5512
|
+
/**
|
|
5513
|
+
* Destination phone number in E.164 format.
|
|
5514
|
+
*/
|
|
5515
|
+
phone_number: string;
|
|
5516
|
+
type: 'phone_number';
|
|
5517
|
+
/**
|
|
5518
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
5519
|
+
* transfer_call ignore_e164_validation).
|
|
5520
|
+
*/
|
|
5521
|
+
ignore_e164_validation?: boolean;
|
|
5522
|
+
}
|
|
5523
|
+
interface SenderCurrentNumber {
|
|
5524
|
+
type: 'current_number';
|
|
5525
|
+
}
|
|
5526
|
+
interface SenderRetellLongCode {
|
|
5527
|
+
type: 'retell_long_code';
|
|
5528
|
+
}
|
|
5333
5529
|
}
|
|
5334
5530
|
interface CustomTool {
|
|
5335
5531
|
/**
|
|
@@ -6471,6 +6667,20 @@ export declare namespace LlmUpdateParams {
|
|
|
6471
6667
|
* to "prompt".
|
|
6472
6668
|
*/
|
|
6473
6669
|
execution_message_type?: 'prompt' | 'static_text';
|
|
6670
|
+
/**
|
|
6671
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
6672
|
+
* customer number on the call.
|
|
6673
|
+
*/
|
|
6674
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
6675
|
+
/**
|
|
6676
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
6677
|
+
* agent's phone number.
|
|
6678
|
+
*/
|
|
6679
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
6680
|
+
/**
|
|
6681
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
6682
|
+
*/
|
|
6683
|
+
speak_after_execution?: boolean;
|
|
6474
6684
|
/**
|
|
6475
6685
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
6476
6686
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -6502,6 +6712,27 @@ export declare namespace LlmUpdateParams {
|
|
|
6502
6712
|
template: 'info_collection';
|
|
6503
6713
|
type: 'template';
|
|
6504
6714
|
}
|
|
6715
|
+
interface DestinationCustomerNumber {
|
|
6716
|
+
type: 'customer_number';
|
|
6717
|
+
}
|
|
6718
|
+
interface DestinationPhoneNumber {
|
|
6719
|
+
/**
|
|
6720
|
+
* Destination phone number in E.164 format.
|
|
6721
|
+
*/
|
|
6722
|
+
phone_number: string;
|
|
6723
|
+
type: 'phone_number';
|
|
6724
|
+
/**
|
|
6725
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
6726
|
+
* transfer_call ignore_e164_validation).
|
|
6727
|
+
*/
|
|
6728
|
+
ignore_e164_validation?: boolean;
|
|
6729
|
+
}
|
|
6730
|
+
interface SenderCurrentNumber {
|
|
6731
|
+
type: 'current_number';
|
|
6732
|
+
}
|
|
6733
|
+
interface SenderRetellLongCode {
|
|
6734
|
+
type: 'retell_long_code';
|
|
6735
|
+
}
|
|
6505
6736
|
}
|
|
6506
6737
|
interface CustomTool {
|
|
6507
6738
|
/**
|