Skip to content

Commit 4044feb

Browse files
authored
Bugfix/Add tool description to custom assistant (#3727)
add tool description to custom assistant
1 parent 6511fb3 commit 4044feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ const CustomAssistantConfigurePreview = () => {
321321
const docStoreOption = documentStoreOptions.find((ds) => ds.name === selectedDocumentStores[i].id)
322322
// convert to small case and replace space with underscore
323323
const name = (docStoreOption?.label || '').toLowerCase().replace(/ /g, '_')
324-
const desc = docStoreOption?.description || ''
324+
const desc = selectedDocumentStores[i].description || docStoreOption?.description || ''
325325

326326
set(retrieverToolNodeData, 'inputs', {
327327
name,

0 commit comments

Comments
 (0)