From 3435f732439e539b4bcc8f72f20a3dec6d2d297d Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 11 Aug 2023 22:16:36 -0400 Subject: [PATCH] back to autogpt --- swarms/workers/vortex_worker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/swarms/workers/vortex_worker.py b/swarms/workers/vortex_worker.py index 95293cb4..5c1b4302 100644 --- a/swarms/workers/vortex_worker.py +++ b/swarms/workers/vortex_worker.py @@ -13,7 +13,9 @@ from langchain.docstore import InMemoryDocstore from langchain.embeddings import OpenAIEmbeddings from langchain.vectorstores import FAISS -from swarms.agents.base import Agent +# from swarms.agents.base import Agent +from langchain_experimental.autonomous_agents import AutoGPT + from swarms.agents.tools.autogpt import ( FileChatMessageHistory, ReadFileTool, @@ -96,7 +98,7 @@ class VortexWorkerAgent: def create_agent(self): logging.info("Creating agent in VortexWorkerAgent") try: - Agent.from_llm_and_tools( + AutoGPT.from_llm_and_tools( ai_name=self.worker_name, ai_role=self.worker_role, tools=self.tools,