Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 5 KB

contentfilterreadentry.mdx

File metadata and controls

15 lines (11 loc) · 5 KB
title ContentFilterReadEntry

A custom regex content filter, with whether inference enforces it.

Fields

Field Type Required Description Example
action components.ContentFilterAction ✔️ Action taken when the pattern matches block
label OptionalNullable[str] ➖ Optional label used in redaction placeholders or error messages [API_KEY]
pattern str ✔️ A regex pattern to match against request content \b(sk-[a-zA-Z0-9]{48})\b
is_enforced 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