Spaces:
Runtime error
Runtime error
File size: 328 Bytes
9906391 7b81a9f |
1 2 3 4 5 6 7 8 9 10 11 12 |
from src.utils.shared import llm_model
def plan_task(goal, memory=None):
prompt = f"""You are an expert planner.
Plan a series of steps to achieve this programming task:
Task: {goal}
Output each step on a new line."""
steps = llm_model(prompt)
return [line.strip() for line in steps.splitlines() if line.strip()]
|