Guardrails
Last updated: 2026-11-08T04:58:34-03:00 (UTC-3)
A prompt with a customer’s CPF, an API key pasted by mistake or a toxic response should not go out, or come back, unchecked. Guardrails inspect text before it goes to the provider and, if you want, the response before it goes back to the app. They mask what is sensitive or block the request.
What is available
Section titled “What is available”| Feature | What it does | Flag | Learn more |
|---|---|---|---|
| Local detectors | Email, CPF, CNPJ, card (with Luhn), phone, IPv4, API keys and your own RE2 patterns, with no external call | guardrails |
Guardrails |
| Mask or block | mask replaces the match with a placeholder; block refuses the request |
guardrails |
Guardrails |
| Input and output | On input for Chat, Messages, Responses and Conversations; on output for non-stream answers, where a blocked answer becomes a refusal in the route’s own shape | guardrails |
Guardrails |
| Per-team policies | Sets of guardrails applied per team or model, with ready-made templates | guardrail_policies |
Guardrails |
| Simulator | Tests a policy against a text before you turn it on | guardrail_management |
Guardrails |
| Integrations | Azure AI Content Safety, Presidio, Lakera Guard, Bedrock Guardrails, model-based moderation and any service that speaks the generic guardrail API, on the request, the answer or both | guardrails |
Guardrails |
| Catalog with metrics | Precision and recall of each detector, measured against datasets | guardrail_management |
Guardrails |
| Compliance | Runs the guardrail stack against a dataset with the expected result and shows where it fails | guardrail_compliance |
Guardrails |
Limits
Section titled “Limits”- The output of streams does not go through the guardrails. While an external service checks an alias’s answers, its streamed requests are refused instead of passing unchecked.
- The evaluated text never goes to logs or telemetry; only the counts of findings do.