iframe-pubsub 1.0.19 → 1.0.20
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/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +12 -0
- package/dist/index.mjs +12 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -98,6 +98,7 @@ declare enum AIChatNameEnum {
|
|
|
98
98
|
CONFIRM_ACTION = "confirmAction",
|
|
99
99
|
SHOW_OPTIONS = "showOptions",
|
|
100
100
|
SEND_CHAT_PROMPT = "sendChatPrompt",
|
|
101
|
+
REPLAY_LAST_PROMPT_WITH_TOOL = "replayLastPromptWithTool",
|
|
101
102
|
OPEN_INTERCOM = "openIntercom",
|
|
102
103
|
DEFAULT = "default"
|
|
103
104
|
}
|
|
@@ -186,6 +187,12 @@ declare class AIChatClient extends Client {
|
|
|
186
187
|
* @param prompt The prompt to send.
|
|
187
188
|
*/
|
|
188
189
|
sendChatPrompt(prompt: string): void;
|
|
190
|
+
/**
|
|
191
|
+
* Force AI to extract provided information from conversation to have detailed information before moving forward.
|
|
192
|
+
*
|
|
193
|
+
* @returns An async actions with a tool_choice should be returned.
|
|
194
|
+
*/
|
|
195
|
+
replayLastPromptWithTool(): void;
|
|
189
196
|
/**
|
|
190
197
|
* Show an unknown error message in the AI Chat component.
|
|
191
198
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ declare enum AIChatNameEnum {
|
|
|
98
98
|
CONFIRM_ACTION = "confirmAction",
|
|
99
99
|
SHOW_OPTIONS = "showOptions",
|
|
100
100
|
SEND_CHAT_PROMPT = "sendChatPrompt",
|
|
101
|
+
REPLAY_LAST_PROMPT_WITH_TOOL = "replayLastPromptWithTool",
|
|
101
102
|
OPEN_INTERCOM = "openIntercom",
|
|
102
103
|
DEFAULT = "default"
|
|
103
104
|
}
|
|
@@ -186,6 +187,12 @@ declare class AIChatClient extends Client {
|
|
|
186
187
|
* @param prompt The prompt to send.
|
|
187
188
|
*/
|
|
188
189
|
sendChatPrompt(prompt: string): void;
|
|
190
|
+
/**
|
|
191
|
+
* Force AI to extract provided information from conversation to have detailed information before moving forward.
|
|
192
|
+
*
|
|
193
|
+
* @returns An async actions with a tool_choice should be returned.
|
|
194
|
+
*/
|
|
195
|
+
replayLastPromptWithTool(): void;
|
|
189
196
|
/**
|
|
190
197
|
* Show an unknown error message in the AI Chat component.
|
|
191
198
|
*/
|
package/dist/index.js
CHANGED
|
@@ -332,6 +332,7 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
|
|
|
332
332
|
AIChatNameEnum2["CONFIRM_ACTION"] = "confirmAction";
|
|
333
333
|
AIChatNameEnum2["SHOW_OPTIONS"] = "showOptions";
|
|
334
334
|
AIChatNameEnum2["SEND_CHAT_PROMPT"] = "sendChatPrompt";
|
|
335
|
+
AIChatNameEnum2["REPLAY_LAST_PROMPT_WITH_TOOL"] = "replayLastPromptWithTool";
|
|
335
336
|
AIChatNameEnum2["OPEN_INTERCOM"] = "openIntercom";
|
|
336
337
|
AIChatNameEnum2["DEFAULT"] = "default";
|
|
337
338
|
return AIChatNameEnum2;
|
|
@@ -488,6 +489,17 @@ var AIChatClient = class extends Client {
|
|
|
488
489
|
}
|
|
489
490
|
});
|
|
490
491
|
}
|
|
492
|
+
/**
|
|
493
|
+
* Force AI to extract provided information from conversation to have detailed information before moving forward.
|
|
494
|
+
*
|
|
495
|
+
* @returns An async actions with a tool_choice should be returned.
|
|
496
|
+
*/
|
|
497
|
+
replayLastPromptWithTool() {
|
|
498
|
+
this.sendMessage(this.targetAIChatClientId, {
|
|
499
|
+
type: "aichat" /* AI_CHAT_CLIENT_ID */,
|
|
500
|
+
name: "replayLastPromptWithTool" /* REPLAY_LAST_PROMPT_WITH_TOOL */
|
|
501
|
+
});
|
|
502
|
+
}
|
|
491
503
|
/**
|
|
492
504
|
* Show an unknown error message in the AI Chat component.
|
|
493
505
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -305,6 +305,7 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
|
|
|
305
305
|
AIChatNameEnum2["CONFIRM_ACTION"] = "confirmAction";
|
|
306
306
|
AIChatNameEnum2["SHOW_OPTIONS"] = "showOptions";
|
|
307
307
|
AIChatNameEnum2["SEND_CHAT_PROMPT"] = "sendChatPrompt";
|
|
308
|
+
AIChatNameEnum2["REPLAY_LAST_PROMPT_WITH_TOOL"] = "replayLastPromptWithTool";
|
|
308
309
|
AIChatNameEnum2["OPEN_INTERCOM"] = "openIntercom";
|
|
309
310
|
AIChatNameEnum2["DEFAULT"] = "default";
|
|
310
311
|
return AIChatNameEnum2;
|
|
@@ -461,6 +462,17 @@ var AIChatClient = class extends Client {
|
|
|
461
462
|
}
|
|
462
463
|
});
|
|
463
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* Force AI to extract provided information from conversation to have detailed information before moving forward.
|
|
467
|
+
*
|
|
468
|
+
* @returns An async actions with a tool_choice should be returned.
|
|
469
|
+
*/
|
|
470
|
+
replayLastPromptWithTool() {
|
|
471
|
+
this.sendMessage(this.targetAIChatClientId, {
|
|
472
|
+
type: "aichat" /* AI_CHAT_CLIENT_ID */,
|
|
473
|
+
name: "replayLastPromptWithTool" /* REPLAY_LAST_PROMPT_WITH_TOOL */
|
|
474
|
+
});
|
|
475
|
+
}
|
|
464
476
|
/**
|
|
465
477
|
* Show an unknown error message in the AI Chat component.
|
|
466
478
|
*/
|