nemoguardrails.llm.frameworks.registry
Module Contents
Functions
Data
API
async
Register an LLMFramework instance under name.
Validates two invariants before storing the instance:
- The object structurally matches the
LLMFrameworkProtocol (create_model,register_provider,get_provider_names,reset). - Its
resetattribute is anasynccoroutine function. The registry awaits it directly during shutdown / test teardown.
Raises:
ValueError: a framework is already registered undername.TypeError:frameworkdoes not implement theLLMFrameworkProtocol, or itsresetis not an async coroutine function.