Spaces:
Runtime error
Runtime error
Update agents/planner.py
Browse files- agents/planner.py +5 -1
agents/planner.py
CHANGED
|
@@ -1 +1,5 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|