Class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Overview
Context about the input that will be used to help on the classification.
Instance Attribute Summary collapse
-
#prompt ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksAisafetyV1alphaClassifyContentRequestContext
constructor
A new instance of GoogleChecksAisafetyV1alphaClassifyContentRequestContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksAisafetyV1alphaClassifyContentRequestContext
Returns a new instance of GoogleChecksAisafetyV1alphaClassifyContentRequestContext.
152 153 154 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#prompt ⇒ String
Optional. Prompt that generated the model response.
Corresponds to the JSON property prompt
150 151 152 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 150 def prompt @prompt end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
157 158 159 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 157 def update!(**args) @prompt = args[:prompt] if args.key?(:prompt) end |