Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: remove - in dataset retriever tool name (#3381)
Yeuoly44448ba68dab
diff --git a/api/core/tools/tool/dataset_retriever/dataset_multi_retriever_tool.py b/api/core/tools/tool/dataset_retriever/dataset_multi_retriever_tool.pyindex d9934acff9c..e977772fd18 100644--- a/api/core/tools/tool/dataset_retriever/dataset_multi_retriever_tool.py+++ b/api/core/tools/tool/dataset_retriever/dataset_multi_retriever_tool.py@@ -31,7 +31,7 @@ class DatasetMultiRetrieverToolInput(BaseModel):class DatasetMultiRetrieverTool(BaseTool):"""Tool for querying multi dataset."""- name: str = "dataset-"+ name: str = "dataset_"args_schema: type[BaseModel] = DatasetMultiRetrieverToolInputdescription: str = "dataset multi retriever and rerank. "tenant_id: str@@ -47,7 +47,7 @@ class DatasetMultiRetrieverTool(BaseTool):@classmethoddef from_dataset(cls, dataset_ids: list[str], tenant_id: str, **kwargs):return cls(- name=f'dataset-{tenant_id}',+ name=f"dataset_{tenant_id.replace('-', '_')}",tenant_id=tenant_id,dataset_ids=dataset_ids,**kwargsdiff --git a/api/core/tools/tool/dataset_retriever/dataset_retriever_tool.py b/api/core/tools/tool/dataset_retriever/dataset_retriever_tool.pyindex 13331d981bb..b99e392de01 100644--- a/api/core/tools/tool/dataset_retriever/dataset_retriever_tool.py+++ b/api/core/tools/tool/dataset_retriever/dataset_retriever_tool.py@@ -46,7 +46,7 @@ class DatasetRetrieverTool(BaseTool):description = description.replace('\n', '').replace('\r', '')return cls(- name=f'dataset-{dataset.id}',+ name=f"dataset_{dataset.id.replace('-', '_')}",tenant_id=dataset.tenant_id,dataset_id=dataset.id,description=description,diff --git a/web/app/components/app/chat/thought/tool.tsx b/web/app/components/app/chat/thought/tool.tsxindex 322df438b48..324fcde7bca 100644--- a/web/app/components/app/chat/thought/tool.tsx+++ b/web/app/components/app/chat/thought/tool.tsx@@ -19,7 +19,7 @@ type Props = {}const getIcon = (toolName: string, allToolIcons: Record<string, string | Emoji>) => {- if (toolName.startsWith('dataset-'))+ if (toolName.startsWith('dataset_'))return <DataSetIcon className='shrink-0'></DataSetIcon>const icon = allToolIcons[toolName]if (!icon)@@ -50,9 +50,9 @@ const Tool: FC<Props> = ({}) => {const { t } = useTranslation()const { name, input, isFinished, output } = payload- const toolName = name.startsWith('dataset-') ? t('dataset.knowledge') : name+ const toolName = name.startsWith('dataset_') ? t('dataset.knowledge') : nameconst [isShowDetail, setIsShowDetail] = useState(false)- const icon = getIcon(toolName, allToolIcons) as any+ const icon = getIcon(name, allToolIcons) as anyreturn (<div><div className={cn(!isShowDetail && 'shadow-sm', !isShowDetail && 'inline-block', 'max-w-full overflow-x-auto bg-white rounded-md')}>