Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/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) ⇒ GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback

Returns a new instance of GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback.



12332
12333
12334
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12332

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

Instance Attribute Details

#block_reasonString

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

Returns:

  • (String)


12320
12321
12322
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12320

def block_reason
  @block_reason
end

#block_reason_messageString

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

Returns:

  • (String)


12325
12326
12327
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12325

def block_reason_message
  @block_reason_message
end

#safety_ratingsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyRating>

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



12330
12331
12332
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12330

def safety_ratings
  @safety_ratings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12337
12338
12339
12340
12341
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12337

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