View Source GoogleApi.AIPlatform.V1.Model.LearningGenaiRootSimilarityTakedownResult (google_api_ai_platform v0.5.0)

Attributes

  • allowed (type: boolean(), default: nil) - False when query or response should be taken down by any of the takedown rules, true otherwise.
  • scoredPhrases (type: list(GoogleApi.AIPlatform.V1.Model.LearningGenaiRootScoredSimilarityTakedownPhrase.t), default: nil) - List of similar phrases with score. Set only if allowed=false.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.LearningGenaiRootSimilarityTakedownResult{
  allowed: boolean() | nil,
  scoredPhrases:
    [
      GoogleApi.AIPlatform.V1.Model.LearningGenaiRootScoredSimilarityTakedownPhrase.t()
    ]
    | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.