Safety · Established · Intermediate
AI Guardrails
Programmatic constraints around a model that block unsafe, off-topic or malformed inputs and outputs.
What AI Guardrails is
Guardrails are the deterministic layer wrapped around a probabilistic one: input filters, output validators, schema enforcement, topic restrictions, PII redaction and rate limits.
How it works
Implemented as classifiers, regex and schema checks, allow-lists of permitted tools, and secondary model reviews. Failures are logged and either blocked, rewritten or escalated to a human.
Why it matters
Prompt instructions alone are not a security control. Anything that must not happen needs enforcement outside the model.
Common uses
- →Blocking PII leakage
- →Keeping assistants on topic
- →Validating structured output
- →Restricting agent tool permissions
Strengths
- ✓Deterministic enforcement
- ✓Auditable decisions
Watch for
- ✓Over-blocking frustrates users
- ✓Adds latency
Continue exploring
More in this collection
Browse all AI Concepts