SafetySetting

Safety settings.

Fields
category enum ( HarmCategory )

Required. Harm category.

threshold enum ( HarmBlockThreshold )

Required. The harm block threshold.

method enum ( HarmBlockMethod )

Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.

JSON representation
 { 
 "category" 
 : 
 enum (  HarmCategory 
 
) 
 , 
 "threshold" 
 : 
 enum (  HarmBlockThreshold 
 
) 
 , 
 "method" 
 : 
 enum (  HarmBlockMethod 
 
) 
 } 

HarmBlockMethod

probability vs severity.

Enums
HARM_BLOCK_METHOD_UNSPECIFIED The harm block method is unspecified.
SEVERITY The harm block method uses both probability and severity scores.
PROBABILITY The harm block method uses the probability score.
Design a Mobile Site
View Site in Mobile | Classic
Share by: