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
Returns
- (::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback::BlockedReason) — Output only. Blocked reason.
#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
- (::Array<::Google::Cloud::AIPlatform::V1::SafetyRating>) — Output only. Safety ratings.