nemoguardrails.colang.v1_0.runtime.utils
nemoguardrails.colang.v1_0.runtime.utils
Module Contents
Classes
API
Bases: dict
A simple utility class that allows accessing dictionary members as attributes.
This class inherits from the built-in dict class and overrides the __getattr__
and __setattr__ methods to provide attribute-style access to dictionary keys.
Example:
Note:
- If a dictionary value is itself a dictionary, it is converted to an
AttributeDict. - If a dictionary value is a list of dictionaries, the list is converted to a list of
AttributeDictobjects.