Autonomous-AI / src /agents /planner.py
Leonydis137's picture
Update src/agents/planner.py
9906391 verified
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()]