INNER CODE UNIT · Python

global_preferences_path

Dsadd4/AgentFigureGallery · agentfiguregallery/server.py:82

def global_preferences_path(root: Path) -> Path:
    return root / "data" / "reference_global_preferences.json"


def initial_global_preferences() -> dict:
    return {
        "schema_version": "agentfiguregallery.reference_global_preferences.v1",
        "scope": {"level": "global"},
        "liked": [],
        "rejected": [],
        "items": {},
        "notes": {},
        "updated_at": utc_now(),
    }


def load_global_preferences(root: Path) -> dict:
    prefs = read_json(global_preferences_path(root), initial_global_preferences())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…