Skip to content

PatternRedactionOptions

Options for createPatternRedactionGuardrail.

Defined in: src/guardrails/redaction.ts:44

Options for createPatternRedactionGuardrail.

Properties

PropertyTypeDefault valueDescriptionDefined in
name?string'pattern-redaction'Guardrail name reported in events.src/guardrails/redaction.ts:58
patternsreadonly RedactionPattern[]undefinedPatterns to redact, applied in order.src/guardrails/redaction.ts:46
replacement?string'[redacted]'Default replacement for patterns without their own.src/guardrails/redaction.ts:52
stages?readonly GuardrailStage[]both stagesStages at which to run.src/guardrails/redaction.ts:64

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency