Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.
A builtin content filter entry. Builtin filters include PII detectors and the regex-based prompt injection detector.

Fields

FieldTypeRequiredDescriptionExample
actioncomponents.ContentFilterBuiltinAction:heavy_check_mark:Action taken when the builtin filter triggersblock
labelOptional[str]:heavy_minus_sign:Read-only, system-assigned redaction placeholder derived from the slug (e.g. “[EMAIL]”, “[PHONE]”). Not settable by the caller.[EMAIL]
slugcomponents.ContentFilterBuiltinSlug:heavy_check_mark:The builtin filter identifierregex-prompt-injection