Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::SafetyRating.
Safety rating corresponding to the generated content.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#blocked
def blocked() -> ::Boolean
Returns
- (::Boolean) — Output only. Indicates whether the content was filtered out because of this rating.
#category
def category() -> ::Google::Cloud::AIPlatform::V1::HarmCategory
Returns
- (::Google::Cloud::AIPlatform::V1::HarmCategory) — Output only. Harm category.
#probability
def probability() -> ::Google::Cloud::AIPlatform::V1::SafetyRating::HarmProbability
Returns
- (::Google::Cloud::AIPlatform::V1::SafetyRating::HarmProbability) — Output only. Harm probability levels in the content.