From 78e755d45d83fb8b6ec358956726de7ceb7edaf9 Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 27 Jul 2023 15:50:19 -0400 Subject: [PATCH] clean up --- swarms/__init__.py | 2 +- swarms/agents/agent.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/swarms/__init__.py b/swarms/__init__.py index 73d23f14..fcbe3f62 100644 --- a/swarms/__init__.py +++ b/swarms/__init__.py @@ -1,5 +1,5 @@ # from swarms import Swarms, swarm from swarms.swarms import HierarchicalSwarm, swarm -from swarms.workers.worker_ultra_node import WorkerUltraNode, WorkerUltra, worker_ultra_node +# from swarms.workers.worker_ultra_node import WorkerUltraNode, WorkerUltra, worker_ultra_node from swarms.workers.worker_node import WorkerNode, worker_node from swarms.boss.boss_node import BossNode \ No newline at end of file diff --git a/swarms/agents/agent.py b/swarms/agents/agent.py index 490957a2..ca680e60 100644 --- a/swarms/agents/agent.py +++ b/swarms/agents/agent.py @@ -30,6 +30,8 @@ class AgentNodeInitializer: embedding_size: int = 8192, system_prompt: str = None, max_iterations: int = None): + + if not llm or not tools or not vectorstore: logging.error("llm, tools, and vectorstore cannot be None.") raise ValueError("llm, tools, and vectorstore cannot be None.")