What is AI Guardrails?

AI guardrails sit around a model or an agent and apply rules at run time. Input guardrails screen prompts, for example by detecting personal data or requests outside an approved topic. Output guardrails check responses for format errors, policy violations, or claims that conflict with the provided sources. For AI agents, guardrails also limit which tools an agent may call and when a person must approve an action. Teams usually combine several kinds: fixed rules, classifiers, and a second model that reviews the first.

A bank chatbot, for example, might refuse to give investment advice, hide account numbers in replies, and pass refund requests above a set amount to a human. Guardrails govern behavior at the edges of a system and are one part of AI safety practice. Whether the data the system relies on fits the task is a separate question that guardrails do not answer.

Frequently asked questions

What are the main types of AI guardrails?

Common types are input guardrails that screen prompts, output guardrails that check responses, and action guardrails that limit which tools or operations an AI agent may use.

Are AI guardrails the same as AI safety?

No. AI safety is the broader field of making AI systems behave as intended. Guardrails are run-time controls that implement part of that work for a specific system.

Can guardrails stop hallucinations?

Guardrails can catch some unsupported claims, for example by checking a response against retrieved sources. They cannot guarantee accuracy, so teams still evaluate outputs and the data behind them.