HarmSeverity
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct HarmSeverity : DecodableProtoEnum, Hashable, Sendable
The magnitude of how harmful a model response might be for the respective HarmCategory
.
-
Negligible level of harm severity.
Declaration
Swift
public static let negligible: SafetyRating.HarmSeverity
-
Low level of harm severity.
Declaration
Swift
public static let low: SafetyRating.HarmSeverity
-
Medium level of harm severity.
Declaration
Swift
public static let medium: SafetyRating.HarmSeverity
-
High level of harm severity.
Declaration
Swift
public static let high: SafetyRating.HarmSeverity
-
Returns the raw string representation of the
HarmSeverity
value.Note
This value directly corresponds to the values in the REST API.
Declaration
Swift
public let rawValue: String