Leonydis137 commited on
Commit
2cbe497
·
verified ·
1 Parent(s): 4022f10

Update agents/planner.py

Browse files
Files changed (1) hide show
  1. agents/planner.py +5 -1
agents/planner.py CHANGED
@@ -1 +1,5 @@
1
- def plan_task(goal, memory): return [f'Plan step for: {goal}']
 
 
 
 
 
1
+ from app import llm_model
2
+
3
+ def plan_task(goal, memory=None):
4
+ prompt = f"Plan the steps to accomplish the following goal:\n{goal}"
5
+ return llm_model(prompt).split("\n") # simple split into steps