View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes (google_api_discovery_engine v0.27.0)

Safety Attribute categories and their associated confidence scores.

Attributes

  • categories (type: list(String.t), default: nil) - The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
  • scores (type: list(number()), default: nil) - The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes{
    categories: [String.t()] | nil,
    scores: [number()] | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.