Skip to main content
A guard is a protection module focused on a specific threat category. While a guardrail defines your overall protection policy, guards do the actual work of detecting and handling threats. Guards are the building blocks of Guardrails. Each Guard performs specific checks and/or transformations on the data. For instance, a Guard in an input Guardrail can check for security, while a Guard in an output Guardrail might check for moderation or privacy. A Guard belongs to one of the following categories:
  • Security
  • Moderation
  • Privacy
  • Integrity
  • Generic
Guards consist of a set of Detectors and how they should be executed.

Next Steps

Detector

The detection engines inside guards

Configure Guardrails

Set up guards for your agent

Available Guards

Reference of all guard types
Last modified on April 14, 2026