diff --git a/swarms/agents/swarms.py b/swarms/agents/swarms.py index ac6a05d9..7e0ceb73 100644 --- a/swarms/agents/swarms.py +++ b/swarms/agents/swarms.py @@ -21,8 +21,8 @@ from langchain.agents import ZeroShotAgent, Tool, AgentExecutor from langchain import OpenAI, SerpAPIWrapper, LLMChain -from swarms.agents.workers.auto_agent import agent_worker -worker_agent = agent_worker +from swarms.agents.workers.auto_agent import worker_agent +worker_agent = worker_agent # Define your embedding model embeddings_model = OpenAIEmbeddings() diff --git a/swarms/agents/workers/auto_agent.py b/swarms/agents/workers/auto_agent.py index aa204d52..a62082e1 100644 --- a/swarms/agents/workers/auto_agent.py +++ b/swarms/agents/workers/auto_agent.py @@ -101,34 +101,34 @@ agent_worker = AutoGPT.from_llm_and_tools( agent_worker.chain.verbose = True +worker_agent = agent_worker +# tree_of_thoughts_prompt = """ -tree_of_thoughts_prompt = """ +# Imagine three different experts are answering this question. All experts will write down each chain of thought of each step of their thinking, then share it with the group. Then all experts will go on to the next step, etc. If any expert realises they're wrong at any point then they leave. The question is... -Imagine three different experts are answering this question. All experts will write down each chain of thought of each step of their thinking, then share it with the group. Then all experts will go on to the next step, etc. If any expert realises they're wrong at any point then they leave. The question is... +# """ -""" +# #Input problem +# input_problem = """ -#Input problem -input_problem = """ +# Input: 2 8 8 14 +# Possible next steps: +# 2 + 8 = 10 (left: 8 10 14) +# 8 / 2 = 4 (left: 4 8 14) +# 14 + 2 = 16 (left: 8 8 16) +# 2 * 8 = 16 (left: 8 14 16) +# 8 - 2 = 6 (left: 6 8 14) +# 14 - 8 = 6 (left: 2 6 8) +# 14 / 2 = 7 (left: 7 8 8) +# 14 - 2 = 12 (left: 8 8 12) +# Input: use 4 numbers and basic arithmetic operations (+-*/) to obtain 24 in 1 equation +# Possible next steps: -Input: 2 8 8 14 -Possible next steps: -2 + 8 = 10 (left: 8 10 14) -8 / 2 = 4 (left: 4 8 14) -14 + 2 = 16 (left: 8 8 16) -2 * 8 = 16 (left: 8 14 16) -8 - 2 = 6 (left: 6 8 14) -14 - 8 = 6 (left: 2 6 8) -14 / 2 = 7 (left: 7 8 8) -14 - 2 = 12 (left: 8 8 12) -Input: use 4 numbers and basic arithmetic operations (+-*/) to obtain 24 in 1 equation -Possible next steps: - -""" +# """ # agent.run([f"{tree_of_thoughts_prompt} {input_problem}"]) \ No newline at end of file