From a779393220c0b66e100d1cd1ffffcc2bac723c1f Mon Sep 17 00:00:00 2001 From: Kye Date: Wed, 9 Aug 2023 10:29:56 -0400 Subject: [PATCH] autogpt mapping --- setup.py | 3 +-- swarms/boss/boss_node.py | 4 +++- swarms/workers/worker_node.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 05190a3b..c8fc61a9 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,9 @@ from setuptools import setup, find_packages -## setup( name = 'swarms', packages = find_packages(exclude=[]), - version = '1.1.9', + version = '1.2.0', license='MIT', description = 'Swarms - Pytorch', author = 'Kye Gomez', diff --git a/swarms/boss/boss_node.py b/swarms/boss/boss_node.py index 1bf26831..e36fa07c 100644 --- a/swarms/boss/boss_node.py +++ b/swarms/boss/boss_node.py @@ -7,7 +7,9 @@ from langchain import LLMChain, OpenAI, PromptTemplate from langchain.agents import AgentExecutor, Tool, ZeroShotAgent from langchain.docstore import InMemoryDocstore from langchain.embeddings import OpenAIEmbeddings -from langchain.experimental import BabyAGI + +from langchain_experimental.autonomous_agents import BabyAGI + from langchain.vectorstores import FAISS from pydantic import ValidationError diff --git a/swarms/workers/worker_node.py b/swarms/workers/worker_node.py index 49367f9d..e066ef6c 100644 --- a/swarms/workers/worker_node.py +++ b/swarms/workers/worker_node.py @@ -7,7 +7,7 @@ from langchain.chat_models import ChatOpenAI from langchain.docstore import InMemoryDocstore from langchain.embeddings import OpenAIEmbeddings # TODO: refactor to Agent class -from langchain.experimental.autonomous_agents.autogpt.agent import AutoGPT +from langchain_experimental.autonomous_agents import AutoGPT from langchain.vectorstores import FAISS from swarms.agents.tools.autogpt import (