Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
- 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
-
#block_reason ⇒ String
Output only.
-
#block_reason_message ⇒ String
Output only.
-
#safety_ratings ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
constructor
A new instance of GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
Returns a new instance of GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback.
11147 11148 11149 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#block_reason ⇒ String
Output only. Blocked reason.
Corresponds to the JSON property blockReason
11135 11136 11137 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11135 def block_reason @block_reason end |
#block_reason_message ⇒ String
Output only. A readable block reason message.
Corresponds to the JSON property blockReasonMessage
11140 11141 11142 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11140 def @block_reason_message end |
#safety_ratings ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>
Output only. Safety ratings.
Corresponds to the JSON property safetyRatings
11145 11146 11147 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11145 def @safety_ratings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11152 11153 11154 11155 11156 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11152 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 |