Article contents
What are AI guardrails?
AI guardrails
AI guardrails are checks that run around an AI model to catch unwanted inputs and outputs: blocking harmful or off-topic requests, removing sensitive data, flagging answers that the sources do not support, and validating tool calls before they run.
The five kinds of guardrails1
NVIDIA's NeMo Guardrails documentation describes five types of rails. The categories are a useful map for any guardrail tool.
Examples of AI guardrail tools1,2,3,4,5
NVIDIA NeMo Guardrails
An open library for adding the five kinds of rails above to an AI application.
Amazon Bedrock Guardrails
Configurable content filters, denied topics, sensitive information filters and contextual grounding checks, which flag responses not supported by the source material.
Azure AI Content Safety Prompt Shields
Detects user prompt attacks and attacks hidden in documents. Microsoft notes the API does not block anything itself; your application decides what to do with the result.
Meta Llama Guard
A safeguard model that classifies both prompts and responses. The original release was a 7-billion-parameter model based on Llama 2.
Guardrails AI
An open-source Python framework under the Apache 2.0 license that runs input and output guards inside your application.
Examples are not endorsements
We list these to show the range of approaches, not to rank them. Each one is configured differently, and how well it works depends heavily on your data, your languages and your thresholds. Test any guardrail on your own traffic before relying on it.
What guardrails do well6
Guardrails are good at catching patterns: obviously harmful content, personal data in a response, requests far outside an app's purpose, and output that does not match an expected format. OWASP's guidance on improper output handling is a reminder of one of the most useful jobs they do: validating and cleaning model output before it is passed to other systems, so a model's text never becomes a database query or a script without checks.
Where guardrails fall short8,9
Most guardrails are classifiers, and classifiers make two kinds of mistakes. False positives block good work and frustrate users; false negatives let attacks through. Attackers actively search for the second kind. In February 2026 the UK AI Security Institute described an automated jailbreak method that evaded the strongest industry-deployed safeguards it tested, and noted that it triggered many flags while it was being developed, so effective defense needs monitoring across many interactions, not only single-request checks.
The deeper issue is the one the UK's National Cyber Security Centre describes: models do not enforce a boundary between instructions and data. A filter can reduce injection; it cannot guarantee there is none.
Agents add a further gap. An action can look perfectly harmless as text. "Refund order 4471" contains nothing a content filter would object to, yet it may be the wrong customer, above the agent's limit, or the hundredth refund this hour. A content check cannot know your permissions, your limits or whether someone approved it.
Guardrails versus governance7
Execution rails come closest7
Of the five kinds, execution rails, which check tool calls and their arguments, come closest to governance. They are the right place to reject a malformed request or an obviously dangerous argument. But the decision about what an agent may do should not live only inside the same application the agent controls. OWASP's guidance on excessive agency points to limiting the agent's functionality, permissions and autonomy in the first place, and to requiring a person to approve high-impact actions.
How to layer guardrails and governance for one agent
The first three steps are governance; the next two are guardrails; the last three keep both honest.
- 01Give the agent only the tools and permissions its job needs
- 02Decide which actions run alone, which need approval and which are never allowed
- 03Set hard limits on tool calls, run time, spending and volume
- 04Add input and retrieval rails for untrusted content such as emails and web pages
- 05Add execution checks on tool arguments, and output rails on what leaves the system
- 06Record every run, tool call, flag and approval outside the agent
- 07Watch flags across many runs, not one at a time, to spot someone probing
- 08Re-test with known attacks whenever the agent, its tools or its model change
Illustrative; adapt to your agent's risks.
Questions to ask before relying on a guardrail
- How often does it block good requests, and miss bad ones, on our own data?
- What happens when it flags something: block, log, or send it to a person?
- How much delay does it add to each request?
- Does it check tool calls, or only text?
- Does it work in every language and format our users send?
- Who updates its rules, and how are changes reviewed?
- Is every flag recorded somewhere we can review later?
Where Quaspar fits
Quaspar is the governance layer for AI agents, and it sits alongside whatever guardrails you use. Each agent's permissions (which tools, which data, and whether it can only read or also change things) are set when it is created and enforced by Quaspar, never by the model. An automated check reviews each new agent's design, and risky capabilities default to requiring approval. Runs have hard limits on tool calls, run time and daily AI spending. Outgoing messages, submissions and changes to connected systems wait in Workspace for a person, and an administrator can cancel any run or pause any agent instantly. Every run, tool call, approval and rejection goes into an activity record written by Quaspar, not by the agent.
Quaspar is not a content filter and does not replace one. It makes sure that whatever gets past a filter still cannot act beyond the agent's permissions without a person. Quaspar is in private preview and is not SOC 2 certified.
Next step
Quaspar is the governance layer for AI agents and is in private preview. Request access to set agent permissions, route important actions to people and keep a record of what every agent did.
Request Studio accessSources
Authoritative references
Rules, standards, and guidance can change. The links below were reviewed on November 23, 2026.
- 1NVIDIA NeMo Guardrails documentation. Guardrail Types
- 2AWS documentation. Detect and filter harmful content by using Amazon Bedrock Guardrails
- 3Microsoft Learn. Prompt Shields in Azure AI Content Safety
- 4Meta, PurpleLlama on GitHub. Llama Guard model card
- 5Guardrails AI on GitHub. guardrails-ai/guardrails
- 6OWASP GenAI Security Project. LLM05:2025 Improper Output Handling
- 7OWASP GenAI Security Project. LLM06:2025 Excessive Agency
- 8UK AI Security Institute. Boundary Point Jailbreaking of Black-Box LLMs
- 9UK National Cyber Security Centre. Prompt injection is not SQL injection (it may be worse)
