nemoguardrails._compat.langchain_kwargs
nemoguardrails._compat.langchain_kwargs
0.21 -> 0.22 LangChain config migration helper.
Detects LangChain Python-side flags in model.parameters when the
default framework is active and raises a clear error at LLMRails
construction, so a stale 0.21 LangChain config surfaces during init
rather than as an opaque HTTP 400 deep in a guardrail call.
Remove in 0.23.0. After 0.23 any unrecognized parameter is forwarded verbatim to the OpenAI-compatible HTTP client; the wire’s HTTP 400 is the user’s signal to clean up.
Module Contents
Functions
Data
API
Return a list of (model_type, action) tuples for one model.
Raise ValueError if any model carries LangChain Python-side flags.
No-op when the active framework is anything other than default;
LangChain-flavored kwargs are valid on the LangChain framework.