Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.
A custom regex content filter that scans request messages for matching patterns.

Fields

FieldTypeRequiredDescriptionExample
actioncomponents.ContentFilterAction:heavy_check_mark:Action taken when the pattern matchesblock
labelOptionalNullable[str]:heavy_minus_sign:Optional label used in redaction placeholders or error messages[API_KEY]
patternstr:heavy_check_mark:A regex pattern to match against request content\b(sk-[a-zA-Z0-9]{48})\b