HridaSpro Docs

Features

Guardrails

Every guardrail available in Spro — what it detects, what actions it supports, and how to configure it.

Guardrails are how Spro protects your AI applications. Every request and response that passes through your workspace can be inspected in real time, and every guardrail can be individually enabled or disabled from the dashboard — changes take effect immediately, no redeployment required.

Guardrails fall into two categories:

  • Input Guardrails — inspect and sanitize user prompts before they reach the model
  • Output Guardrails — validate and filter model responses before they reach your users

Configuring guardrails

To configure guardrails, go to Workspace → Guardrails in the dashboard. Guardrails are split into two tabs — Input and Output — matching the two stages of the request path.

For each guardrail you can:

  1. Enable or disable it with the toggle
  2. Choose an action — one of log, warn, block, or redact, depending on what should happen on a violation
  3. Tune its configuration — thresholds for moderation guardrails, limits for rate/budget guardrails, and entity selection for sensitive-data detection

Guardrail actions

ActionBehavior
logThe violation is recorded in your dashboard. The request continues normally. Use this to monitor without disrupting traffic.
warnThe violation is flagged and surfaced as a warning. The request still goes through. Use this during testing or gradual rollout.
blockThe request is stopped immediately with an HTTP 403. The model never sees the input. Use this for zero-tolerance policies.
redactSensitive values are masked in-place and the sanitized input is forwarded to the model. Available on sensitive-data guardrails only.

When a guardrail blocks a request, no tokens are consumed and no cost is incurred — the provider never sees the request.

Example: a detected input

User input:   "My email is john@example.com and my card is 4111 1111 1111 1111"With redact:  "My email is [EMAIL_ADDRESS] and my card is [CREDIT_CARD_NUMBER]"With block:   HTTP 403 — the request never reaches the model

Input Guardrails

Sensitive Information Disclosure

Prevents sensitive data exposure by inspecting and sanitizing user inputs prior to model processing. Detects and masks PII, PHI, PFI, and other confidential information to safeguard against unauthorized data leakage to LLMs.

This is the most configurable guardrail: select the entities you care about — email addresses, credit card numbers, SSNs, API keys, and more (full list below) — then choose the action (log, redact, block, or warn). Detected values are replaced with placeholder tokens such as [EMAIL_ADDRESS] or [US_SSN].

All supported entities

EntityDetects
Person NameIndividuals' names
Email AddressEmail addresses
Phone NumberPhone numbers
Date / TimestampDates and timestamps
Geographic LocationPhysical locations
Organization NameOrganization names
URLURLs
IP v4 / IPv6 AddressIP addresses
MAC AddressMAC addresses
Credit Card NumberPayment card numbers
US ABA Routing NumberUS bank routing numbers
US Bank Account NumberUS bank account numbers
International Bank Account Number (IBAN)IBANs
SWIFT CodeSWIFT/BIC codes
Hashed ValueHashed values
ASP.NET Machine KeyASP.NET machine keys
AWS Secret Access KeyAWS secret keys
US Social Security NumberUS SSNs
US Individual Taxpayer Identification Number (ITIN)US ITINs
US Passport NumberUS passport numbers
US Driver's License NumberUS driver's licenses
India Aadhaar NumberIndian Aadhaar numbers
India PAN NumberIndian PAN numbers
India GST NumberIndian GST numbers
India Voter ID NumberIndian voter IDs
India Driver's License NumberIndian driver's licenses
UK Driver's License NumberUK driver's licenses
DEA Registration NumberDEA registration numbers
Drug NameDrug names
Legal TermLegal terms

Content Moderation

A family of trained moderation models that detect harmful content in user prompts. Each supports a configurable confidence threshold:

GuardrailDetects
Sexual Content DetectionExplicit language, sexual themes, and adult content requests
NSFW / Explicit Content DetectionSexually explicit, adult, or otherwise inappropriate content
Violence DetectionThreats, descriptions of violence, and content promoting physical harm
Severe Violence DetectionExtreme violence, gore, torture, kidnapping, and graphic harm
Harassment DetectionTargeted harassment, bullying, name-calling, and intimidation
Hate Speech DetectionDiscriminatory language across protected characteristics — race, ethnicity, gender, religion, nationality, disability, sexual orientation
Hate Threatening Content DetectionThe intersection of hate speech and violent or threatening language
Self-Harm DetectionExpressions of self-harm, suicidal ideation, and psychological distress
Sexual Content Involving MinorsAny content referencing child sexual exploitation or abuse (CSAM/COPPA)
Input Toxicity DetectionBroad-spectrum toxicity — hate, harassment, threats, and abuse in one catch-all

Language Filters

GuardrailDetects
Profanity & Vulgarity FilterProfanity and vulgar expressions, including obfuscated variants — fuzzy matching plus contextual analysis
Offensive / Harassing Language FilterAbusive or derogatory terms and character-substituted variants (e.g. stup1d, idi0t)

Adversarial Input Detection

GuardrailDetects
Invisible / Hidden Text DetectionZero-width characters, invisible Unicode, and control sequences used for prompt injection, data exfiltration, or evasion
ASCII Art Attack DetectionSymbol-dense, ASCII-art, or image-like text used to obscure instructions or jailbreak payloads — pattern recognition, symbol-density thresholds, and sequence-shape heuristics
Gibberish / Nonsensical Text DetectionKeyboard mashes, high-symbol strings, spam, and corrupted copy-paste data — token entropy, symbol-to-letter ratio, and dictionary-match rate

Rate & Budget Limits

GuardrailEnforces
Request LimitRequest thresholds per minute / hour / day, per project, user, or system — protects against quota exhaustion and API abuse
Cost LimitMonthly budget threshold — LLM activity is restricted once reached
Token Usage LimitToken limits on input and output within a time window — prevents runaway generation loops and uncontrolled consumption

Output Guardrails

Output guardrails run on every model response before it is returned to your users.

GuardrailDetects
Improper Output Handling (JSON)Invalid or non-conforming JSON structures — validated and sanitized before downstream use
NSFW / Explicit Content DetectionSexually explicit or adult material in model output
Profanity & Vulgarity FilterProfanity and vulgar language in responses, including disguised variants
Output Toxicity DetectionToxic, offensive, or aggressive content, scanned in real time
Hallucination Detection ⚗️Factual errors, unsupported claims, and contradictions — cross-validated against the provided context
Comprehensive Gender Bias DetectionGender stereotypes, occupational bias, LGBTQ+ exclusion, and non-binary erasure
Comprehensive Age Bias DetectionGenerational assumptions, idiomatic ageism, and capability stereotypes
No OpenAI Reference DetectionReferences to OpenAI, ChatGPT, GPT, or o-series model identifiers — configurable pattern list
Model Apology DetectionApologies, regret, and soft refusal phrasing ("I'm sorry, I can't do that") that undermine tone consistency
Model Refusal DetectionHard refusals and policy-driven declines — logged to surface coverage gaps and alignment behavior

⚗️ Hallucination Detection is experimental — it's available to enable but has higher false-positive rates while the underlying models are refined.


What's Next