WalkXR-AI / Paul-Game-Jam-Phase-2.5 / src / nodes / retrieve_context.py
retrieve_context.py
Raw
"""Node that injects scenario context into the state."""

from src.schemas.state import WalkState


def retrieve_context(state: WalkState) -> dict:
    """Pass-through if scenario is already in state.
    Future: perform RAG retrieval here."""

    scenario = state.get("scenario", {})
    if not scenario:
        return {"error": "No scenario has been configured."}

    return {}