ContentFilterBuiltinEntry - Go SDK

ContentFilterBuiltinEntry type definition

The Go 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
Label*stringRead-only, system-assigned redaction placeholder derived from the slug (e.g. “[EMAIL]”, “[PHONE]”). Not settable by the caller.[EMAIL]
ScanScope*components.PromptInjectionScanScopeWhich 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