From e4af883cf26c5b38d614a3c86b4fd57b50b380cb Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Tue, 24 Jun 2025 19:47:57 +0800 Subject: [PATCH] chore(api): fix the issue that `version` method is not defined for `AgentNode` --- api/core/workflow/nodes/agent/agent_node.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/core/workflow/nodes/agent/agent_node.py b/api/core/workflow/nodes/agent/agent_node.py index 22c564c1fc..2f28363955 100644 --- a/api/core/workflow/nodes/agent/agent_node.py +++ b/api/core/workflow/nodes/agent/agent_node.py @@ -39,6 +39,10 @@ class AgentNode(ToolNode): _node_data_cls = AgentNodeData # type: ignore _node_type = NodeType.AGENT + @classmethod + def version(cls) -> str: + return "1" + def _run(self) -> Generator: """ Run the agent node