Adapter
Adapter for guardrail components.
NeMoLMAdapter(**kwargs)
Bases: BaseChatModel
LangChain ChatModel that delegates to a gllm_inference LM invoker.
Configuration parameters are expected to be provided via the NeMo Guardrails model config under the model's parameters. At minimum, you should pass:
model: e.g. "openai/gpt-4o" or "azure-openai/gpt-4o-mini".lm_invoker: The LM invoker to use.
Initializes a new instance of the NeMoLMAdapter class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
Any
|
Additional configuration for the language model. |
{}
|