Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::SafetyRating (v0.36.0)

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

#probability

def probability() -> ::Google::Cloud::AIPlatform::V1::SafetyRating::HarmProbability
Returns