retell-sdk 4.58.0 → 4.60.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.
- package/CHANGELOG.md +21 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/batch-call.d.ts +626 -0
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.ts +98 -37
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.ts +670 -0
- package/resources/chat-agent.d.ts.map +1 -0
- package/resources/chat-agent.js +66 -0
- package/resources/chat-agent.js.map +1 -0
- package/resources/chat-agent.mjs +62 -0
- package/resources/chat-agent.mjs.map +1 -0
- package/resources/chat.d.ts +46 -1
- package/resources/chat.d.ts.map +1 -1
- package/resources/chat.js +23 -0
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +23 -0
- package/resources/chat.mjs.map +1 -1
- package/resources/conversation-flow.d.ts +5 -5
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.ts +21 -27
- package/resources/llm.d.ts.map +1 -1
- package/src/index.ts +25 -0
- package/src/resources/batch-call.ts +849 -0
- package/src/resources/call.ts +107 -37
- package/src/resources/chat-agent.ts +1064 -0
- package/src/resources/chat.ts +54 -0
- package/src/resources/conversation-flow.ts +5 -5
- package/src/resources/index.ts +11 -0
- package/src/resources/llm.ts +21 -27
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/call.ts
CHANGED
|
@@ -1974,7 +1974,8 @@ export interface CallUpdateParams {
|
|
|
1974
1974
|
* Override dynamic varaibles represented as key-value pairs of strings. Setting
|
|
1975
1975
|
* this will override or add the dynamic variables set in the agent during the
|
|
1976
1976
|
* call. Only need to set the delta where you want to override, no need to set the
|
|
1977
|
-
* entire dynamic variables object.
|
|
1977
|
+
* entire dynamic variables object. Setting this to null will remove any existing
|
|
1978
|
+
* override.
|
|
1978
1979
|
*/
|
|
1979
1980
|
override_dynamic_variables?: { [key: string]: string } | null;
|
|
1980
1981
|
}
|
|
@@ -2154,8 +2155,9 @@ export interface CallCreatePhoneCallParams {
|
|
|
2154
2155
|
to_number: string;
|
|
2155
2156
|
|
|
2156
2157
|
/**
|
|
2157
|
-
*
|
|
2158
|
-
*
|
|
2158
|
+
* For this particular call, override agent configuration with these settings. This
|
|
2159
|
+
* allows you to customize agent behavior for individual calls without modifying
|
|
2160
|
+
* the base agent.
|
|
2159
2161
|
*/
|
|
2160
2162
|
agent_override?: CallCreatePhoneCallParams.AgentOverride;
|
|
2161
2163
|
|
|
@@ -2202,8 +2204,9 @@ export interface CallCreatePhoneCallParams {
|
|
|
2202
2204
|
|
|
2203
2205
|
export namespace CallCreatePhoneCallParams {
|
|
2204
2206
|
/**
|
|
2205
|
-
*
|
|
2206
|
-
*
|
|
2207
|
+
* For this particular call, override agent configuration with these settings. This
|
|
2208
|
+
* allows you to customize agent behavior for individual calls without modifying
|
|
2209
|
+
* the base agent.
|
|
2207
2210
|
*/
|
|
2208
2211
|
export interface AgentOverride {
|
|
2209
2212
|
/**
|
|
@@ -2215,16 +2218,17 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2215
2218
|
/**
|
|
2216
2219
|
* Override conversation flow configuration settings. Only applicable when using
|
|
2217
2220
|
* conversation flow as the response engine. Supported attributes - model_choice,
|
|
2218
|
-
* model_temperature, knowledge_base_ids, kb_config,
|
|
2219
|
-
* begin_after_user_silence_ms.
|
|
2221
|
+
* model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
|
|
2222
|
+
* start_speaker, begin_after_user_silence_ms.
|
|
2220
2223
|
*/
|
|
2221
2224
|
conversation_flow?: AgentOverride.ConversationFlow;
|
|
2222
2225
|
|
|
2223
2226
|
/**
|
|
2224
2227
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
2225
2228
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
2226
|
-
* model_temperature,
|
|
2227
|
-
* begin_after_user_silence_ms,
|
|
2229
|
+
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
2230
|
+
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
2231
|
+
* begin_message.
|
|
2228
2232
|
*/
|
|
2229
2233
|
retell_llm?: AgentOverride.RetellLlm;
|
|
2230
2234
|
}
|
|
@@ -2839,8 +2843,8 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2839
2843
|
/**
|
|
2840
2844
|
* Override conversation flow configuration settings. Only applicable when using
|
|
2841
2845
|
* conversation flow as the response engine. Supported attributes - model_choice,
|
|
2842
|
-
* model_temperature, knowledge_base_ids, kb_config,
|
|
2843
|
-
* begin_after_user_silence_ms.
|
|
2846
|
+
* model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
|
|
2847
|
+
* start_speaker, begin_after_user_silence_ms.
|
|
2844
2848
|
*/
|
|
2845
2849
|
export interface ConversationFlow {
|
|
2846
2850
|
/**
|
|
@@ -2876,6 +2880,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2876
2880
|
* Who starts the conversation - user or agent.
|
|
2877
2881
|
*/
|
|
2878
2882
|
start_speaker?: 'user' | 'agent';
|
|
2883
|
+
|
|
2884
|
+
/**
|
|
2885
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
2886
|
+
* supported models.
|
|
2887
|
+
*/
|
|
2888
|
+
tool_call_strict_mode?: boolean | null;
|
|
2879
2889
|
}
|
|
2880
2890
|
|
|
2881
2891
|
export namespace ConversationFlow {
|
|
@@ -2932,8 +2942,9 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2932
2942
|
/**
|
|
2933
2943
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
2934
2944
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
2935
|
-
* model_temperature,
|
|
2936
|
-
* begin_after_user_silence_ms,
|
|
2945
|
+
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
2946
|
+
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
2947
|
+
* begin_message.
|
|
2937
2948
|
*/
|
|
2938
2949
|
export interface RetellLlm {
|
|
2939
2950
|
/**
|
|
@@ -2980,6 +2991,13 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2980
2991
|
| 'gemini-2.5-flash-lite'
|
|
2981
2992
|
| null;
|
|
2982
2993
|
|
|
2994
|
+
/**
|
|
2995
|
+
* If set to true, will use high priority pool with more dedicated resource to
|
|
2996
|
+
* ensure lower and more consistent latency, default to false. This feature usually
|
|
2997
|
+
* comes with a higher cost.
|
|
2998
|
+
*/
|
|
2999
|
+
model_high_priority?: boolean | null;
|
|
3000
|
+
|
|
2983
3001
|
/**
|
|
2984
3002
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
2985
3003
|
* Lower value means more deterministic, while higher value means more random. If
|
|
@@ -2999,6 +3017,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2999
3017
|
* 'agent'.
|
|
3000
3018
|
*/
|
|
3001
3019
|
start_speaker?: 'user' | 'agent';
|
|
3020
|
+
|
|
3021
|
+
/**
|
|
3022
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
3023
|
+
* supported models.
|
|
3024
|
+
*/
|
|
3025
|
+
tool_call_strict_mode?: boolean | null;
|
|
3002
3026
|
}
|
|
3003
3027
|
|
|
3004
3028
|
export namespace RetellLlm {
|
|
@@ -3028,8 +3052,9 @@ export interface CallCreateWebCallParams {
|
|
|
3028
3052
|
agent_id: string;
|
|
3029
3053
|
|
|
3030
3054
|
/**
|
|
3031
|
-
*
|
|
3032
|
-
*
|
|
3055
|
+
* For this particular call, override agent configuration with these settings. This
|
|
3056
|
+
* allows you to customize agent behavior for individual calls without modifying
|
|
3057
|
+
* the base agent.
|
|
3033
3058
|
*/
|
|
3034
3059
|
agent_override?: CallCreateWebCallParams.AgentOverride;
|
|
3035
3060
|
|
|
@@ -3055,8 +3080,9 @@ export interface CallCreateWebCallParams {
|
|
|
3055
3080
|
|
|
3056
3081
|
export namespace CallCreateWebCallParams {
|
|
3057
3082
|
/**
|
|
3058
|
-
*
|
|
3059
|
-
*
|
|
3083
|
+
* For this particular call, override agent configuration with these settings. This
|
|
3084
|
+
* allows you to customize agent behavior for individual calls without modifying
|
|
3085
|
+
* the base agent.
|
|
3060
3086
|
*/
|
|
3061
3087
|
export interface AgentOverride {
|
|
3062
3088
|
/**
|
|
@@ -3068,16 +3094,17 @@ export namespace CallCreateWebCallParams {
|
|
|
3068
3094
|
/**
|
|
3069
3095
|
* Override conversation flow configuration settings. Only applicable when using
|
|
3070
3096
|
* conversation flow as the response engine. Supported attributes - model_choice,
|
|
3071
|
-
* model_temperature, knowledge_base_ids, kb_config,
|
|
3072
|
-
* begin_after_user_silence_ms.
|
|
3097
|
+
* model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
|
|
3098
|
+
* start_speaker, begin_after_user_silence_ms.
|
|
3073
3099
|
*/
|
|
3074
3100
|
conversation_flow?: AgentOverride.ConversationFlow;
|
|
3075
3101
|
|
|
3076
3102
|
/**
|
|
3077
3103
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
3078
3104
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
3079
|
-
* model_temperature,
|
|
3080
|
-
* begin_after_user_silence_ms,
|
|
3105
|
+
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
3106
|
+
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
3107
|
+
* begin_message.
|
|
3081
3108
|
*/
|
|
3082
3109
|
retell_llm?: AgentOverride.RetellLlm;
|
|
3083
3110
|
}
|
|
@@ -3692,8 +3719,8 @@ export namespace CallCreateWebCallParams {
|
|
|
3692
3719
|
/**
|
|
3693
3720
|
* Override conversation flow configuration settings. Only applicable when using
|
|
3694
3721
|
* conversation flow as the response engine. Supported attributes - model_choice,
|
|
3695
|
-
* model_temperature, knowledge_base_ids, kb_config,
|
|
3696
|
-
* begin_after_user_silence_ms.
|
|
3722
|
+
* model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
|
|
3723
|
+
* start_speaker, begin_after_user_silence_ms.
|
|
3697
3724
|
*/
|
|
3698
3725
|
export interface ConversationFlow {
|
|
3699
3726
|
/**
|
|
@@ -3729,6 +3756,12 @@ export namespace CallCreateWebCallParams {
|
|
|
3729
3756
|
* Who starts the conversation - user or agent.
|
|
3730
3757
|
*/
|
|
3731
3758
|
start_speaker?: 'user' | 'agent';
|
|
3759
|
+
|
|
3760
|
+
/**
|
|
3761
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
3762
|
+
* supported models.
|
|
3763
|
+
*/
|
|
3764
|
+
tool_call_strict_mode?: boolean | null;
|
|
3732
3765
|
}
|
|
3733
3766
|
|
|
3734
3767
|
export namespace ConversationFlow {
|
|
@@ -3785,8 +3818,9 @@ export namespace CallCreateWebCallParams {
|
|
|
3785
3818
|
/**
|
|
3786
3819
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
3787
3820
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
3788
|
-
* model_temperature,
|
|
3789
|
-
* begin_after_user_silence_ms,
|
|
3821
|
+
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
3822
|
+
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
3823
|
+
* begin_message.
|
|
3790
3824
|
*/
|
|
3791
3825
|
export interface RetellLlm {
|
|
3792
3826
|
/**
|
|
@@ -3833,6 +3867,13 @@ export namespace CallCreateWebCallParams {
|
|
|
3833
3867
|
| 'gemini-2.5-flash-lite'
|
|
3834
3868
|
| null;
|
|
3835
3869
|
|
|
3870
|
+
/**
|
|
3871
|
+
* If set to true, will use high priority pool with more dedicated resource to
|
|
3872
|
+
* ensure lower and more consistent latency, default to false. This feature usually
|
|
3873
|
+
* comes with a higher cost.
|
|
3874
|
+
*/
|
|
3875
|
+
model_high_priority?: boolean | null;
|
|
3876
|
+
|
|
3836
3877
|
/**
|
|
3837
3878
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
3838
3879
|
* Lower value means more deterministic, while higher value means more random. If
|
|
@@ -3852,6 +3893,12 @@ export namespace CallCreateWebCallParams {
|
|
|
3852
3893
|
* 'agent'.
|
|
3853
3894
|
*/
|
|
3854
3895
|
start_speaker?: 'user' | 'agent';
|
|
3896
|
+
|
|
3897
|
+
/**
|
|
3898
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
3899
|
+
* supported models.
|
|
3900
|
+
*/
|
|
3901
|
+
tool_call_strict_mode?: boolean | null;
|
|
3855
3902
|
}
|
|
3856
3903
|
|
|
3857
3904
|
export namespace RetellLlm {
|
|
@@ -3880,8 +3927,9 @@ export interface CallRegisterPhoneCallParams {
|
|
|
3880
3927
|
agent_id: string;
|
|
3881
3928
|
|
|
3882
3929
|
/**
|
|
3883
|
-
*
|
|
3884
|
-
*
|
|
3930
|
+
* For this particular call, override agent configuration with these settings. This
|
|
3931
|
+
* allows you to customize agent behavior for individual calls without modifying
|
|
3932
|
+
* the base agent.
|
|
3885
3933
|
*/
|
|
3886
3934
|
agent_override?: CallRegisterPhoneCallParams.AgentOverride;
|
|
3887
3935
|
|
|
@@ -3922,8 +3970,9 @@ export interface CallRegisterPhoneCallParams {
|
|
|
3922
3970
|
|
|
3923
3971
|
export namespace CallRegisterPhoneCallParams {
|
|
3924
3972
|
/**
|
|
3925
|
-
*
|
|
3926
|
-
*
|
|
3973
|
+
* For this particular call, override agent configuration with these settings. This
|
|
3974
|
+
* allows you to customize agent behavior for individual calls without modifying
|
|
3975
|
+
* the base agent.
|
|
3927
3976
|
*/
|
|
3928
3977
|
export interface AgentOverride {
|
|
3929
3978
|
/**
|
|
@@ -3935,16 +3984,17 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
3935
3984
|
/**
|
|
3936
3985
|
* Override conversation flow configuration settings. Only applicable when using
|
|
3937
3986
|
* conversation flow as the response engine. Supported attributes - model_choice,
|
|
3938
|
-
* model_temperature, knowledge_base_ids, kb_config,
|
|
3939
|
-
* begin_after_user_silence_ms.
|
|
3987
|
+
* model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
|
|
3988
|
+
* start_speaker, begin_after_user_silence_ms.
|
|
3940
3989
|
*/
|
|
3941
3990
|
conversation_flow?: AgentOverride.ConversationFlow;
|
|
3942
3991
|
|
|
3943
3992
|
/**
|
|
3944
3993
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
3945
3994
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
3946
|
-
* model_temperature,
|
|
3947
|
-
* begin_after_user_silence_ms,
|
|
3995
|
+
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
3996
|
+
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
3997
|
+
* begin_message.
|
|
3948
3998
|
*/
|
|
3949
3999
|
retell_llm?: AgentOverride.RetellLlm;
|
|
3950
4000
|
}
|
|
@@ -4559,8 +4609,8 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4559
4609
|
/**
|
|
4560
4610
|
* Override conversation flow configuration settings. Only applicable when using
|
|
4561
4611
|
* conversation flow as the response engine. Supported attributes - model_choice,
|
|
4562
|
-
* model_temperature, knowledge_base_ids, kb_config,
|
|
4563
|
-
* begin_after_user_silence_ms.
|
|
4612
|
+
* model_temperature, tool_call_strict_mode, knowledge_base_ids, kb_config,
|
|
4613
|
+
* start_speaker, begin_after_user_silence_ms.
|
|
4564
4614
|
*/
|
|
4565
4615
|
export interface ConversationFlow {
|
|
4566
4616
|
/**
|
|
@@ -4596,6 +4646,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4596
4646
|
* Who starts the conversation - user or agent.
|
|
4597
4647
|
*/
|
|
4598
4648
|
start_speaker?: 'user' | 'agent';
|
|
4649
|
+
|
|
4650
|
+
/**
|
|
4651
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
4652
|
+
* supported models.
|
|
4653
|
+
*/
|
|
4654
|
+
tool_call_strict_mode?: boolean | null;
|
|
4599
4655
|
}
|
|
4600
4656
|
|
|
4601
4657
|
export namespace ConversationFlow {
|
|
@@ -4652,8 +4708,9 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4652
4708
|
/**
|
|
4653
4709
|
* Override Retell LLM configuration settings. Only applicable when using Retell
|
|
4654
4710
|
* LLM as the response engine. Supported attributes - model, s2s_model,
|
|
4655
|
-
* model_temperature,
|
|
4656
|
-
* begin_after_user_silence_ms,
|
|
4711
|
+
* model_temperature, model_high_priority, tool_call_strict_mode,
|
|
4712
|
+
* knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms,
|
|
4713
|
+
* begin_message.
|
|
4657
4714
|
*/
|
|
4658
4715
|
export interface RetellLlm {
|
|
4659
4716
|
/**
|
|
@@ -4700,6 +4757,13 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4700
4757
|
| 'gemini-2.5-flash-lite'
|
|
4701
4758
|
| null;
|
|
4702
4759
|
|
|
4760
|
+
/**
|
|
4761
|
+
* If set to true, will use high priority pool with more dedicated resource to
|
|
4762
|
+
* ensure lower and more consistent latency, default to false. This feature usually
|
|
4763
|
+
* comes with a higher cost.
|
|
4764
|
+
*/
|
|
4765
|
+
model_high_priority?: boolean | null;
|
|
4766
|
+
|
|
4703
4767
|
/**
|
|
4704
4768
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
4705
4769
|
* Lower value means more deterministic, while higher value means more random. If
|
|
@@ -4719,6 +4783,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4719
4783
|
* 'agent'.
|
|
4720
4784
|
*/
|
|
4721
4785
|
start_speaker?: 'user' | 'agent';
|
|
4786
|
+
|
|
4787
|
+
/**
|
|
4788
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
4789
|
+
* supported models.
|
|
4790
|
+
*/
|
|
4791
|
+
tool_call_strict_mode?: boolean | null;
|
|
4722
4792
|
}
|
|
4723
4793
|
|
|
4724
4794
|
export namespace RetellLlm {
|