Skip to main content
Guardrails are built-in safety mechanisms in Devic that allow you to control, filter, and monitor the behavior of AI agents before they process user instructions.
Their purpose is to ensure that models operate within safe, legal, and appropriate boundaries for production environments.
In real-world scenarios—especially in companies handling sensitive data, regulated processes, or critical information—guardrails are essential to prevent risks such as:
  • Unintentional exposure of personal or confidential data.
  • Generation of toxic, harmful, or inappropriate content.
  • Model manipulation through jailbreak attempts.
  • Out-of-context responses misaligned with business objectives.
  • Unsafe instructions that could trigger tools or processes incorrectly.
Devic allows you to add guardrails to each agent, configuring an additional protection layer before the user’s message reaches the model (LLM). Access to guardrail configuration in the agent

How to Access Guardrails

To configure an agent’s guardrails:
  1. Open the agent from Devic’s sidebar panel.
  2. Select the options menu (⋮) in the upper-right corner.
  3. Click Guardrails.
  4. Press Add guardrail to create a new one.
This opens the panel where you can choose among different types of guardrails depending on your project needs. Guardrail configuration panel

Types of Available Guardrails

Devic currently offers five main categories of guardrails:
GuardrailPurpose
Mask PIIDetects and hides personally identifiable information before it reaches the model.
ModerationBlocks sensitive, toxic, or prohibited content using moderation classifiers.
JailbreakDetects and stops attempts to break the model’s security boundaries.
Off Topic PromptsPrevents the agent from responding to topics outside the defined scope.
Custom Prompt CheckAllows creating custom natural-language rules to validate or reject instructions.
The following sections describe each guardrail, its purpose, when to use it, and how to configure it properly.

Next: Mask PII

Learn how to protect personal and sensitive data through the automatic masking guardrail.