Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Content filter results for a prompt sent in the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback

Returns a new instance of GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback.



10059
10060
10061
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10059

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#block_reasonString

Output only. Blocked reason. Corresponds to the JSON property blockReason

Returns:

  • (String)


10047
10048
10049
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10047

def block_reason
  @block_reason
end

#block_reason_messageString

Output only. A readable block reason message. Corresponds to the JSON property blockReasonMessage

Returns:

  • (String)


10052
10053
10054
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10052

def block_reason_message
  @block_reason_message
end

#safety_ratingsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>

Output only. Safety ratings. Corresponds to the JSON property safetyRatings



10057
10058
10059
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10057

def safety_ratings
  @safety_ratings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10064
10065
10066
10067
10068
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10064

def update!(**args)
  @block_reason = args[:block_reason] if args.key?(:block_reason)
  @block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
  @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
end