NVIDIA-NeMo / NVIDIA-NeMo/Guardrails
bug: LLMRails has not attribute kb when trying to use Nemo Guardrails with Langgraph
@Pouyanpi is already working on this.
Since Mar 30, 2026.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 842
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 25
Description
Did you check docs and existing issues?
- I have read all the NeMo-Guardrails docs
- I have updated the package to the latest version before submitting this issue
- (optional) I have used the develop branch
- I have searched the existing issues of NeMo-Guardrails
Python version (python --version)
Python 3.12.3
Operating system/version
Linux
NeMo-Guardrails version (if you must use a specific version and not the latest
0.16.0 onwards
Describe the bug
AttributeError: 'LLMRails' object has no attribute 'kb'
config = RailsConfig.from_path(guardrail_config_path)
guardrails = RunnableRails(config=config, passthrough=True, verbose=False)
model_with_rails = guardrails | model
response = model_with_rails.invoke([HumanMessage(content=prompt)])
official langchain integration also returning same error
Steps To Reproduce
config = RailsConfig.from_path(guardrail_config_path)
guardrails = RunnableRails(config=config, passthrough=True, verbose=False)
model_with_rails = guardrails | model
response = model_with_rails.invoke([HumanMessage(content=prompt)])
Expected Behavior
It should return a response
Actual Behavior
AttributeError: 'LLMRails' object has no attribute 'kb'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.