From d4cd6149ac5d11d525da7630e4a43a8712ed09dc Mon Sep 17 00:00:00 2001 From: Yeuoly <45712896+Yeuoly@users.noreply.github.com> Date: Wed, 29 May 2024 14:52:28 +0800 Subject: [PATCH] fix: incorrect workflow max call depth (#4759) --- api/core/workflow/nodes/tool/tool_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/tool/tool_node.py b/api/core/workflow/nodes/tool/tool_node.py index 6194dd1f5d..2a472fc8d2 100644 --- a/api/core/workflow/nodes/tool/tool_node.py +++ b/api/core/workflow/nodes/tool/tool_node.py @@ -61,7 +61,7 @@ class ToolNode(BaseNode): user_id=self.user_id, workflow_id=self.workflow_id, workflow_tool_callback=DifyWorkflowCallbackHandler(), - workflow_call_depth=self.workflow_call_depth + 1 + workflow_call_depth=self.workflow_call_depth, ) except Exception as e: return NodeRunResult(