Spaces:
Runtime error
Runtime error
Update agents/planner.py
Browse files- agents/planner.py +6 -14
agents/planner.py
CHANGED
@@ -1,16 +1,8 @@
|
|
1 |
def plan_task(goal, memory):
|
2 |
-
plan = []
|
3 |
if "website" in goal:
|
4 |
-
|
5 |
-
"Create
|
6 |
-
"Add styling
|
7 |
-
"
|
8 |
-
|
9 |
-
|
10 |
-
else:
|
11 |
-
plan.extend([
|
12 |
-
f"Understand the goal: {goal}",
|
13 |
-
"Find the best method to solve it",
|
14 |
-
"Execute and gather result"
|
15 |
-
])
|
16 |
-
return plan
|
|
|
1 |
def plan_task(goal, memory):
|
|
|
2 |
if "website" in goal:
|
3 |
+
return [
|
4 |
+
"Create HTML structure",
|
5 |
+
"Add CSS styling",
|
6 |
+
"Test with sample data"
|
7 |
+
]
|
8 |
+
return [f"Perform goal: {goal}"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|