Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::SafetyRating (v0.59.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

#probability_score

def probability_score() -> ::Float
Returns
  • (::Float) — Output only. Harm probability score.

#severity

def severity() -> ::Google::Cloud::AIPlatform::V1::SafetyRating::HarmSeverity
Returns

#severity_score

def severity_score() -> ::Float
Returns
  • (::Float) — Output only. Harm severity score.