ContentFilterEntry - Python SDK

ContentFilterEntry method reference

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✔️Action taken when the pattern matchesblock
labelOptionalNullable[str]Optional label used in redaction placeholders or error messages[API_KEY]
patternstr✔️A regex pattern to match against request content\b(sk-[a-zA-Z0-9]{48})\b