Technology · Agentic → Guardrails · Open Source · wiki:deep
Guardrails is a Python framework for reliable AI apps with two jobs: (1) run Input/Output Guards that detect, quantify, and mitigate specific risks via Hub validators, and (2) help LLMs emit structured data (e.g. Pydantic). Validators install as packages (pip install guardrails-ai-…); multiple validators compose into a Guard with OnFailAction policies. Optional Guardrails Server (guardrails start) exposes guards over HTTP/OpenAI-compatible endpoints.
News (July 2026): validators move to standard PyPI installs; hosted remote inferencing is being discontinued (planned cutoff August 25, 2026) — see migration notes on the repo.
An agentic OS that proposes actions still needs a policy layer on LLM text I/O before tools fire. Guardrails AI is the research pick for composable validators + structured output on the Python path. Prefer NeMo Guardrails for Colang programmable dialog rails; prefer LLM Guard only as an archived scanner toolkit; prefer Headroom when the problem is HITL escalation calibration for coding-agent actions, not prompt/output validators.
Install validators, build a Guard().use(...), then validate inputs/outputs around the LLM call (or generate structured objects via Guard.for_pydantic). Failures raise or transform per OnFailAction. Server mode centralizes guards for multiple clients.
pip install guardrails-ai (+ Hub validator packages). Related: headroom · llm-guard · nemo-guardrails · topics/13-governance-policy
Scroll inside the canvas to pan
Catalog backlinks — what points here (wiki “what links here”).
Claims below are backed by science sources on disk.
Framework / Hub validators
guardrails-ai/guardrails · MODERATE
“Guardrails is a Python framework that helps build reliable AI applications by performing two key functions:”
Docs surface
Guardrails AI documentation · MODERATE
“Guardrails Hub is a collection of pre-built measures of specific types of risks (called 'validators').”
Contrast vs NeMo
Runtime vs embedded rails (contrast note) · MODERATE
“There are several mechanisms that allow LLM providers and developers to add guardrails that are embedded into a specific model at training, e.g. using model alignment.”
Features and peers linked from the catalog map — not a second product surface.
Primary repo github.com/guardrails-ai/guardrails · Open Source
technologies/guardrails-ai/README.md
9 tags · 42 out · 43 in · 3 artifacts · 0 gaps · 32 corpus docs
map_edge · 8
tech_features · 1
tech_quote · 8
tech_readme · 1
tech_science_source · 3
tech_section · 11