Guardrails AI

Policy engineguardrails-ai

Open-source Python framework that validates LLM inputs and outputs with Hub validators and structures output.

Provider
default
Category
Operations
Properties · 3 set by this component
propertytypevaluesrequiredkind defaultthis component
effectenumaudit | deny | modify | deploy-if-not-existsno—▸ deny
enforcementModeenumenforced | disabledno—inherited
guardrailsServer · component propertyboolean—nofalseinherited
hubValidators · component propertyinteger—no0inherited
managedboolean—nofalse▸ false
onFail · component propertyenumreask | fix | filter | refrain | noop | exception | fix_reask | customnoexceptioninherited
policyCountinteger—no—inherited
remediationboolean—nofalseinherited
scopeenumresource | group | account | organizationno—▸ resource
Rules that apply · 0

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

No rule reads this kind yet. That is a gap, not a guarantee.
Use it in a design
nodes:
  - { id: "guardrails-ai", component: "guardrails-ai" }
Other Policy engine products · 56
Cloud Configalibaba-cloud-configalibabacloudpolicy-engineData Security Centeralibaba-data-security-centeralibabacloudpolicy-engineAmazon CodeGuru Revieweraws-codeguru-reviewerawspolicy-engineAWS Configaws-configawspolicy-engineAWS Control Toweraws-control-towerawspolicy-engineIAM Access Analyzeraws-iam-access-analyzerawspolicy-engineAWS Lake Formationaws-lake-formationawspolicy-engineAWS License Manageraws-license-managerawspolicy-engineAWS Organizationsaws-organizationsawspolicy-engineAWS Resource Access Manageraws-ramawspolicy-engineAmazon Verified Permissionsaws-verified-permissionsawspolicy-engineMicrosoft Entra Conditional Accessazure-conditional-accessazurepolicy-engineAzure Policyazure-policyazurepolicy-engineMicrosoft Entra Privileged Identity Managementazure-privileged-identity-managementazurepolicy-engineCloudflare Data Loss Preventioncloudflare-dlpcloudflarepolicy-engineCalypsoAIcalypsoaipolicy-engineCerboscerbospolicy-engineOPA Gatekeepergatekeeperpolicy-engineHiddenLayer AI Security Platformhiddenlayerpolicy-engineKubeArmorkubearmorpolicy-engineKubewardenkubewardenpolicy-engineKyvernokyvernopolicy-engineLakera Guardlakera-guardpolicy-engineLLM Guardllm-guardpolicy-engineNeMo Guardrailsnemo-guardrailspolicy-engineOpen Policy Agentopapolicy-enginePermit.iopermit-iopolicy-engineGeneric policy enginepolicy-enginepolicy-enginePrompt Securityprompt-securitypolicy-engineProtect AIprotect-aipolicy-engineRebuffrebuffpolicy-engineRobust Intelligencerobust-intelligencepolicy-engineSonarQube Serversonarqubepolicy-engineDigitalOcean CSPMdigitalocean-cspmdigitaloceanpolicy-engineAccess Context Managergoogle-access-context-managergcppolicy-engineAssured Workloadsgoogle-assured-workloadsgcppolicy-engineBinary Authorizationgoogle-binary-authorizationgcppolicy-engineIdentity and Access Managementgoogle-cloud-iamgcppolicy-engineFirebase App Checkgoogle-firebase-app-checkgcppolicy-engineModel Armorgoogle-model-armorgcppolicy-engine
and 16 more → Policy engine page
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Guardrails AI: open-source Python framework that wraps LLM calls in input and output Guards built from
# Guardrails Hub validators, and generates structured output. Per "Validator OnFail Actions", a failed
# validator can reask, fix, filter, refrain, noop, raise or call a custom handler; the Validator base
# class sets on_fail to EXCEPTION when none is given, so an unhandled failure blocks the call.
schemaVersion: "1"
type: "component"
id: "guardrails-ai"
kind: "policy-engine"
provider: "default"
docs: "https://www.guardrailsai.com/docs/concepts/validator_on_fail_actions"
aliases: ["Guardrails"]
defaults:
  managed: false
  scope: "resource"
  effect: "deny"
properties:
  onFail:
    type: "enum"
    values: ["reask", "fix", "filter", "refrain", "noop", "exception", "fix_reask", "custom"]
    default: "exception"
  guardrailsServer:
    type: "boolean"
    default: false
  hubValidators:
    type: "integer"
    default: 0

The same page as markdown, for an agent: /catalogue/components/guardrails-ai.md