Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.27 KB

File metadata and controls

65 lines (39 loc) · 1.27 KB

google.generativeai.protos.SafetySetting

View source on GitHub

Safety setting, affecting the safety-blocking behavior.

Passing a safety setting for a category changes the allowed probability that content is blocked.

Attributes

category

google.ai.generativelanguage.HarmCategory

Required. The category for this setting.

threshold

google.ai.generativelanguage.SafetySetting.HarmBlockThreshold

Required. Controls the probability threshold at which harm is blocked.

Child Classes

class HarmBlockThreshold