Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix/dataset-retriever-tool-parameter-redundancy (#3418)

Yeuoly25dea232d620
diff --git a/api/core/tools/tool_engine.py b/api/core/tools/tool_engine.py
index 65e7765adc3..f96d7940bda 100644
--- a/api/core/tools/tool_engine.py
+++ b/api/core/tools/tool_engine.py
@@ -38,7 +38,7 @@ class ToolEngine:
if isinstance(tool_parameters, str):
# check if this tool has only one parameter
parameters = [
- parameter for parameter in tool.parameters
+ parameter for parameter in tool.get_runtime_parameters()
if parameter.form == ToolParameter.ToolParameterForm.LLM
]
if parameters and len(parameters) == 1: