Spaces:
Runtime error
Runtime error
| 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()] | |