What is a Guardrail?
A guardrail is a configured pipeline of guards that implements your protection policy. If guards are the individual security checks, guardrails are the security checkpoint—they define which checks happen, in what order, and what to do with the results. You don’t deploy individual guards; you deploy guardrails. A guardrail bundles together the guards you need, configures their thresholds and actions, and orchestrates their execution on every request.Guardrail Types
Dome supports guardrails at different points in the agent interaction:Input Guardrails
Input guardrails filter requests before they reach your agent:- Adversarial attacks (injection, jailbreaks)
- Sensitive data that shouldn’t be processed
- Off-topic requests outside the agent’s scope
Output Guardrails
Output guardrails filter responses before they reach users:- Harmful or inappropriate content
- Leaked sensitive information
- Responses that violate content policies
Retrieval Guardrails
Coming soon
Execution Guardrails
Coming soon
Guardrail Configuration
A complete guardrail configuration specifies guards and their settings:Execution Flow
When a guardrail runs:- Input arrives: User request enters the pipeline
- Input guards execute: Each guard in
input-guardsruns (in parallel where possible) - Actions applied: Block, redact, or pass based on guard results
- Agent processes: If not blocked, filtered input reaches your agent
- Output guards execute: Each guard in
output-guardsruns on the response - Actions applied: Block, redact, or pass the response
- Response returned: Filtered output goes to the user
action: block triggers, the pipeline stops and returns an error response. Guards with action: redact modify the content and continue.
Guard Ordering
Guards within a guardrail can run in parallel or sequence: Parallel execution (default): All guards run simultaneously. Fastest, but all guards run even if one would block. Sequential execution: Guards run in order. First blocking guard stops the pipeline. Saves compute but adds latency.Scan Results
Every guardrail execution returns aScanResult:
Guardrail Templates
Dome provides pre-configured guardrail templates for common use cases:| Template | Guards Included | Use Case |
|---|---|---|
customer-support | Injection, PII, toxicity, topic restriction | Customer-facing chatbots |
internal-assistant | Injection, secrets detection, data leakage | Internal enterprise assistants |
content-moderation | Toxicity, sexual content, violence, misinformation | Content generation platforms |
high-security | All security guards, strict thresholds | Sensitive applications |