From 089dadb7a1d11430405b453fdcabb578150798ea Mon Sep 17 00:00:00 2001 From: Weirui Kuang <39145382+rayrayraykk@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:56:00 +0800 Subject: [PATCH] update (#60) --- src/agentscope/web/workstation/workflow_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agentscope/web/workstation/workflow_node.py b/src/agentscope/web/workstation/workflow_node.py index 491dfd65e..412f13773 100644 --- a/src/agentscope/web/workstation/workflow_node.py +++ b/src/agentscope/web/workstation/workflow_node.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Workflow node opt.""" import ast +import copy from abc import ABC, abstractmethod from enum import IntEnum from functools import partial @@ -93,7 +94,7 @@ def __init__( self.only_compile = only_compile self.node_id = node_id - self.opt_kwargs = opt_kwargs + self.opt_kwargs = copy.deepcopy(opt_kwargs) self.source_kwargs = source_kwargs self.dep_opts = dep_opts self.dep_vars = [opt.var_name for opt in self.dep_opts]