nemoguardrails.registry
Module Contents
Classes
API
Abstract
items
Add an item to the registry.
Parameters:
name
The name of the item.
item
The item to be added.
Raises:
ValueError: If the item name already exists in the registry.
Get an item by name.
Parameters:
name
The name of the item.
Raises:
KeyError: If the item name does not exist in the registry.
List all items in the registry.
Returns: List[str]
List[str]: A list of all item names.
abstract