Book a demo →

AI Guardrails

Definition

AI guardrails in the sources: how NVIDIA, OpenAI, AWS and Microsoft define the word, where the checks sit, and which limits the pages name.

In short

AI guardrails are checks placed around a language model or agent: on the input, on tool calls and on the output. The sources use the word for different things, from an algorithm to a bundle of policies. NVIDIA, OpenAI, AWS and Microsoft each define it differently.

What are AI guardrails?

In the sources, AI guardrails are checks on what goes into a language model or agent, what comes out of it, or what it does. On 6 December 2026, the wording of five sources read as follows:

Source and dateWording
NeMo paper (Rebedea et al.), arXiv 2310.10501, version 1 (16 October 2023), abstract“Guardrails (or rails for short) are a specific way of controlling the output of an LLM, such as not talking about topics considered harmful, following a predefined dialogue path, using a particular language style, and more.”
OpenAI Cookbook, “How to implement LLM guardrails” (19 December 2023, archived)“A guardrail is a generic term for detective controls that aim to steer your application.”
Dong et al., arXiv 2402.01822, version 2 (29 May 2024)“A guardrail is an algorithm that takes as input a set of objects (e.g., the input and/or the output of LLMs) and determines if and how some enforcement actions can be taken to reduce the risks embedded in the objects.”
AWS, Amazon Bedrock user guide (page without date)“A guardrail is a combination of multiple policies configured for prompts and response including; content filters, denied topics, sensitive information filters, word filters, and image content filters.”
Microsoft, “Guardrails and controls overview in Microsoft Foundry” (last updated 17 November 2026)“A guardrail is a named collection of controls.”

The word stands for a way of controlling output (NeMo paper), a kind of control (OpenAI), an algorithm (Dong et al.), a combination of policies (AWS) and a collection of controls (Microsoft). Meta's Llama Guard paper (arXiv 2312.06674, version 1, 7 December 2023) writes that resources such as the Llama 2 Responsible Use Guide recommend “that products powered by Generative AI deploy guardrails that mitigate all inputs and outputs to the model itself”. The NeMo paper separates guardrails “embedded into a specific model at training, e.g. using model alignment” from rails that developers add at runtime.

Where the checks sit

Microsoft's page (last updated 17 November 2026) writes “Four intervention points are supported” and describes them:

  • User input: “The prompt sent to a model or agent.”
  • Tool call (Preview, agents only): “The action and data the agent proposes to send to a tool.”
  • Tool response (Preview, agents only): “The content returned from a tool to the agent.”
  • Output: “The final completion returned to the user.”

The OpenAI Cookbook (19 December 2023) names two: “Input guardrails that flag inappropriate content before it gets to your LLM” and “Output guardrails that validate what your LLM has produced before it gets to the customer”. The OpenAI Agents SDK documentation (no date on the page) adds: “Input guardrails run only for the first agent in the chain.” and “Output guardrails run only for the agent that produces the final output.” The NeMo Guardrails documentation (page metadata 30 June 2026) writes: “Input and Output rails are the most common.”

The four checks sit on the input, on the way to and from a tool, and on the output. Microsoft lists the two tool checks as Preview and for agents only.

Types in the sources

The sources sort guardrails by different criteria, so their counts differ:

Source and dateWording
NeMo paper (Rebedea et al.), version 1 (16 October 2023)“We have identified two main categories: topical rails and execution rails.”
NeMo Guardrails documentation, input rails (page metadata 30 June 2026)“Input rails apply guardrails before the LLM is called by validating and sanitizing user inputs.”
NeMo Guardrails documentation, execution rails (page metadata 30 June 2026)“Execution rails control and validate tool/function calls, their arguments, and results to safely interact with external systems.”
NeMo Guardrails documentation, output rails (page metadata 30 June 2026)“Output rails evaluate and post-process model responses, filtering, editing, or blocking unsafe or off-policy content before it reaches users.”
Dong et al., version 2 (29 May 2024)“We consider four categories of requirements that might be requested in a specific context or application.”
AWS, content filters in Amazon Bedrock (no date on the page)“This filter helps you detect and filter harmful text or image content in input prompts or model responses.”

