SafetyRating

class SafetyRating


An assessment of the potential harm of some generated content.

The rating will be restricted to a particular category.

Summary

Public properties

Boolean?

Indicates whether the content was blocked due to safety concerns.

HarmCategory

The category of harm being assessed (e.g., Hate speech).

HarmProbability

The likelihood of the content causing harm.

Float

A numerical score representing the probability of harm, between 0 and

HarmSeverity?

The severity of the potential harm.

Float?

A numerical score representing the severity of harm.

Public properties

blocked

val blockedBoolean?

Indicates whether the content was blocked due to safety concerns.

category

val categoryHarmCategory

The category of harm being assessed (e.g., Hate speech).

probability

val probabilityHarmProbability

The likelihood of the content causing harm.

probabilityScore

val probabilityScoreFloat

A numerical score representing the probability of harm, between 0 and

severity

val severityHarmSeverity?

The severity of the potential harm.

severityScore

val severityScoreFloat?

A numerical score representing the severity of harm.