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

View Source

Safety settings.

Attributes

  • category (type: String.t, default: nil) - Required. Harm category.
  • threshold (type: String.t, default: nil) - Required. The harm block threshold.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpecSafetySetting{
    category: String.t() | nil,
    threshold: String.t() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.