class RubyLLM::ContentFilter

A ContentFilter is one verdict of the provider’s content filtering on a request or its response, such as Azure’s hate or protected material filters. They appear on Message#content_filters for providers that report them, whether or not they stopped the response, so you can see why a reply ended with Message#content_filtered? or what came close.

response = chat.ask "Summarize this paper"
response.content_filtered?                       # => true
response.content_filters.select(&:filtered?).map(&:category) # => ["hate"]

A verdict names a category and a severity, never the text it judged.