retell-sdk 4.58.0 → 4.59.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 +10 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- 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.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 +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- 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 +2 -0
- package/src/resources/batch-call.ts +849 -0
- package/src/resources/call.ts +107 -37
- package/src/resources/chat.ts +54 -0
- package/src/resources/conversation-flow.ts +5 -5
- package/src/resources/index.ts +1 -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 {
|
package/src/resources/chat.ts
CHANGED
|
@@ -32,6 +32,34 @@ export class Chat extends APIResource {
|
|
|
32
32
|
return this._client.get(`/get-chat/${chatId}`, options);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Update metadata and sensitive data storage settings for an existing chat.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const chatResponse = await client.chat.update(
|
|
41
|
+
* 'chat_98c1a2157aa0559144d67bb0729',
|
|
42
|
+
* {
|
|
43
|
+
* data_storage_setting: 'everything',
|
|
44
|
+
* metadata: {
|
|
45
|
+
* customer_id: 'cust_123',
|
|
46
|
+
* notes: 'Follow-up required',
|
|
47
|
+
* },
|
|
48
|
+
* override_dynamic_variables: {
|
|
49
|
+
* additional_discount: '15%',
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
update(
|
|
56
|
+
chatId: string,
|
|
57
|
+
body: ChatUpdateParams,
|
|
58
|
+
options?: Core.RequestOptions,
|
|
59
|
+
): Core.APIPromise<ChatResponse> {
|
|
60
|
+
return this._client.patch(`/update-chat/${chatId}`, { body, ...options });
|
|
61
|
+
}
|
|
62
|
+
|
|
35
63
|
/**
|
|
36
64
|
* List all chats
|
|
37
65
|
*
|
|
@@ -572,6 +600,31 @@ export interface ChatCreateParams {
|
|
|
572
600
|
retell_llm_dynamic_variables?: { [key: string]: unknown };
|
|
573
601
|
}
|
|
574
602
|
|
|
603
|
+
export interface ChatUpdateParams {
|
|
604
|
+
/**
|
|
605
|
+
* Data storage setting for this chat. Overrides the agent's default setting.
|
|
606
|
+
* "everything" stores all data, "basic_attributes_only" stores only metadata.
|
|
607
|
+
* Cannot be downgraded from more restrictive to less restrictive settings.
|
|
608
|
+
*/
|
|
609
|
+
data_storage_setting?: 'everything' | 'basic_attributes_only';
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* An arbitrary object for storage purpose only. You can put anything here like
|
|
613
|
+
* your internal customer id associated with the chat. Not used for processing. You
|
|
614
|
+
* can later get this field from the chat object. Size limited to 50kB max.
|
|
615
|
+
*/
|
|
616
|
+
metadata?: unknown;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Override dynamic varaibles represented as key-value pairs of strings. Setting
|
|
620
|
+
* this will override or add the dynamic variables set in the agent during the
|
|
621
|
+
* call. Only need to set the delta where you want to override, no need to set the
|
|
622
|
+
* entire dynamic variables object. Setting this to null will remove any existing
|
|
623
|
+
* override.
|
|
624
|
+
*/
|
|
625
|
+
override_dynamic_variables?: { [key: string]: string } | null;
|
|
626
|
+
}
|
|
627
|
+
|
|
575
628
|
export interface ChatCreateChatCompletionParams {
|
|
576
629
|
/**
|
|
577
630
|
* Unique id of the chat to create completion.
|
|
@@ -630,6 +683,7 @@ export declare namespace Chat {
|
|
|
630
683
|
type ChatListResponse as ChatListResponse,
|
|
631
684
|
type ChatCreateChatCompletionResponse as ChatCreateChatCompletionResponse,
|
|
632
685
|
type ChatCreateParams as ChatCreateParams,
|
|
686
|
+
type ChatUpdateParams as ChatUpdateParams,
|
|
633
687
|
type ChatCreateChatCompletionParams as ChatCreateChatCompletionParams,
|
|
634
688
|
type ChatCreateSMSChatParams as ChatCreateSMSChatParams,
|
|
635
689
|
};
|
|
@@ -231,8 +231,8 @@ export interface ConversationFlowResponse {
|
|
|
231
231
|
start_speaker?: 'user' | 'agent';
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
|
-
* Whether to use strict mode for tool calls. Only applicable when using
|
|
235
|
-
*
|
|
234
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
235
|
+
* supported models.
|
|
236
236
|
*/
|
|
237
237
|
tool_call_strict_mode?: boolean | null;
|
|
238
238
|
|
|
@@ -7576,8 +7576,8 @@ export interface ConversationFlowCreateParams {
|
|
|
7576
7576
|
start_node_id?: string | null;
|
|
7577
7577
|
|
|
7578
7578
|
/**
|
|
7579
|
-
* Whether to use strict mode for tool calls. Only applicable when using
|
|
7580
|
-
*
|
|
7579
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
7580
|
+
* supported models.
|
|
7581
7581
|
*/
|
|
7582
7582
|
tool_call_strict_mode?: boolean | null;
|
|
7583
7583
|
|
|
@@ -14930,7 +14930,7 @@ export interface ConversationFlowUpdateParams {
|
|
|
14930
14930
|
|
|
14931
14931
|
/**
|
|
14932
14932
|
* Body param: Whether to use strict mode for tool calls. Only applicable when
|
|
14933
|
-
* using
|
|
14933
|
+
* using certain supported models.
|
|
14934
14934
|
*/
|
|
14935
14935
|
tool_call_strict_mode?: boolean | null;
|
|
14936
14936
|
|
package/src/resources/index.ts
CHANGED
package/src/resources/llm.ts
CHANGED
|
@@ -213,11 +213,11 @@ export interface LlmResponse {
|
|
|
213
213
|
| null;
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
|
-
* If set to true, will
|
|
217
|
-
*
|
|
218
|
-
*
|
|
216
|
+
* If set to true, will use high priority pool with more dedicated resource to
|
|
217
|
+
* ensure lower and more consistent latency, default to false. This feature usually
|
|
218
|
+
* comes with a higher cost.
|
|
219
219
|
*/
|
|
220
|
-
model_high_priority?: boolean;
|
|
220
|
+
model_high_priority?: boolean | null;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
@@ -254,12 +254,10 @@ export interface LlmResponse {
|
|
|
254
254
|
states?: Array<LlmResponse.State> | null;
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
* time to save a new tool or change to a tool will be longer as additional
|
|
260
|
-
* processing is needed. Default to false.
|
|
257
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
258
|
+
* supported models.
|
|
261
259
|
*/
|
|
262
|
-
tool_call_strict_mode?: boolean;
|
|
260
|
+
tool_call_strict_mode?: boolean | null;
|
|
263
261
|
|
|
264
262
|
/**
|
|
265
263
|
* The version of the LLM.
|
|
@@ -1834,11 +1832,11 @@ export interface LlmCreateParams {
|
|
|
1834
1832
|
| null;
|
|
1835
1833
|
|
|
1836
1834
|
/**
|
|
1837
|
-
* If set to true, will
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
1835
|
+
* If set to true, will use high priority pool with more dedicated resource to
|
|
1836
|
+
* ensure lower and more consistent latency, default to false. This feature usually
|
|
1837
|
+
* comes with a higher cost.
|
|
1840
1838
|
*/
|
|
1841
|
-
model_high_priority?: boolean;
|
|
1839
|
+
model_high_priority?: boolean | null;
|
|
1842
1840
|
|
|
1843
1841
|
/**
|
|
1844
1842
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
@@ -1875,12 +1873,10 @@ export interface LlmCreateParams {
|
|
|
1875
1873
|
states?: Array<LlmCreateParams.State> | null;
|
|
1876
1874
|
|
|
1877
1875
|
/**
|
|
1878
|
-
*
|
|
1879
|
-
*
|
|
1880
|
-
* time to save a new tool or change to a tool will be longer as additional
|
|
1881
|
-
* processing is needed. Default to false.
|
|
1876
|
+
* Whether to use strict mode for tool calls. Only applicable when using certain
|
|
1877
|
+
* supported models.
|
|
1882
1878
|
*/
|
|
1883
|
-
tool_call_strict_mode?: boolean;
|
|
1879
|
+
tool_call_strict_mode?: boolean | null;
|
|
1884
1880
|
|
|
1885
1881
|
/**
|
|
1886
1882
|
* The version of the LLM.
|
|
@@ -3470,11 +3466,11 @@ export interface LlmUpdateParams {
|
|
|
3470
3466
|
| null;
|
|
3471
3467
|
|
|
3472
3468
|
/**
|
|
3473
|
-
* Body param: If set to true, will
|
|
3474
|
-
*
|
|
3475
|
-
*
|
|
3469
|
+
* Body param: If set to true, will use high priority pool with more dedicated
|
|
3470
|
+
* resource to ensure lower and more consistent latency, default to false. This
|
|
3471
|
+
* feature usually comes with a higher cost.
|
|
3476
3472
|
*/
|
|
3477
|
-
model_high_priority?: boolean;
|
|
3473
|
+
model_high_priority?: boolean | null;
|
|
3478
3474
|
|
|
3479
3475
|
/**
|
|
3480
3476
|
* Body param: If set, will control the randomness of the response. Value ranging
|
|
@@ -3511,12 +3507,10 @@ export interface LlmUpdateParams {
|
|
|
3511
3507
|
states?: Array<LlmUpdateParams.State> | null;
|
|
3512
3508
|
|
|
3513
3509
|
/**
|
|
3514
|
-
* Body param:
|
|
3515
|
-
*
|
|
3516
|
-
* schema. The time to save a new tool or change to a tool will be longer as
|
|
3517
|
-
* additional processing is needed. Default to false.
|
|
3510
|
+
* Body param: Whether to use strict mode for tool calls. Only applicable when
|
|
3511
|
+
* using certain supported models.
|
|
3518
3512
|
*/
|
|
3519
|
-
tool_call_strict_mode?: boolean;
|
|
3513
|
+
tool_call_strict_mode?: boolean | null;
|
|
3520
3514
|
|
|
3521
3515
|
/**
|
|
3522
3516
|
* Body param: The version of the LLM.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.59.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.59.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.59.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|