SafetySpec

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.

JSON representation
{
  "enable": boolean
}
Fields
enable

boolean

Enable the safety filtering on the answer response. It is false by default.