Class SafetyAttributes (0.11.11)

SafetyAttributes(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Safety Attribute categories and their associated confidence scores.

Attributes

NameDescription
categories MutableSequence[str]
The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
scores MutableSequence[float]
The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.