AI GLOSSARY · SAFETY, ETHICS AND GOVERNANCE
NeMo Guardrails
Definition
NeMo Guardrails is NVIDIA's open-source library for adding programmable safety and security checks, called rails, to applications built on large language models and agents. It is a software toolkit, not a model.
Also called: NVIDIA NeMo Guardrails, NeMo Guardrails LLM, NeMo Guardrails library, Colang guardrails.
In plain language
A chatbot built on a language model can drift off topic, repeat private data or follow a malicious instruction. NeMo Guardrails is a free library from NVIDIA that lets developers put checkpoints around the model, in the way a security desk checks visitors going in and out of a building. A check can screen what a user types, screen what the model replies, keep a conversation to allowed subjects, or look for personal data. The limit is that the rules are only as good as the person who writes them. It helps reduce risk; it does not remove it.
Technical definition
NVIDIA's documentation describes NeMo Guardrails as an open-source library for applying programmable safety and security controls to LLM and agentic applications, and defines rails as checks run at configured points in an application or agent workflow. The docs index names dialog and topical rails, PII masking, and checks on tool calls and tool results. Configuration uses YAML files plus Colang, a language for conversational flows and guardrail logic, and custom actions can be Python functions. The 2023 paper (arXiv 2310.10501, EMNLP 2023 demo track) describes a runtime inspired by dialogue management, with rails independent of the underlying LLM.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Skill by Skill Almanac · Illustrative, not executed
coding-agent-guardrails 60/100 · grade CScored · Method v0.2 · How we score
- What you see
- A pre-action checklist for coding agents plus a read-only audit of a repo's guardrail setup.
- Why it exercises the concept
- It applies the same idea of checks placed around an agent's actions to a coding agent, where NeMo Guardrails targets applications you build on a model.
Guide · Illustrative, not executed
Autonomous AI Agents: Risks and Guardrails
- What you see
- What goes wrong when an AI agent acts unattended, and the limits, approvals and stopping rules that contain it.
- Why it exercises the concept
- It explains the risks that tool-call and output checks in a library like NeMo Guardrails are meant to contain.
Skill by Skill Almanac · Illustrative, not executed
prompt-writing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Writes and lints LLM prompts with a fixed structure, injection rules and a numeric test plan.
- Why it exercises the concept
- Prompt-level injection rules are one layer of defence. NVIDIA's docs describe input rails as a separate layer that screens user input for jailbreak attempts.
How it shows up when you use agents
You meet NeMo Guardrails when you build an assistant or agent on top of a model and need rules that do not live inside the prompt. A developer writes a configuration of rails, and the library runs them at set points: before the user's message reaches the model, after the model replies, after retrieval in a RAG pipeline, and around tool calls. NVIDIA's documentation notes that supported rail types depend on the runtime engine, and that tool-call and tool-result rails require a specific engine.
What breaks when it is misunderstood: a team installs a library of guardrails and treats the application as safe. IBM describes guardrails as layered across data, model, application and infrastructure, not a one-off control, so rails are one layer. Rails also need testing. A rule that blocks a jailbreak phrase in your tests may miss a reworded attack, and a rail that is too strict can block valid requests.
Next actions: list the specific failures you care about, such as off-topic answers, personal data in replies or unsafe tool calls, write a rail for each, and try them with adversarial prompts as part of red teaming. For a coding agent in a repo, the permission settings of your tool and a checklist like the one above fit better than this library.
Common confusions
- NeMo Guardrails versus a safety-trained model. The paper contrasts its approach with guardrails built into a model during training, for example through alignment. NeMo Guardrails works at runtime around the model and is independent of the underlying LLM.
- NeMo Guardrails versus guardrails in general. Guardrails is the broad idea. NeMo Guardrails is one open-source implementation of it.
- Rails versus the prompt. A system prompt asks the model to behave. A rail is a check run by the application at a configured point, so it does not depend on the model choosing to comply.
- Myth: rails make an application compliant with a law. IBM says guardrails can help meet requirements such as the EU AI Act. IBM says guardrails support compliance work. See AI regulation.
Related terms
More in Safety, ethics and governance
Sources
- NVIDIA NeMo Guardrails documentation, NVIDIA (accessed 2026-11-24)
- NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails, arXiv (accessed 2026-11-24)
- What are AI guardrails?, IBM (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .
This entry is still in review, so it is not listed in search engines yet.
Change log (2)
- : First version.
- : Verifier pass: aligned rail-type wording with docs, softened engine note, removed unsourced compliance and delay claims.