Class SafetyAttributes (0.12.2)

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

Safety Attribute categories and their associated confidence scores.

Attributes

Name Description
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.