Guardrails AI
Open SourceData & Agents
Validate and repair LLM outputs in production.
What it’s for
Guardrails wraps model calls with typed validators — structure, tone, safety, custom Python checks — and automatically re-asks or rephrases when a constraint fails. It keeps LLM features from shipping embarrassing outputs.
How to use it
pip install guardrails-ai, define a spec from Pydantic types, then call the model through Guard() to get validated objects with automatic retries and repairs.
Pricing
Free and open source (Apache 2.0).