15 lines
465 B
Python
15 lines
465 B
Python
"""Starter Adapter: Planner module interface (MVP)."""
|
|
from __future__ import annotations
|
|
|
|
from typing import Dict, Any
|
|
|
|
|
|
def plan_action_sequence(plan: Dict[str, Any]) -> Dict[str, Any]:
|
|
"""Very small planner adapter that echoes actions with a timestamp."""
|
|
actions = plan.get("actions", [])
|
|
# Attach a synthetic plan_id for traceability
|
|
plan = dict(plan)
|
|
plan["plan_id"] = plan.get("plan_id", "plan-0")
|
|
plan["echo"] = True
|
|
return plan
|