From 73cb1addba067f2cdbdb5c040aa7e14b4e85674f Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 25 Aug 2023 15:00:47 -0400 Subject: [PATCH] clean up Former-commit-id: f7452df58fc3060768f898d2eb7454ed9d2438b6 --- example.py | 4 ++-- swarms/workers/worker.py | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/example.py b/example.py index b16c59e6..3c93e9e0 100644 --- a/example.py +++ b/example.py @@ -2,9 +2,9 @@ from swarms import Worker node = Worker( - openai_api_key="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", + openai_api_key="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", ai_name="Optimus Prime", - + ) task = "What were the winning boston marathon times for the past 5 years (ending in 2022)? Generate a table of the year, name, country of origin, and times." diff --git a/swarms/workers/worker.py b/swarms/workers/worker.py index f4f829c5..1443d9a0 100644 --- a/swarms/workers/worker.py +++ b/swarms/workers/worker.py @@ -2,10 +2,9 @@ import faiss from langchain.chat_models import ChatOpenAI from langchain.docstore import InMemoryDocstore from langchain.embeddings import OpenAIEmbeddings +from langchain.tools.human.tool import HumanInputRun from langchain.vectorstores import FAISS from langchain_experimental.autonomous_agents import AutoGPT -from langchain.tools.human.tool import HumanInputRun - from swarms.agents.tools.autogpt import ( ReadFileTool, @@ -73,7 +72,11 @@ class Worker: ReadFileTool(root_dir=ROOT_DIR), process_csv, query_website_tool, - HumanInputRun() + HumanInputRun(), + #zapier + #email + #pdf + # Tool(name="Goal Decomposition Tool", func=todo_chain.run, description="Use Case: Decompose ambitious goals into as many explicit and well defined tasks for an AI agent to follow. Rules and Regulations, don't use this tool too often only in the beginning when the user grants you a mission."), ] if external_tools is not None: self.tools.extend(external_tools)