The NeMo documentation lists five rail types: input, retrieval, dialog, execution and output. Of the two not in the table, it writes “Retrieval rails filter and validate retrieved knowledge (documents and chunks) to ensure only trusted context is provided to the LLM.” and “Dialog rails steer and constrain the multi-turn conversation, enforcing flow logic and policies across turns.” Dong et al. name their four categories “Free from Unintended Response”, “Fairness”, “Privacy and Copyright” and “Hallucinations and Uncertainty”. AWS names five kinds of policy in its definition: content filters, denied topics, sensitive information filters, word filters and image content filters. The NeMo documentation sorts by the place in the flow, Dong et al. by the kind of requirement and AWS by the kind of policy.

Tools that carry the name

Six tools describe themselves as follows:

Tool and sourceWording
NeMo Guardrails (NVIDIA), GitHub page (no date)“NeMo Guardrails is an open-source library for applying programmable safety and security controls to LLM and agentic applications.”
Guardrails AI, GitHub page (no date)“Guardrails runs Input/Output Guards in your application that detect, quantify and mitigate the presence of specific types of risks.”
OpenAI Guardrails for Python, documentation (no date)“Guardrails is a safety framework for LLM applications that automatically validates inputs and outputs using configurable checks.”
Amazon Bedrock Guardrails, AWS user guide (no date)“Amazon Bedrock Guardrails provides configurable safeguards to help you build safe generative AI applications.”
Microsoft Foundry, overview page (last updated 17 November 2026)“Microsoft Foundry provides safety and security guardrails that you can apply to core models and agents.”
Llama Guard (Meta), arXiv 2312.06674, version 1 (7 December 2023)“We introduce Llama Guard, an LLM-based input-output safeguard model geared towards Human-AI conversation use cases.”

The OpenAI Cookbook uses the word as a generic term and not for a product: “This notebook tackles guardrails as a generic term for detective controls around an LLM”. For ready-made frameworks it points to NeMo Guardrails and Guardrails AI. Dong et al. name “current open-source solutions (Llama Guard, Nvidia NeMo, Guardrails AI)” in their abstract. Dealroom reports on 10 September 2026: “Legal AI company Harvey has acquired Guardrails AI, a San Francisco-based security platform for AI agents.”

Google's Model Armor page (last updated 3 December 2026) uses the word once: “Block adversarial inputs that attempt to bypass system guardrails or manipulate large language models (LLMs) into unintended actions.” Google's page “Safety and content filters” for its Gemini Enterprise Agent Platform does not use it.

Limits the pages name

Vendors and papers state these limits:

Source and dateWording
AWS, Amazon Bedrock user guide (page without date)“We recommend that you continue to test and validate your guardrails to confirm that they meet your requirements.”
Microsoft Foundry (last updated 17 November 2026)“Variations in API configurations and application design might affect completions and thus filtering behavior.”
OpenAI Cookbook (19 December 2023), on thresholds“Designing guardrails and setting their thresholds is a trade-off between accuracy, latency, and cost.”
OpenAI Cookbook (19 December 2023), on false positives“More false positives leads to a fractured user experience, where customers get annoyed and the assistant seems less helpful.”
OpenAI Agents SDK documentation (no date on the page)“Blocking execution guarantees that the expensive model does not start; with parallel execution, the expensive model may already have started before the guardrail completes.”
Dong et al., version 2 (29 May 2024), on Llama Guard“It lacks guaranteed reliability since the classification results depend on the LLM's understanding of the categories and the model's predictive accuracy.”

Anthropic's page on jailbreaks and prompt injections (no date on the page) describes the case where “the user of your application is the adversary and crafts inputs intended to bypass your guardrails”. Meta writes in the Llama Guard paper (version 1) about existing moderation services: “However, these online moderation tools fall short when applied as input/output guardrails for several reasons.” The OpenAI Cookbook advises: “We would also recommend doing a gradual roll-out with active monitoring of conversations”.

Standards and law that use the word

