Bugfix/Add tool description to custom assistant (#3727)

add tool description to custom assistant
This commit is contained in:
Henry Heng 2024-12-17 23:39:32 +00:00 committed by GitHub
parent 6511fb3fe1
commit 4044febfd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,