Safety specification. There are two use cases: 1. when only safetySpec.enable is set, the BLOCK_LOW_AND_ABOVE threshold will be applied for all categories. 2. when safetySpec.enable is set and some safetySettings are set, only specified safetySettings are applied.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[[["The `SafetySpec` feature allows enabling safety filtering on answer responses, with a default setting of `false`."],["When `safetySpec.enable` is true, you can configure specific `safetySettings` or default to `BLOCK_LOW_AND_ABOVE` for all categories."],["`SafetySetting` allows specifying a `category` of harm and setting a `threshold` for blocking."],["`HarmBlockThreshold` defines levels of probability for blocking, ranging from `BLOCK_LOW_AND_ABOVE` to `BLOCK_ONLY_HIGH`, with options to block none (`BLOCK_NONE`) or disable the filter entirely (`OFF`)."]]],[]]