GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaSafetyRating (google_api_discovery_engine v0.28.0)

View Source

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

t()

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

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.