Interface protos.google.ai.generativelanguage.v1beta2.ISafetyRating (2.8.0)

Properties of a SafetyRating.

Package

@google-ai/generativelanguage

Properties

category

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

SafetyRating category

probability

probability?: (google.ai.generativelanguage.v1beta2.SafetyRating.HarmProbability|keyof typeof google.ai.generativelanguage.v1beta2.SafetyRating.HarmProbability|null);

SafetyRating probability