holding off on tree of thougths prompt for now

pull/160/head
Kye 2 years ago
parent e1b5f9bf16
commit 2dce7e3d04

@ -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(

Loading…
Cancel
Save