ContentFilterBuiltinEntry - Python SDK

ContentFilterBuiltinEntry method reference

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✔️Action taken when the builtin filter triggersblock
labelOptional[str]Read-only, system-assigned redaction placeholder derived from the slug (e.g. “[EMAIL]”, “[PHONE]”). Not settable by the caller.[EMAIL]
scan_scopeOptional[components.PromptInjectionScanScope]Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults to all_messages.user_only
slugcomponents.ContentFilterBuiltinSlug✔️The builtin filter identifierregex-prompt-injection