Feature available with the Enterprise Plan Guardrail Rules define conditions under which evaluators are applied to requests passing through the AI Router. A guardrail is only triggered when its rule conditions are matched, not on every request.Documentation Index
Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use cases
Guardrail rules are most useful when the same safety or compliance check needs to apply consistently across many requests.Add jailbreak protection to all customer-facing banking traffic
Add jailbreak protection to all customer-facing banking traffic
Enforce GDPR PII checks across the entire workspace
Enforce GDPR PII checks across the entire workspace
Validate customer detail access for the sales team
Validate customer detail access for the sales team
Monitor tone of voice across all company traffic
Monitor tone of voice across all company traffic
Apply EU AI Act compliance checks to EU-routed requests
Apply EU AI Act compliance checks to EU-routed requests
Run safety and quality checks on targeted traffic using metadata
Run safety and quality checks on targeted traffic using metadata
Visibility
- Global rules: visible to workspace administrators only.
- Project rules: visible to all members of the scoped project.
Creating a guardrail rule
From the Guardrail Rules list, click Add New Rule. A panel opens on the right with the following fields.
General
| Field | Description |
|---|---|
| Rule Name | A display name for the guardrail rule. |
| Description | Optional context for administrators. |
| Enable Rule | Toggle to activate or deactivate the rule. When enabled, the rule is active and applied to matching requests. |
Evaluators
Select the Evaluators to run when this rule is triggered. Click Add to attach one or more evaluators from the scoped project.Execution settings
| Field | Description |
|---|---|
| Timeout | Maximum time in seconds allowed for the guardrail to complete. If the timeout is reached, the guardrail is skipped. |
Rule Builder
The Rule Builder constructs the match conditions that determine when the guardrail is triggered. Clicking Add opens a dropdown with the following condition types:| Condition | Description |
|---|---|
| Header | Match on a request header name and value. |
| Model | Match on the model being called. |
| Identity | Match on the identity making the request. |
| Metadata | Match on metadata attached to the request. |
| Project | Match on the project scope of the request. |
and. Groups themselves can be joined with either and or or. Select the operator between groups to control how they combine. Each condition can be removed with .
The builder generates a CEL (Common Expression Language) expression shown read-only in the CEL Expression Preview below. The guardrail is only triggered when the expression evaluates to true.