nemoguardrails.rails.llm.rails_config_fields
nemoguardrails.rails.llm.rails_config_fields
Module Contents
Classes
Functions
Data
API
Clear projected config fields so the next read reprojects from the manifests.
Test seam only; production never calls this. The in-progress flag is reset too so a projection aborted by the re-entrancy guard cannot stay latched and poison later reads.
Build the RailsConfigData model from the projected config fields.
config.py calls this at import time and bakes the result into a module-level class and all, so the field set cannot be varied by mutating discovery state at runtime. A test needing a different built-in field set must install substitute manifests, call the reset* seams, then importlib.reload the config module.
Project the rails.config field specs from the rail manifests once and cache them.
Like discover_rail_manifests, the explicit two-flag guard must stay: functools.cache cannot express the in-progress re-entrancy check.