Skip to content

RedactionPattern

A named pattern and the text spoken in its place.

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

A named pattern and the text spoken in its place.

Properties

PropertyTypeDescriptionDefined in
namestringLabel used in the guardrail.applied event metadata.src/guardrails/redaction.ts:30
patternRegExpPattern to match. Must carry the global flag to redact every occurrence.src/guardrails/redaction.ts:32
replacement?string | (match) => stringReplacement for each match. Remarks Overrides the guardrail-level replacement. May be a function for context-sensitive substitutions (e.g. speaking only the last four digits).src/guardrails/redaction.ts:40

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency