ConsumptionPreferences
public struct ConsumptionPreferences : Codable, Equatable
A consumption preference that the service inferred from the input content.
-
The unique, non-localized identifier of the consumption preference to which the results pertain. IDs have the form
consumption_preferences_{preference}.Declaration
Swift
public var consumptionPreferenceID: String -
The user-visible, localized name of the consumption preference.
Declaration
Swift
public var name: String -
The score for the consumption preference:
0.0: Unlikely0.5: Neutral1.0: Likely The scores for some preferences are binary and do not allow a neutral value. The score is an indication of preference based on the results inferred from the input text, not a normalized percentile.
Declaration
Swift
public var score: Double
View on GitHub
ConsumptionPreferences Structure Reference