Guardrails AI
Python framework of validators that check and correct LLM inputs and outputs.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
Guardrails AI wraps LLM calls with validators that check outputs (and inputs) for things like schema, PII, toxicity or competitor mentions, and can re-ask or fix on failure. Validators come from a shared hub.
Best for
Adding specific output checks to an LLM app in Python.
Skills it helps with
Learn Guardrails AI by doing
- Add input and output guardrails to an LLM app
Length, topic and PII checks on input, schema and policy checks on output, then measure false positives and latency on a test set.
Related tools
NeMo Guardrails
NVIDIA's toolkit for programmable input, output and dialogue rails in LLM apps.
E2B
Open-source cloud sandboxes for code that agents run.
garak
Scanner that probes LLMs for vulnerabilities such as prompt injection.
PyRIT
Microsoft toolkit for red-teaming generative AI systems.
Cisco Skill Scanner
Open-source Agent Skills scanner using rules, dataflow analysis and an LLM judge.
Lakera
Runtime protection against prompt injection and data leakage, now part of Check Point.