From 976fbd7b47fad67ff7f6afbf0faf8f398ccbcfa1 Mon Sep 17 00:00:00 2001 From: Kye Date: Sun, 16 Jul 2023 23:00:20 -0400 Subject: [PATCH] tools lists Former-commit-id: 510f82d6caad466fed50dd4744474e4a9e151a00 --- swarms/agents/workers/worker_agent_ultra.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarms/agents/workers/worker_agent_ultra.py b/swarms/agents/workers/worker_agent_ultra.py index 2502f771..1e4ee56c 100644 --- a/swarms/agents/workers/worker_agent_ultra.py +++ b/swarms/agents/workers/worker_agent_ultra.py @@ -43,11 +43,11 @@ class WorkerUltraNode: def create_agent(self, ai_name="Swarm Worker AI Assistant", ai_role="Assistant", human_in_the_loop=False, search_kwargs={}, verbose=False): logging.info("Creating agent in WorkerNode") try: - tools_dict = {type(tool).__name__: tool for tool in self.toolsets} + tools_list = list(self.toolsets.values()) self.agent = AutoGPT.from_llm_and_tools( ai_name=ai_name, ai_role=ai_role, - tools=tools_dict, # Pass the dictionary instead of the list + tools=tools_list, # Pass the dictionary instead of the list llm=self.llm, memory=self.vectorstore.as_retriever(search_kwargs=search_kwargs), human_in_the_loop=human_in_the_loop,