Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Action | components.ContentFilterAction | ✔️ | Action taken when the pattern matches | block |
Label | optionalnullable.OptionalNullable[string] | ➖ | Optional label used in redaction placeholders or error messages | [API_KEY] |
Pattern | string | ✔️ | A regex pattern to match against request content | \b(sk-[a-zA-Z0-9]{48})\b |
IsEnforced | bool | ✔️ | Whether inference applies this pattern. False for a pattern saved before pattern validation that is too complex to run safely; it is kept but skipped until replaced. | true |