nemoguardrails.manifests.catalog
Catalog construction and discovery for rail manifests and their surfaces.
Collects RailManifestRecord entries for built-in rails discovered under
nemoguardrails/library into an immutable RailCatalog that enforces global
uniqueness of rail names, config keys, flow names, action names, and surface
keys.
Module Contents
Classes
Functions
Data
API
Immutable index of rail manifests keyed by name and surface.
Constructing a catalog validates the combined set of records and raises
ValueError on any collision: duplicate manifest names, duplicate config
keys, flow names, action names, or two rails claiming the same (direction, surface name). It also rejects a surface whose action is not declared in
that surface’s own manifest.
Return rail manifests keyed by manifest name.
Return catalog records keyed by manifest name.
Discover built-in manifests from rail.py modules under the library.
Return the manifest that owns a declared public flow name.
Return declared surfaces, optionally filtered by direction.
Manifest plus provenance recorded in a rail catalog.