@wix/auto_sdk_legends_persona-chats 1.0.19 → 1.0.21
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/build/cjs/index.js +8 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +38 -2
- package/build/cjs/index.typings.js +8 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +20 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +8 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +38 -2
- package/build/es/index.typings.mjs +8 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +20 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +38 -2
- package/build/internal/cjs/meta.d.ts +20 -2
- package/build/internal/es/index.typings.d.mts +38 -2
- package/build/internal/es/meta.d.mts +20 -2
- package/package.json +2 -2
|
@@ -1307,6 +1307,24 @@ interface SendChatMessageStreamedRequest {
|
|
|
1307
1307
|
conversationLanguage?: string | null;
|
|
1308
1308
|
/** Whether a Preview text answer cites the Knowledge items it used, in ChatMessage.citations. Ignored in other chats. */
|
|
1309
1309
|
includeCitations?: boolean;
|
|
1310
|
+
/**
|
|
1311
|
+
* Function call results from the client, answering the function calls the previous request streamed. Read only with
|
|
1312
|
+
* stream_tool_turns.
|
|
1313
|
+
* @maxSize 30
|
|
1314
|
+
*/
|
|
1315
|
+
functionCallResults?: FunctionCallResult[];
|
|
1316
|
+
/**
|
|
1317
|
+
* Tools the client can run, as in SendChatMessageRequest.client_tools. Read only with stream_tool_turns.
|
|
1318
|
+
* @maxSize 32
|
|
1319
|
+
*/
|
|
1320
|
+
clientTools?: ClientToolDefinition[];
|
|
1321
|
+
/**
|
|
1322
|
+
* Stream tool turns: the request gets the tools the unary SendChatMessage would (chat_config.enabled_tool_names), its text
|
|
1323
|
+
* streams as {"content":…} frames while the model writes, and the turn ends with {"functionCalls":[…]} then
|
|
1324
|
+
* {"turn":"awaitingToolResults"}, or with {"turn":"ended","reply":…,"messageId":…}; {"textReset":true} clears the text shown
|
|
1325
|
+
* so far. Off (the default): the stream is as before, text frames only.
|
|
1326
|
+
*/
|
|
1327
|
+
streamToolTurns?: boolean;
|
|
1310
1328
|
}
|
|
1311
1329
|
interface RawHttpResponse {
|
|
1312
1330
|
body?: Uint8Array;
|
|
@@ -2070,8 +2088,8 @@ interface GetPermissionsResponse {
|
|
|
2070
2088
|
inPageVideoEnabled?: boolean;
|
|
2071
2089
|
/**
|
|
2072
2090
|
* Whether the in-page Legend offers the Legend page's booking tools (listBookings, prepareBooking…), which it then runs
|
|
2073
|
-
* through onboarding-service's chat door with the visitor's token:
|
|
2074
|
-
*
|
|
2091
|
+
* through onboarding-service's chat door with the visitor's token: legendsBookingProviders for the Legend owner's account.
|
|
2092
|
+
* The Legend page reads it too. Which of them a visitor gets is still the business's (getServices' allowed actions).
|
|
2075
2093
|
*/
|
|
2076
2094
|
bookingToolsEnabled?: boolean;
|
|
2077
2095
|
}
|
|
@@ -2844,6 +2862,24 @@ interface SendChatMessageStreamedOptions {
|
|
|
2844
2862
|
conversationLanguage?: string | null;
|
|
2845
2863
|
/** Whether a Preview text answer cites the Knowledge items it used, in ChatMessage.citations. Ignored in other chats. */
|
|
2846
2864
|
includeCitations?: boolean;
|
|
2865
|
+
/**
|
|
2866
|
+
* Function call results from the client, answering the function calls the previous request streamed. Read only with
|
|
2867
|
+
* stream_tool_turns.
|
|
2868
|
+
* @maxSize 30
|
|
2869
|
+
*/
|
|
2870
|
+
functionCallResults?: FunctionCallResult[];
|
|
2871
|
+
/**
|
|
2872
|
+
* Tools the client can run, as in SendChatMessageRequest.client_tools. Read only with stream_tool_turns.
|
|
2873
|
+
* @maxSize 32
|
|
2874
|
+
*/
|
|
2875
|
+
clientTools?: ClientToolDefinition[];
|
|
2876
|
+
/**
|
|
2877
|
+
* Stream tool turns: the request gets the tools the unary SendChatMessage would (chat_config.enabled_tool_names), its text
|
|
2878
|
+
* streams as {"content":…} frames while the model writes, and the turn ends with {"functionCalls":[…]} then
|
|
2879
|
+
* {"turn":"awaitingToolResults"}, or with {"turn":"ended","reply":…,"messageId":…}; {"textReset":true} clears the text shown
|
|
2880
|
+
* so far. Off (the default): the stream is as before, text frames only.
|
|
2881
|
+
*/
|
|
2882
|
+
streamToolTurns?: boolean;
|
|
2847
2883
|
}
|
|
2848
2884
|
/**
|
|
2849
2885
|
* Persist a conversation message without running LLM orchestration.
|
|
@@ -1308,6 +1308,24 @@ interface SendChatMessageStreamedRequest {
|
|
|
1308
1308
|
conversationLanguage?: string | null;
|
|
1309
1309
|
/** Whether a Preview text answer cites the Knowledge items it used, in ChatMessage.citations. Ignored in other chats. */
|
|
1310
1310
|
includeCitations?: boolean;
|
|
1311
|
+
/**
|
|
1312
|
+
* Function call results from the client, answering the function calls the previous request streamed. Read only with
|
|
1313
|
+
* stream_tool_turns.
|
|
1314
|
+
* @maxSize 30
|
|
1315
|
+
*/
|
|
1316
|
+
functionCallResults?: FunctionCallResult[];
|
|
1317
|
+
/**
|
|
1318
|
+
* Tools the client can run, as in SendChatMessageRequest.client_tools. Read only with stream_tool_turns.
|
|
1319
|
+
* @maxSize 32
|
|
1320
|
+
*/
|
|
1321
|
+
clientTools?: ClientToolDefinition[];
|
|
1322
|
+
/**
|
|
1323
|
+
* Stream tool turns: the request gets the tools the unary SendChatMessage would (chat_config.enabled_tool_names), its text
|
|
1324
|
+
* streams as {"content":…} frames while the model writes, and the turn ends with {"functionCalls":[…]} then
|
|
1325
|
+
* {"turn":"awaitingToolResults"}, or with {"turn":"ended","reply":…,"messageId":…}; {"textReset":true} clears the text shown
|
|
1326
|
+
* so far. Off (the default): the stream is as before, text frames only.
|
|
1327
|
+
*/
|
|
1328
|
+
streamToolTurns?: boolean;
|
|
1311
1329
|
}
|
|
1312
1330
|
interface RawHttpResponse {
|
|
1313
1331
|
body?: Uint8Array;
|
|
@@ -2071,8 +2089,8 @@ interface GetPermissionsResponse {
|
|
|
2071
2089
|
inPageVideoEnabled?: boolean;
|
|
2072
2090
|
/**
|
|
2073
2091
|
* Whether the in-page Legend offers the Legend page's booking tools (listBookings, prepareBooking…), which it then runs
|
|
2074
|
-
* through onboarding-service's chat door with the visitor's token:
|
|
2075
|
-
*
|
|
2092
|
+
* through onboarding-service's chat door with the visitor's token: legendsBookingProviders for the Legend owner's account.
|
|
2093
|
+
* The Legend page reads it too. Which of them a visitor gets is still the business's (getServices' allowed actions).
|
|
2076
2094
|
*/
|
|
2077
2095
|
bookingToolsEnabled?: boolean;
|
|
2078
2096
|
}
|
|
@@ -1307,6 +1307,24 @@ interface SendChatMessageStreamedRequest {
|
|
|
1307
1307
|
conversationLanguage?: string | null;
|
|
1308
1308
|
/** Whether a Preview text answer cites the Knowledge items it used, in ChatMessage.citations. Ignored in other chats. */
|
|
1309
1309
|
includeCitations?: boolean;
|
|
1310
|
+
/**
|
|
1311
|
+
* Function call results from the client, answering the function calls the previous request streamed. Read only with
|
|
1312
|
+
* stream_tool_turns.
|
|
1313
|
+
* @maxSize 30
|
|
1314
|
+
*/
|
|
1315
|
+
functionCallResults?: FunctionCallResult[];
|
|
1316
|
+
/**
|
|
1317
|
+
* Tools the client can run, as in SendChatMessageRequest.client_tools. Read only with stream_tool_turns.
|
|
1318
|
+
* @maxSize 32
|
|
1319
|
+
*/
|
|
1320
|
+
clientTools?: ClientToolDefinition[];
|
|
1321
|
+
/**
|
|
1322
|
+
* Stream tool turns: the request gets the tools the unary SendChatMessage would (chat_config.enabled_tool_names), its text
|
|
1323
|
+
* streams as {"content":…} frames while the model writes, and the turn ends with {"functionCalls":[…]} then
|
|
1324
|
+
* {"turn":"awaitingToolResults"}, or with {"turn":"ended","reply":…,"messageId":…}; {"textReset":true} clears the text shown
|
|
1325
|
+
* so far. Off (the default): the stream is as before, text frames only.
|
|
1326
|
+
*/
|
|
1327
|
+
streamToolTurns?: boolean;
|
|
1310
1328
|
}
|
|
1311
1329
|
interface RawHttpResponse {
|
|
1312
1330
|
body?: Uint8Array;
|
|
@@ -2070,8 +2088,8 @@ interface GetPermissionsResponse {
|
|
|
2070
2088
|
inPageVideoEnabled?: boolean;
|
|
2071
2089
|
/**
|
|
2072
2090
|
* Whether the in-page Legend offers the Legend page's booking tools (listBookings, prepareBooking…), which it then runs
|
|
2073
|
-
* through onboarding-service's chat door with the visitor's token:
|
|
2074
|
-
*
|
|
2091
|
+
* through onboarding-service's chat door with the visitor's token: legendsBookingProviders for the Legend owner's account.
|
|
2092
|
+
* The Legend page reads it too. Which of them a visitor gets is still the business's (getServices' allowed actions).
|
|
2075
2093
|
*/
|
|
2076
2094
|
bookingToolsEnabled?: boolean;
|
|
2077
2095
|
}
|
|
@@ -2844,6 +2862,24 @@ interface SendChatMessageStreamedOptions {
|
|
|
2844
2862
|
conversationLanguage?: string | null;
|
|
2845
2863
|
/** Whether a Preview text answer cites the Knowledge items it used, in ChatMessage.citations. Ignored in other chats. */
|
|
2846
2864
|
includeCitations?: boolean;
|
|
2865
|
+
/**
|
|
2866
|
+
* Function call results from the client, answering the function calls the previous request streamed. Read only with
|
|
2867
|
+
* stream_tool_turns.
|
|
2868
|
+
* @maxSize 30
|
|
2869
|
+
*/
|
|
2870
|
+
functionCallResults?: FunctionCallResult[];
|
|
2871
|
+
/**
|
|
2872
|
+
* Tools the client can run, as in SendChatMessageRequest.client_tools. Read only with stream_tool_turns.
|
|
2873
|
+
* @maxSize 32
|
|
2874
|
+
*/
|
|
2875
|
+
clientTools?: ClientToolDefinition[];
|
|
2876
|
+
/**
|
|
2877
|
+
* Stream tool turns: the request gets the tools the unary SendChatMessage would (chat_config.enabled_tool_names), its text
|
|
2878
|
+
* streams as {"content":…} frames while the model writes, and the turn ends with {"functionCalls":[…]} then
|
|
2879
|
+
* {"turn":"awaitingToolResults"}, or with {"turn":"ended","reply":…,"messageId":…}; {"textReset":true} clears the text shown
|
|
2880
|
+
* so far. Off (the default): the stream is as before, text frames only.
|
|
2881
|
+
*/
|
|
2882
|
+
streamToolTurns?: boolean;
|
|
2847
2883
|
}
|
|
2848
2884
|
/**
|
|
2849
2885
|
* Persist a conversation message without running LLM orchestration.
|
|
@@ -1308,6 +1308,24 @@ interface SendChatMessageStreamedRequest {
|
|
|
1308
1308
|
conversationLanguage?: string | null;
|
|
1309
1309
|
/** Whether a Preview text answer cites the Knowledge items it used, in ChatMessage.citations. Ignored in other chats. */
|
|
1310
1310
|
includeCitations?: boolean;
|
|
1311
|
+
/**
|
|
1312
|
+
* Function call results from the client, answering the function calls the previous request streamed. Read only with
|
|
1313
|
+
* stream_tool_turns.
|
|
1314
|
+
* @maxSize 30
|
|
1315
|
+
*/
|
|
1316
|
+
functionCallResults?: FunctionCallResult[];
|
|
1317
|
+
/**
|
|
1318
|
+
* Tools the client can run, as in SendChatMessageRequest.client_tools. Read only with stream_tool_turns.
|
|
1319
|
+
* @maxSize 32
|
|
1320
|
+
*/
|
|
1321
|
+
clientTools?: ClientToolDefinition[];
|
|
1322
|
+
/**
|
|
1323
|
+
* Stream tool turns: the request gets the tools the unary SendChatMessage would (chat_config.enabled_tool_names), its text
|
|
1324
|
+
* streams as {"content":…} frames while the model writes, and the turn ends with {"functionCalls":[…]} then
|
|
1325
|
+
* {"turn":"awaitingToolResults"}, or with {"turn":"ended","reply":…,"messageId":…}; {"textReset":true} clears the text shown
|
|
1326
|
+
* so far. Off (the default): the stream is as before, text frames only.
|
|
1327
|
+
*/
|
|
1328
|
+
streamToolTurns?: boolean;
|
|
1311
1329
|
}
|
|
1312
1330
|
interface RawHttpResponse {
|
|
1313
1331
|
body?: Uint8Array;
|
|
@@ -2071,8 +2089,8 @@ interface GetPermissionsResponse {
|
|
|
2071
2089
|
inPageVideoEnabled?: boolean;
|
|
2072
2090
|
/**
|
|
2073
2091
|
* Whether the in-page Legend offers the Legend page's booking tools (listBookings, prepareBooking…), which it then runs
|
|
2074
|
-
* through onboarding-service's chat door with the visitor's token:
|
|
2075
|
-
*
|
|
2092
|
+
* through onboarding-service's chat door with the visitor's token: legendsBookingProviders for the Legend owner's account.
|
|
2093
|
+
* The Legend page reads it too. Which of them a visitor gets is still the business's (getServices' allowed actions).
|
|
2076
2094
|
*/
|
|
2077
2095
|
bookingToolsEnabled?: boolean;
|
|
2078
2096
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_legends_persona-chats",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.legends.persona.v1.chat"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "2cbaa4ee6e5f05d5ab6ea431716578ee4b893ee281974dba39f8a031"
|
|
54
54
|
}
|