Interface protos.google.ai.generativelanguage.v1beta3.ISafetySetting (2.6.0)

Properties of a SafetySetting.

Package

@google-ai/generativelanguage

Properties

category

category?: (google.ai.generativelanguage.v1beta3.HarmCategory|keyof typeof google.ai.generativelanguage.v1beta3.HarmCategory|null);

SafetySetting category

threshold

threshold?: (google.ai.generativelanguage.v1beta3.SafetySetting.HarmBlockThreshold|keyof typeof google.ai.generativelanguage.v1beta3.SafetySetting.HarmBlockThreshold|null);

SafetySetting threshold