@xpert-ai/chatkit-web-component 0.4.1 → 0.5.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/dist/xpert-chatkit.js
CHANGED
|
@@ -2650,6 +2650,16 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
|
|
|
2650
2650
|
}
|
|
2651
2651
|
return onClientTool({ name, params, id, tool_call_id });
|
|
2652
2652
|
},
|
|
2653
|
+
onToolOutputAttachmentPreview: async (request) => {
|
|
2654
|
+
var _a2, _b2;
|
|
2655
|
+
const onRequestPreview = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.toolOutputAttachments) == null ? void 0 : _b2.onRequestPreview;
|
|
2656
|
+
if (!onRequestPreview) {
|
|
2657
|
+
__privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError2(
|
|
2658
|
+
"No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options."
|
|
2659
|
+
));
|
|
2660
|
+
}
|
|
2661
|
+
return onRequestPreview(request);
|
|
2662
|
+
},
|
|
2653
2663
|
onWorkbenchClientCommand: async ({
|
|
2654
2664
|
commandKey,
|
|
2655
2665
|
payload,
|