Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePromptFeedback
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePromptFeedback
- 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
-
#block_reason ⇒ String
Blocked reason.
-
#block_reason_message ⇒ String
A readable block reason message.
-
#safety_ratings ⇒ Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRating>
Safety ratings.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiNlLlmProtoServicePromptFeedback
constructor
A new instance of CloudAiNlLlmProtoServicePromptFeedback.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiNlLlmProtoServicePromptFeedback
Returns a new instance of CloudAiNlLlmProtoServicePromptFeedback.
868 869 870 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 868 def initialize(**args) update!(**args) end |
Instance Attribute Details
#block_reason ⇒ String
Blocked reason.
Corresponds to the JSON property blockReason
856 857 858 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 856 def block_reason @block_reason end |
#block_reason_message ⇒ String
A readable block reason message.
Corresponds to the JSON property blockReasonMessage
861 862 863 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 861 def @block_reason_message end |
#safety_ratings ⇒ Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRating>
Safety ratings.
Corresponds to the JSON property safetyRatings
866 867 868 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 866 def @safety_ratings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
873 874 875 876 877 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 873 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 |