View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback (google_api_ai_platform v0.13.0)

Content filter results for a prompt sent in the request.

Attributes

  • blockReason (type: String.t, default: nil) - Output only. Blocked reason.
  • blockReasonMessage (type: String.t, default: nil) - Output only. A readable block reason message.
  • safetyRatings (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetyRating.t), default: nil) - Output only. Safety ratings.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback{
    blockReason: String.t() | nil,
    blockReasonMessage: String.t() | nil,
    safetyRatings:
      [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SafetyRating.t()]
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.