View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetyRating (google_api_ai_platform v0.13.0)

Safety rating corresponding to the generated content.

Attributes

  • blocked (type: boolean(), default: nil) - Output only. Indicates whether the content was filtered out because of this rating.
  • category (type: String.t, default: nil) - Output only. Harm category.
  • probability (type: String.t, default: nil) - Output only. Harm probability levels in the content.
  • probabilityScore (type: number(), default: nil) - Output only. Harm probability score.
  • severity (type: String.t, default: nil) - Output only. Harm severity levels in the content.
  • severityScore (type: number(), default: nil) - Output only. Harm severity score.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetyRating{
  blocked: boolean() | nil,
  category: String.t() | nil,
  probability: String.t() | nil,
  probabilityScore: number() | nil,
  severity: String.t() | nil,
  severityScore: number() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.