Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback (v0.42.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback.

Content filter results for a prompt sent in the request.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#block_reason

def block_reason() -> ::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback::BlockedReason

#block_reason_message

def block_reason_message() -> ::String
Returns
  • (::String) — Output only. A readable block reason message.

#safety_ratings

def safety_ratings() -> ::Array<::Google::Cloud::AIPlatform::V1::SafetyRating>
Returns