clean up run swarms

pull/160/head
Kye 2 years ago
parent f61232cd98
commit 97af51f136

@ -74,8 +74,7 @@ class Swarms:
boss_node = self.initialize_boss_node(vectorstore, worker_node) boss_node = self.initialize_boss_node(vectorstore, worker_node)
task = boss_node.create_task(objective) task = boss_node.create_task(objective)
boss_node.execute_task(task) return boss_node.execute_task(task)
worker_node.run_agent(objective)
except Exception as e: except Exception as e:
logging.error(f"An error occurred in run_swarms: {e}") logging.error(f"An error occurred in run_swarms: {e}")
raise raise

Loading…
Cancel
Save