INNER CODE UNIT · Python

load_catalog

viticci/shortcuts-playground-plugin · claude/skills/shortcuts-playground/scripts/lookup_action_grounding.py:83

def load_catalog(base: Path | None = None) -> dict[str, Any]:
    path = catalog_path(base)
    with path.open("r", encoding="utf-8") as handle:
        return json.load(handle)


def load_parameter_catalog(base: Path | None = None) -> dict[str, Any]:
    path = parameter_catalog_path(base)
    if not path.exists():
        return {"tools": {}}
    with path.open("r", encoding="utf-8") as handle:
        return json.load(handle)


def load_enum_catalog(base: Path | None = None) -> dict[str, Any]:
    path = enum_catalog_path(base)
    if not path.exists():
        return {"types": {}}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…