ContentFilterBuiltinEntryInput - Go SDK

ContentFilterBuiltinEntryInput type definition

The Go 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
Label*string: 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.
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