NIST AI 600-1, the Generative AI Profile (July 2024), uses the word once, in action MS-2.5-006: “Regularly review security and safety guardrails, especially if the GAI system is being operated in novel circumstances.” NIST AI 100-1, the AI RMF 1.0 (January 2023), does not use it. Regulation (EU) 2024/1689, the AI Act (13 June 2024; Official Journal of 12 July 2024), uses it once, in recital 110 on the systemic risks of general-purpose AI models, which “are influenced by” factors that include “the potential to remove guardrails”.

Names and dates in the sources

The sources use different words for checks of this kind. NVIDIA writes “Guardrails (or rails for short)”. Meta calls Llama Guard a safeguard in the paper's title and writes guardrails in the text. Guardrails AI calls its checks guards, and Microsoft calls the places where checks run intervention points. Dong et al. write in their abstract: “Guardrails, which filter the inputs or outputs of LLMs, have emerged as a core safeguarding technology.” The Llama Guard paper names the “Llama 2 Responsible Use Guide (Meta, 2023)” as one source of the recommendation to deploy guardrails. The entry makes no claim about who used the word earlier; the figure below shows the dates of six documents quoted here.

Dates of the six documents quoted in this entry, evenly spaced. The figure shows dates, not an order of credit.

Other meanings of “guardrails”

Outside AI, the Wikipedia article “Guard rail” (last edited 26 July 2026) carries the short description “Freestanding fixture meant to aid in pedestrian and vehicle safety”. Two bills in the US Senate carry the word in their names. S. 4113 (17 March 2026) may be cited as the “AI Guardrails Act of 2026” and is titled “To provide for limitations on the use of artificial intelligence by Department of Defense.” S. 4216 (26 March 2026) may be cited as the “Guaranteeing and Upholding Americans' Right to Decide Responsible AI Laws and Standards Act” or the “GUARDRAILS Act”, and is titled “To repeal the Executive order entitled ‘Ensuring a National Policy Framework for Artificial Intelligence’.”

Prompt injection. Anthropic's page quoted above deals with jailbreaks and prompt injections; the entry on prompt injection covers the attacks.

AI agent. The tool call and tool response checks apply to agents; the entry on AI agents covers tools and handoffs.

LLM-as-a-judge. Language models that grade the answers of other models; the entry on LLM-as-a-judge covers them.

Hallucination rate. Wrong statements on brands in AI answers are the subject of the hallucination rate entry.

RLHF. Training on human preferences, one form of the model alignment that the NeMo paper sets apart from runtime rails; the RLHF entry describes it.

Source

Frequently asked questions

What are guardrails used for?

The sources name checks on inputs, tool calls and outputs. OpenAI calls them “detective controls that aim to steer your application”. AWS lists “A chatbot application to help filter harmful user inputs and toxic model responses.” as one use. Microsoft's controls “define a risk to detect”, the points to scan and a response action.

What are LLM guardrails?

Dong et al. (version 2, 29 May 2024) write “Guardrails, which filter the inputs or outputs of LLMs, have emerged as a core safeguarding technology.” The NeMo paper (version 1, 16 October 2023) calls them “a specific way of controlling the output of an LLM”. Both describe checks around a model, not changes to the model itself.

What are the different types of AI guardrails?

The sources count differently. The NeMo paper names “topical rails and execution rails”. The NeMo documentation lists input, retrieval, dialog, execution and output rails. Dong et al. group four categories of requirements, and AWS's definition lists five kinds of policy. The counts are two, five, four and five, and the lists do not match.

How to implement AI guardrails?

The pages describe tools, not one method. NVIDIA writes “Add guardrails before and after LLM calls without changing the application LLM.” OpenAI recommends “building an evaluation set and grading the results using a confusion matrix to set the right tolerance for your guardrail”. AWS advises to “continue to test and validate your guardrails”.

What are guardrails in AWS?

AWS calls the service Amazon Bedrock Guardrails and writes that it “provides configurable safeguards to help you build safe generative AI applications”. A guardrail combines policies such as content filters and denied topics, and “can be configured with a single policy” as well. AWS adds: “Embedding, reranking, and image generation models don't support guardrails.” The page has no date.