From 4044febfd97d3f30b2291ffdfbec20ac847c1042 Mon Sep 17 00:00:00 2001 From: Henry Heng Date: Tue, 17 Dec 2024 23:39:32 +0000 Subject: [PATCH] Bugfix/Add tool description to custom assistant (#3727) add tool description to custom assistant --- .../views/assistants/custom/CustomAssistantConfigurePreview.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx b/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx index e782ddb4..0c9e5ace 100644 --- a/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx +++ b/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx @@ -321,7 +321,7 @@ const CustomAssistantConfigurePreview = () => { const docStoreOption = documentStoreOptions.find((ds) => ds.name === selectedDocumentStores[i].id) // convert to small case and replace space with underscore const name = (docStoreOption?.label || '').toLowerCase().replace(/ /g, '_') - const desc = docStoreOption?.description || '' + const desc = selectedDocumentStores[i].description || docStoreOption?.description || '' set(retrieverToolNodeData, 'inputs', { name,