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: add support for FILE type in ToolParameterConverter (#5578)

-LAN-45a3ea6fed5e
diff --git a/api/core/tools/utils/tool_parameter_converter.py b/api/core/tools/utils/tool_parameter_converter.py
index 55535be930e..0c4ec00ec60 100644
--- a/api/core/tools/utils/tool_parameter_converter.py
+++ b/api/core/tools/utils/tool_parameter_converter.py
@@ -58,7 +58,8 @@ class ToolParameterConverter:
return float(value)
else:
return int(value)
-
+ case ToolParameter.ToolParameterType.FILE:
+ return value
case _:
return str(value)