Guardrails AI
Policy engineguardrails-ai
Open-source Python framework that validates LLM inputs and outputs with Hub validators and structures output.
- Provider
- default
- Kind
- Policy engine
- Category
- Operations
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| effect | enum | audit | deny | modify | deploy-if-not-exists | no | — | ▸ deny |
| enforcementMode | enum | enforced | disabled | no | — | inherited |
| guardrailsServer | boolean | — | no | false | inherited |
| hubValidators | integer | — | no | 0 | inherited |
| managed | boolean | — | no | false | ▸ false |
| onFail | enum | reask | fix | filter | refrain | noop | exception | fix_reask | custom | no | exception | inherited |
| policyCount | integer | — | no | — | inherited |
| remediation | boolean | — | no | false | inherited |
| scope | enum | resource | group | account | organization | no | — | ▸ resource |
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.
nodes:
- { id: "guardrails-ai", component: "guardrails-ai" }Cloud Configalibaba-cloud-configData Security Centeralibaba-data-security-centerAmazon CodeGuru Revieweraws-codeguru-reviewerAWS Configaws-configAWS Control Toweraws-control-towerIAM Access Analyzeraws-iam-access-analyzerAWS Lake Formationaws-lake-formationAWS License Manageraws-license-managerAWS Organizationsaws-organizationsAWS Resource Access Manageraws-ramAmazon Verified Permissionsaws-verified-permissionsMicrosoft Entra Conditional Accessazure-conditional-accessAzure Policyazure-policyMicrosoft Entra Privileged Identity Managementazure-privileged-identity-managementCloudflare Data Loss Preventioncloudflare-dlpCalypsoAIcalypsoaiCerboscerbosOPA GatekeepergatekeeperHiddenLayer AI Security PlatformhiddenlayerKubeArmorkubearmorKubewardenkubewardenKyvernokyvernoLakera Guardlakera-guardLLM Guardllm-guardNeMo Guardrailsnemo-guardrailsOpen Policy AgentopaPermit.iopermit-ioGeneric policy enginepolicy-enginePrompt Securityprompt-securityProtect AIprotect-aiRebuffrebuffRobust Intelligencerobust-intelligenceSonarQube ServersonarqubeDigitalOcean CSPMdigitalocean-cspmAccess Context Managergoogle-access-context-managerAssured Workloadsgoogle-assured-workloadsBinary Authorizationgoogle-binary-authorizationIdentity and Access Managementgoogle-cloud-iamFirebase App Checkgoogle-firebase-app-checkModel Armorgoogle-model-armor
and 16 more → Policy engine page# 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