Agent Zero AI framework
fix call_subordinate config copy bug
frdelfac49e854bfe
diff --git a/python/tools/call_subordinate.py b/python/tools/call_subordinate.pyindex 1a15f6dea..e56f91141 100644--- a/python/tools/call_subordinate.py+++ b/python/tools/call_subordinate.py@@ -1,5 +1,6 @@from agent import Agent, UserMessagefrom python.helpers.tool import Tool, Response+import copyclass Delegation(Tool):@@ -11,7 +12,7 @@ class Delegation(Tool):or str(reset).lower().strip() == "true"):# crate agent- sub = Agent(self.agent.number + 1, self.agent.config, self.agent.context)+ sub = Agent(self.agent.number + 1, copy.deepcopy(self.agent.config), self.agent.context)# register superior/subordinatesub.set_data(Agent.DATA_NAME_SUPERIOR, self.agent)self.agent.set_data(Agent.DATA_NAME_SUBORDINATE, sub)