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: incorrect parameters transforming while validating (#4928)
Yeuoly52ec152dd344
diff --git a/api/core/tools/tool/tool.py b/api/core/tools/tool/tool.pyindex 290d80c7d10..c6164454eae 100644--- a/api/core/tools/tool/tool.py+++ b/api/core/tools/tool/tool.py@@ -1,4 +1,5 @@from abc import ABC, abstractmethod+from copy import deepcopyfrom enum import Enumfrom typing import Any, Optional, Union@@ -229,8 +230,13 @@ class Tool(BaseModel, ABC):"""Transform tool parameters type"""- return {p.name: ToolParameterConverter.cast_parameter_by_type(tool_parameters[p.name], p.type)- for p in self.parameters if p.name in tool_parameters}+ # Temp fix for the issue that the tool parameters will be converted to empty while validating the credentials+ result = deepcopy(tool_parameters)+ for parameter in self.parameters:+ if parameter.name in tool_parameters:+ result[parameter.name] = ToolParameterConverter.cast_parameter_by_type(tool_parameters[parameter.name], parameter.type)++ return result@abstractmethoddef _invoke(self, user_id: str, tool_parameters: dict[str, Any]) -> Union[ToolInvokeMessage, list[ToolInvokeMessage]]: