Class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#promptString

Optional. Prompt that generated the model response. Corresponds to the JSON property prompt

Returns:

  • (String)


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