{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "$id": "https://www.krakend.io/schema/v3.0/ai/prompt-guard-endpoint.json",
  "title": "AI Prompt Guard Selection",
  "description": "Enterprise only. Enables prompt guarding on this endpoint or backend, and selects which guards inspect the request body. The default guards are active even when you leave the object empty.\n\nSee: https://www.krakend.io/docs/enterprise/ai-gateway/prompt-guard/",
  "type": "object",
  "properties": {
    "guards": {
      "title": "Guards",
      "description": "The guards to apply, in addition to the default ones. Add the `name` of a guard declared at the service level to apply it, or prefix an entry with `!` to disable default guards: `!all_defaults` removes all of them, `!critical`, `!high`, `!medium`, and `!low` remove those of that severity, and `!` followed by a group name, such as `!unicode_steganography`, removes that group.\n\nSee: https://www.krakend.io/docs/enterprise/ai-gateway/prompt-guard/",
      "type": "array",
      "items": {
        "examples": [ "block_jailbreak_terms", "!medium", "!all_defaults" ],
        "type": "string"
      }
    }
  },
  "patternProperties": {
    "^[@$_#]": true
  },
  "additionalProperties": false
}
