Guardrails AI

Guardrails AI

By Guardrails AI

Validate and structure LLM input/output with composable validators from the Guardrails Hub.

v0.10.22026-06-04PythonApache-2.0
7.2k Open source Paid

Doc version 1.0 · Updated

Related concepts

Related tools

Overview

Guardrails AI is a Python framework that validates and structures LLM input and output using composable validators pulled from the Guardrails Hub.
You build a Guard from one or more validators — PII, jailbreak, format, factuality — and it intercepts the model’s text to pass, fix, or reject it.

flowchart LR
  llm[LLM output] --> guard[Guard]
  guard --> validators[validators]
  guard --> ok[valid / fixed]

The Code samples tab shows building a Guard from a Hub validator and checking output.

When to use it

Choose Guardrails AI when LLM I/O must obey concrete rules — strip PII, enforce a schema, block jailbreaks — and you want to mix and match ready-made validators from the Hub rather than hand-roll checks.