Skip to main content
Ctrl+K
NVIDIA NeMo Guardrails Library Developer Guide - Home NVIDIA NeMo Guardrails Library Developer Guide - Home

NVIDIA NeMo Guardrails Library Developer Guide

  • GitHub
  • PyPI
NVIDIA NeMo Guardrails Library Developer Guide - Home NVIDIA NeMo Guardrails Library Developer Guide - Home

NVIDIA NeMo Guardrails Library Developer Guide

  • GitHub
  • PyPI

Table of Contents

About NeMo Guardrails Library

  • Overview
  • Guardrail Types
  • How It Works
    • Sequence Diagrams
    • Architecture
  • Supported LLMs
  • Release Notes

Get Started

  • Install
  • Tutorials
    • Check Harmful Content
    • Restrict Topics
    • Detect Jailbreak Attempts
    • Add Multimodal Content Safety
  • Integrate

Configure Rails

  • Before You Begin
  • Configure Rails
  • Core Configuration
    • Configuration Reference
    • Models
    • Guardrails Configuration
      • Built-in Guardrails
      • Parallel Execution of Rails
    • Prompts
    • Tracing
    • Streaming
      • Streaming LLM Responses
      • Output Rail Streaming
  • Actions
    • Creating Custom Actions
    • Built-in Actions
    • Action Parameters
    • Registering Actions
  • Custom Initialization
    • The Init Function
    • Custom LLM Providers
    • Custom Embedding Providers
    • Custom Configuration Data
  • Colang
    • Colang 2.0 Guide
      • What’s Changed
      • Getting Started
        • Hello World
        • Dialog Rails
        • Multimodal Rails
        • Input Rails
        • Interaction Loop
        • LLM Flows
        • Recommended Next Steps
      • Language Reference
        • Introduction
        • Event Generation & Matching
        • Working with Actions
        • Defining Flows
        • Working with Variables & Expressions
        • Flow control
        • Colang Standard Library (CSL)
        • Make use of Large Language Models (LLM)
        • More on Flows
        • Python Actions
        • Development and Debugging
      • Migrating from Colang 1 to Colang 2
    • Colang 1.0 Guide
      • Colang 1.0 Language Syntax
      • Colang 1.0 Tutorials
        • Hello World
        • Core Colang Concepts
        • Demo Use Case
        • Input Rails
        • Output Rails
        • Topical Rails
        • Retrieval-Augmented Generation
      • Guardrailing Bot Reasoning Content
    • Colang Usage Examples
      • Bot Message Instructions
      • Extract User-provided Values
  • Other Configurations
    • Knowledge Base
    • Embedding Search Providers
    • Exceptions and Error Handling
  • Caching Instructions and Prompts
    • Memory Model Cache
    • KV Cache Reuse for NemoGuard NIM

Run Rails

  • Run Rails
  • Core Classes
  • Generation Options
  • Streaming
  • Event-Based API

Evaluation

  • Evaluate
  • Vulnerability Scanning

Observability

  • Logging
  • Tracing
    • Quick Start
    • Adapters
    • OpenTelemetry
    • Troubleshooting

Deployment Guides

  • Deploy
  • Local Server
    • Guardrails Server
    • Actions Server
  • Docker
  • Microservice

Integration with Third-Party Libraries

  • LangChain
    • LangChain Integration
    • RunnableRails
    • Chain with Guardrails
    • Runnable as Action
    • LangGraph
  • Tools Integration

Troubleshooting

  • Troubleshooting

Resources

  • Frequently Asked Questions (FAQ)
  • Python API
  • CLI
  • Use Case Diagrams
  • Glossary
  • Security
  • Colang Guide
  • Colang 2.0 Guide
  • Language Reference

Language Reference#

This chapter is a comprehensive introduction to Colang, explaining all important concepts in a bottom up approach.

  • Introduction

  • Event Generation & Matching

  • Working with Actions

  • Defining Flows

  • Working with Variables & Expressions

  • Flow control

  • Colang Standard Library (CSL)

  • Make use of Large Language Models (LLM)

  • More on Flows

  • Python Actions

  • Development and Debugging

previous

Recommended Next Steps

next

Introduction

NVIDIA NVIDIA
Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2023-2026, NVIDIA Corporation.