From b732c7dfc7039680706ffff6a0a5cf058316a92e Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 6 Jul 2023 14:37:47 -0400 Subject: [PATCH] holding off on tree of thougths prompt for now --- swarms/agents/workers/worker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swarms/agents/workers/worker.py b/swarms/agents/workers/worker.py index 12cde428..ca612f0f 100644 --- a/swarms/agents/workers/worker.py +++ b/swarms/agents/workers/worker.py @@ -38,10 +38,10 @@ class WorkerNode: def run(self, tool_input: Dict[str, Any]) -> str: """Use the tool.""" prompt = tool_input['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 realizes they're wrong at any point then they leave. The question is... - """ - self.agent.run([f"{tree_of_thoughts_prompt}{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 realizes they're wrong at any point then they leave. The question is... + # """ + self.agent.run([f"{prompt}"]) return "Task completed by WorkerNode" worker_tool = Tool(