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(tools): remove the undefined variable parameter_type (#9908)

zhuhao8bb5b943d7aa
diff --git a/api/core/tools/entities/tool_entities.py b/api/core/tools/entities/tool_entities.py
index 9a31e673d30..d8637fd2cb0 100644
--- a/api/core/tools/entities/tool_entities.py
+++ b/api/core/tools/entities/tool_entities.py
@@ -204,7 +204,7 @@ class ToolParameter(BaseModel):
return str(value)
except Exception:
- raise ValueError(f"The tool parameter value {value} is not in correct type of {parameter_type}.")
+ raise ValueError(f"The tool parameter value {value} is not in correct type.")
class ToolParameterForm(Enum):
SCHEMA = "schema" # should be set while adding tool