ContentFilterBuiltinEntryInput - Python SDK

ContentFilterBuiltinEntryInput method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

A builtin content filter entry for create/update requests. Labels are system-assigned and cannot be set by the caller.

Fields

FieldTypeRequiredDescriptionExample
actioncomponents.ContentFilterBuiltinAction✔️Action taken when the builtin filter triggersblock
labelOptional[str]: warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: labels are system-assigned and cannot be set by the caller. Accepted for backward compatibility but silently ignored.
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