NeMo Guardrails integrations

Documented integrations between NeMo Guardrails and LLM application frameworks, chiefly LangChain.

NeMo Guardrails and LangChain integration

Adding NeMo Guardrails to LangChain applications: agent middleware for tool-calling agents, RunnableRails around existing chains, chains as guardrail actions, and LangSmith tracing for reviewing blocked and allowed calls.

Guarding LangGraph agents with NeMo Guardrails

Adding NeMo Guardrails to LangGraph multi-agent workflows: wrapping graph nodes with RunnableRails, giving each agent its own rail configuration, validating tool calls and tool results, and the LangChain opt-in the integration needs since 0.22.

NeMo Guardrails with self-hosted models on vLLM

Pointing NeMo Guardrails at application and safety models served by vLLM: the engine: openai and base_url configuration that needs no LangChain, the placeholder API key for unauthenticated servers, serving Llama Guard on vLLM, and what changed from the legacy vllm_openai engine.

NeMo Guardrails with local models on Ollama

Running guardrails against models served locally by Ollama: the built-in ollama engine and its default endpoint, streaming and tool call support, using a small local model for self-check rails, and where CPU-only hardware stops being enough.

NeMo Guardrails with Azure OpenAI

Guarding Azure OpenAI deployments with NeMo Guardrails: key-based authentication on the built-in azure engine, the endpoint, deployment and API version settings, and the extra work Microsoft Entra ID token authentication requires.

NeMo Guardrails with Anthropic Claude models

Putting NeMo Guardrails in front of Claude models: why the anthropic engine needs the LangChain opt-in, the packages and container environment it requires, and which rails can still use NVIDIA or self-hosted safety models alongside Claude.

NeMo Guardrails with Google Gemini and Vertex AI

Using Gemini through the google_genai or vertexai engines: the LangChain packages each needs, mounting a Vertex AI service account file in containers, and the separate Google Cloud text moderation rail.

NeMo Guardrails with Hugging Face models and TGI

Connecting Hugging Face models to NeMo Guardrails: TGI and other endpoints that speak the OpenAI chat API, the LangChain huggingface_endpoint and in-process pipeline engines, and when each is the right choice.

Calling the NeMo Guardrails server from OpenAI SDK clients

Putting the guardrails server between existing OpenAI SDK applications and the model: changing only the base URL, selecting a configuration with config_id, and the stricter message validation that rejects non-standard payloads since 0.24.

Tool calling with LangChain tools in NeMo Guardrails

Using built-in, community and custom LangChain tools through NeMo Guardrails: the version that added tool calling, how RunnableRails returns tool calls, and where tool rails validate calls and results before the model sees them.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.