@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.
|
@@ -2654,6 +2654,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2654
2654
|
}
|
|
2655
2655
|
return onClientTool({ name, params, id, tool_call_id });
|
|
2656
2656
|
},
|
|
2657
|
+
onToolOutputAttachmentPreview: async (request) => {
|
|
2658
|
+
var _a2, _b2;
|
|
2659
|
+
const onRequestPreview = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.toolOutputAttachments) == null ? void 0 : _b2.onRequestPreview;
|
|
2660
|
+
if (!onRequestPreview) {
|
|
2661
|
+
__privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError(
|
|
2662
|
+
"No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options."
|
|
2663
|
+
));
|
|
2664
|
+
}
|
|
2665
|
+
return onRequestPreview(request);
|
|
2666
|
+
},
|
|
2657
2667
|
onWorkbenchClientCommand: async ({
|
|
2658
2668
|
commandKey,
|
|
2659
2669
|
payload,
|