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.

minor fix: fix error messages (#23081)

NeatGuyCoding63b6026e6e41
diff --git a/api/core/workflow/nodes/tool/entities.py b/api/core/workflow/nodes/tool/entities.py
index 4f47fb1efcc..c1cfbb1edc7 100644
--- a/api/core/workflow/nodes/tool/entities.py
+++ b/api/core/workflow/nodes/tool/entities.py
@@ -55,7 +55,7 @@ class ToolNodeData(BaseNodeData, ToolEntity):
if not isinstance(val, str):
raise ValueError("value must be a list of strings")
elif typ == "constant" and not isinstance(value, str | int | float | bool | dict):
- raise ValueError("value must be a string, int, float, or bool")
+ raise ValueError("value must be a string, int, float, bool or dict")
return typ
tool_parameters: dict[str, ToolInput]