Initializes a new safety setting with the given category and threshold.
Details
Parameters
category
The category this safety setting should be applied to.
threshold
The threshold describing what content should be blocked.
method
The method of computing whether the threshold has been exceeded; if not specified, the default method is Severity for most models. This parameter is unused in the GoogleAI backend.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[],[]]