OptionalcategoryRequired. Harm category.
OptionalmethodOptional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. This field is not supported in Gemini API.
OptionalthresholdRequired. The harm block threshold.
Safety settings.