SafetyRating interface

A safety rating associated with a GenerateContentCandidate

Signature:

export interface SafetyRating 

Properties

Property Type Description
blocked boolean
category HarmCategory
probability HarmProbability
probabilityScore number
severity HarmSeverity
severityScore number

SafetyRating.blocked

Signature:

blocked: boolean;

SafetyRating.category

Signature:

category: HarmCategory;

SafetyRating.probability

Signature:

probability: HarmProbability;

SafetyRating.probabilityScore

Signature:

probabilityScore: number;

SafetyRating.severity

Signature:

severity: HarmSeverity;

SafetyRating.severityScore

Signature:

severityScore: number;