NVIDIA NeMo Guardrails

by NVIDIA
Open

An open-source Python toolkit adds programmable controls for inputs, model responses, and tool interactions in LLM applications.

Description

NVIDIA NeMo Guardrails is a library for adding programmable constraints to chatbots, AI agents, and other language-model applications. It places a configurable layer between application logic and model interactions to inspect messages and guide dialogue behavior. Developers define rules through configuration files and the Colang language, use built-in checks, or implement custom actions. The toolkit supports input and output controls, topic restrictions, safety validation, and rules for specific conversational steps. NeMo Guardrails can be integrated through a Python API or operated as a separate server exposing HTTP endpoints. It provides a CLI, sample configurations, and evaluation utilities; some checks rely on separately configured models or services. The library is open source under Apache 2.0, but deployment requires integration and testing against real use cases. Built-in rules cannot eliminate every attack, and inference or third-party API costs are not included in the software itself.