View Source GoogleApi.Checks.V1alpha.Model.GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult (google_api_checks v0.5.0)

Result for one policy against the corresponding input.

Attributes

  • policyType (type: String.t, default: nil) - Type of the policy.
  • score (type: number(), default: nil) - Final score for the results of this policy.
  • violationResult (type: String.t, default: nil) - Result of the classification for the policy.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Checks.V1alpha.Model.GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult{
    policyType: String.t() | nil,
    score: number() | nil,
    violationResult: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.