Class LlmContentFilter


public class LlmContentFilter extends ObjectWithJsonToString
Azure OpenAI content-filter severities for the four core harm categories (hate, sexual, violence, self_harm). Azure annotates every completion with these results — content_filter_results on each choice and prompt_filter_results at the top level — which agents read to detect when a response was filtered.

Each category carries a severity of safe, low, medium or high (default safe). Azure's default policy filters content at medium or high, so the derived filtered flag is true at those severities. Used both to annotate a normal Azure response and, on the chaos path, to shape a content-filter block.

Additive/opt-in — an absent LlmContentFilter leaves Azure responses unchanged. Follows the model field/withX/getter convention so it round-trips through the schema-validated expectation JSON.