From 390ead71fb058b3bfb728e6f2b18492a546d9cf0 Mon Sep 17 00:00:00 2001 From: Kye Date: Sat, 22 Jul 2023 14:15:29 -0400 Subject: [PATCH] repeated human in the lopp --- setup.py | 2 +- swarms/swarms.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 176c57fb..e746e639 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setup( name = 'swarms', packages = find_packages(exclude=[]), - version = '1.0.3', + version = '1.0.4', license='MIT', description = 'Swarms - Pytorch', author = 'Kye Gomez', diff --git a/swarms/swarms.py b/swarms/swarms.py index 5dcefdeb..2c8a477c 100644 --- a/swarms/swarms.py +++ b/swarms/swarms.py @@ -108,7 +108,7 @@ class Swarms: # Initialize worker node llm = self.initialize_llm(ChatOpenAI) worker_node = WorkerNodeInitializer(llm=llm, tools=worker_tools, vectorstore=vectorstore) - worker_node.create_agent(ai_name=ai_name, ai_role="Assistant", human_in_the_loop=False, search_kwargs={}, human_in_the_loop=self.human_in_the_loop) # add search kwargs + worker_node.create_agent(ai_name=ai_name, ai_role="Assistant", search_kwargs={}, human_in_the_loop=self.human_in_the_loop) # add search kwargs worker_node_tool = Tool(name="WorkerNode AI Agent", func=worker_node.run, description="Input: an objective with a todo list for that objective. Output: your task completed: Please be very clear what the objective and task instructions are. The Swarm worker agent is Useful for when you need to spawn an autonomous agent instance as a worker to accomplish any complex tasks, it can search the internet or write code or spawn child multi-modality models to process and generate images and text or audio and so on") return worker_node_tool