Skip to main content
Dome’s configuration system lets you precisely control which guards run, how they execute, and what detectors they use. This guide covers all configuration options.

Configuration Hierarchy

Dome organizes protection in three levels:
Guardrail (input/output)
    └── Guard (security, moderation, privacy)
            └── Detector (specific detection method)
Each level has its own configuration options that can be customized.

Guardrail Configuration

Guardrail Options

OptionTypeDefaultDescription
input-guardsList[]Guards to run on input
output-guardsList[]Guards to run on output
input-early-exitBooleanTrueStop on first input flag
input-run-parallelBooleanFalseRun input guards in parallel
output-early-exitBooleanTrueStop on first output flag
output-run-parallelBooleanFalseRun output guards in parallel

Execution Modes

  • Early Exit (default): Stops processing when the first guard flags content. Faster for rejecting clearly malicious input.
  • Complete Execution: Runs all guards regardless of flags. Useful for comprehensive logging.
Parallel Execution: Runs guards simultaneously for lower latency.

Guard Configuration

Guard Types

TypeUse CaseAvailable Detectors
securityAdversarial attacksPrompt injection, encoding detection
moderationHarmful contentToxicity, profanity, hate speech
privacySensitive dataPII detection, secrets
integrityData qualityFormat validation (experimental)
genericCustom logicUser-defined detectors

Guard Options

OptionTypeDefaultDescription
typeStringRequiredGuard category
methodsListRequiredDetectors to use
early-exitBooleanTrueStop on first detector flag
run-parallelBooleanFalseRun detectors in parallel
blocked-responseStringDefaultCustom block message

Detector Configuration

Here are some of the available detectors: Security Detectors:
DetectorDescriptionOptions
prompt-injection-mbertMultilingual BERT modelthreshold
prompt-injection-deberta-v3-baseDeBERTa v3 modelthreshold
encoding-heuristicsBase64, Unicode tricksNone
security-embeddingsSemantic similaritythreshold, top_k
security-llmLLM-based detectionmodel_name
Moderation Detectors:
DetectorDescriptionOptions
moderation-flashtextFast keyword matchingwordlist
moderation-debertaNeural toxicity classifierthreshold
moderations-oai-apiOpenAI Moderation APINone
moderation-llamaguardLlama Guard modelthreshold
Privacy Detectors:
DetectorDescriptionOptions
privacy-presidioPII entity recognitionentities, threshold
detect-secretsCredential detectionNone

Work in Progress

The programmatic protection capabilities and Dome integrations are currently in private preview and subject to change.

Next Steps

Use Guardrails

Runtime integration patterns

Custom Detectors

Build your own detectors

Observability

Monitoring and tracing
Last modified on April 20, 2026