Skip to main content
Version: Next

mellea.backends.adapters.capabilities

Advisory registry of known adapter capabilities.

:data:KNOWN_CAPABILITIES is a frozenset of capability strings derived from the adapter function catalog, plus the decision capability. It is advisory only: callers are warned (not rejected) when a capability outside this set is used, so that custom adapters and pre-release adapter functions are not blocked.

Deriving from the catalog (rather than hand-copying) keeps the two registries in sync automatically; adding a new entry to catalog.py automatically registers its :attr:~mellea.backends.adapters.catalog.IntrinsicsCatalogEntry.effective_capability as a known capability. Capabilities that ship in Granite Switch checkpoints (the one-token decision capability) have no catalog entry; the catalog pins Hub repos for local-file adapters; so it is unioned in directly.