This site only uses technical cookies required for it to work: no tracking, no profiling. Cookie Policy

Skip to content
All terms

What are guardrails in an AI system?

Technical controls that limit what an AI system can say or do: filters, policies, permissions, and a human in the loop where needed.

Guardrails are the technical controls that limit what an AI system can say or do, regardless of what the model "would like" to do. They cover the input (what reaches the model), the output (what comes out), and actions (what the system can execute in the real world via tool calling). They are not an optional add-on: they are the condition that makes an agent something more trustworthy than an uncontrolled script. In practice a solid guardrail system combines several layers working together: input filters to block prompt manipulation attempts, output checks to intercept non-compliant content before it reaches the user, allow-lists that constrain which tools an agent can invoke and with what parameters, and mandatory human approval points before high-risk actions like deleting data or sending payments. None of these layers alone is enough: safety comes from the combination, which is why they need to be designed alongside the system's architecture from the start, not glued on after an incident.

How it works

In practice a system with guardrails combines several layers: input filters to block prompt manipulation attempts, output checks to intercept non-compliant content before it reaches the user, allow-lists that constrain which tools an agent can invoke and with what parameters, and mandatory human approval points before high-risk actions (deleting data, sending payments, communicating externally). None of these layers alone is sufficient: safety comes from the combination, not from a single magic filter.

Why it matters for your business

An agent's autonomy is earned, not assumed: the more actions you grant it without supervision, the sturdier its guardrails need to be, not the other way around. An agent with broader permissions than its task requires is the textbook symptom of excessive agency, the exact risk guardrails exist to contain. Designing them from the start, alongside the system's architecture, costs far less than adding them after an incident. A common mistake is treating guardrails as a layer glued on top of an already finished system: they really work only when they are part of the design, with minimal permissions by default and autonomy expanded based on eval results, not initial enthusiasm.

  • AI Agents (Agentic AI) · AI systems that go beyond answering: they plan, use tools and take actions autonomously inside your processes.
  • Prompt injection · An attack hiding malicious instructions in content an AI reads, hijacking its behavior: the number-one risk of LLM systems.
  • LLMOps · MLOps applied to language models: evaluating, monitoring and controlling the cost and quality of LLMs, RAG and agents in production.
  • AI governance · The policies, roles and controls governing AI use in a company: system inventory, risk classification, approval flows and monitoring.
  • Structured outputs · The constraint forcing an LLM to answer per a declared JSON schema, enforced at decoding rather than asked for in the prompt.

A term that hits close to home? Let's talk.

CONTACT ME