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 date | Wording |
|---|---|
| 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.”
Four intervention points named by Microsoft
User input
Check 1User input
Model or agent
Check 2Tool callagents only
Check 3Tool responseagents only
Tool
Check 4Output
Output
Types in the sources
The sources sort guardrails by different criteria, so their counts differ:
| Source and date | Wording |
|---|---|
| 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 source | Wording |
|---|---|
| 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 date | Wording |
|---|---|
| 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 six documents quoted in this entry
16 Oct 2023
NeMo Guardrails paper, version 1
7 Dec 2023
Llama Guard paper, version 1
19 Dec 2023
OpenAI Cookbook, archived
2 Feb 2024
Dong et al., version 1 (version 2 on 29 May 2024)
12 Jul 2024
EU Regulation 2024/1689, Official Journal
26 Jul 2024
NIST AI 600-1
The other vendor pages carry newer dates: Microsoft 17 November 2026, NVIDIA documentation (page metadata) 17 November 2026 and 30 June 2026, Google Model Armor 3 December 2026. AWS, Anthropic, the OpenAI Agents SDK, OpenAI Guardrails for Python and the GitHub pages of NeMo Guardrails and Guardrails AI carry no page date.
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’.”
AI guardrails and related terms
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
- Traian Rebedea et al., “NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails”, arXiv 2310.10501, version 1 (16 October 2023). Source for the NeMo definition and the two categories (retrieved 2026-12-06): https://arxiv.org/abs/2310.10501
- Hakan Inan et al., “Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations”, arXiv 2312.06674, version 1 (7 December 2023). Source for Llama Guard and the advice to deploy guardrails (retrieved 2026-12-06): https://arxiv.org/abs/2312.06674
- Yi Dong et al., “Building Guardrails for Large Language Models”, arXiv 2402.01822, version 1 (2 February 2024) and version 2 (29 May 2024). Source for the definition as an algorithm, the four categories and the limit of Llama Guard (retrieved 2026-12-06): https://arxiv.org/abs/2402.01822v1 and https://arxiv.org/abs/2402.01822v2
- OpenAI Cookbook, “How to implement LLM guardrails” (19 December 2023, archived). Source for detective controls, input and output guardrails and the trade-offs (retrieved 2026-12-06): https://developers.openai.com/cookbook/examples/how_to_use_guardrails
- OpenAI Agents SDK, “Guardrails” (no date on the page). Source for where guardrails run in a chain of agents (retrieved 2026-12-06): https://openai.github.io/openai-agents-python/guardrails/
- OpenAI Guardrails for Python (no date on the page). Source for the description of the library (retrieved 2026-12-06): https://openai.github.io/openai-guardrails-python/
- NVIDIA, NeMo Guardrails Library Developer Guide, “Overview” (page metadata 2026-11-17) and “Guardrail Types” (page metadata 2026-06-30). Source for the rail types (retrieved 2026-12-06): https://docs.nvidia.com/nemo/guardrails/latest/about-nemo-guardrails-library/overview and https://docs.nvidia.com/nemo/guardrails/latest/about-nemo-guardrails-library/rail-types
- NVIDIA-NeMo/Guardrails on GitHub (no date on the page). Source for the description of NeMo Guardrails (retrieved 2026-12-06): https://github.com/NVIDIA-NeMo/Guardrails
- guardrails-ai/guardrails on GitHub (no date on the page). Source for the description of Guardrails AI (retrieved 2026-12-06): https://github.com/guardrails-ai/guardrails
- AWS, Amazon Bedrock User Guide, “Detect and filter harmful content by using Amazon Bedrock Guardrails” and “How Amazon Bedrock Guardrails works” (no date on the pages). Source for the AWS definition, the policies and the limits (retrieved 2026-12-06): https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html and https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-how.html
- Microsoft, “Guardrails and controls overview in Microsoft Foundry” (last updated 2026-11-17). Source for the intervention points and the Microsoft definition (retrieved 2026-12-06): https://learn.microsoft.com/en-us/azure/foundry/guardrails/guardrails-overview
- Anthropic, “Mitigate jailbreaks and prompt injections” (no date on the page). Source for users who try to bypass guardrails (retrieved 2026-12-06): https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks
- Google Cloud, “Model Armor overview” (last updated 2026-12-03) and “Safety and content filters” (Gemini Enterprise Agent Platform). Source for Google's use of the word (retrieved 2026-12-06): https://docs.cloud.google.com/model-armor/overview and https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/configure-safety-filters
- Dealroom, “Harvey acquires Guardrails AI in its fourth deal of 2026” (10 September 2026). Source for the acquisition (retrieved 2026-12-06): https://dealroom.co/news/149921-harvey-acquires-guardrails-ai-in-its-fourth-deal-of-2026/
- NIST AI 600-1, “Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile” (July 2024), and NIST AI 100-1, AI RMF 1.0 (January 2023). Source for the NIST passage (retrieved 2026-12-06): https://doi.org/10.6028/NIST.AI.600-1 and https://doi.org/10.6028/NIST.AI.100-1
- NIST, publication page of NIST AI 600-1 (published 26 July 2024). Source for the publication date in the timeline (retrieved 2026-12-06): https://www.nist.gov/publications/artificial-intelligence-risk-management-framework-generative-artificial-intelligence
- Regulation (EU) 2024/1689 (13 June 2024, Official Journal 12 July 2024), recital 110. Source for the AI Act passage (retrieved 2026-12-06): https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=OJ:L_202401689
- US Senate, S. 4113 (17 March 2026) and S. 4216 (26 March 2026), as introduced, GovInfo. Source for the two bills (retrieved 2026-12-06): https://www.govinfo.gov/content/pkg/BILLS-119s4113is/html/BILLS-119s4113is.htm and https://www.govinfo.gov/content/pkg/BILLS-119s4216is/html/BILLS-119s4216is.htm
- Wikipedia, “Guard rail” (last edited 26 July 2026). Source for the meaning outside AI (retrieved 2026-12-06): https://en.wikipedia.org/wiki/Guard_rail
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.