back to autogpt

pull/48/head
Kye 1 year ago
parent f0634daf5a
commit 3435f73243

@ -13,7 +13,9 @@ from langchain.docstore import InMemoryDocstore
from langchain.embeddings import OpenAIEmbeddings from langchain.embeddings import OpenAIEmbeddings
from langchain.vectorstores import FAISS 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 ( from swarms.agents.tools.autogpt import (
FileChatMessageHistory, FileChatMessageHistory,
ReadFileTool, ReadFileTool,
@ -96,7 +98,7 @@ class VortexWorkerAgent:
def create_agent(self): def create_agent(self):
logging.info("Creating agent in VortexWorkerAgent") logging.info("Creating agent in VortexWorkerAgent")
try: try:
Agent.from_llm_and_tools( AutoGPT.from_llm_and_tools(
ai_name=self.worker_name, ai_name=self.worker_name,
ai_role=self.worker_role, ai_role=self.worker_role,
tools=self.tools, tools=self.tools,

Loading…
Cancel
Save