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

Properties of a SafetySetting.

Package

@google-ai/generativelanguage

Properties

category

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

SafetySetting category

threshold

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

SafetySetting threshold