Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Content generation specification.
Instance Attribute Summary collapse
-
#frequency_penalty ⇒ Float
If specified, custom value for frequency penalty will be used.
-
#language_code ⇒ String
Language code for content.
-
#max_output_tokens ⇒ Fixnum
If specified, custom value for max output tokens will be used.
-
#model_id ⇒ String
Specifies which Vertex model id to use for generation.
-
#presence_penalty ⇒ Float
If specified, custom value for presence penalty will be used.
-
#seed ⇒ Fixnum
If specified, custom value for the seed will be used.
-
#temperature ⇒ Float
If specified, custom value for the temperature will be used.
-
#top_k ⇒ Fixnum
If specified, custom value for top-k sampling will be used.
-
#top_p ⇒ Float
If specified, custom value for nucleus sampling will be used.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec
Returns a new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec.
5393 5394 5395 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5393 def initialize(**args) update!(**args) end |
Instance Attribute Details
#frequency_penalty ⇒ Float
If specified, custom value for frequency penalty will be used.
Corresponds to the JSON property frequencyPenalty
5350 5351 5352 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5350 def frequency_penalty @frequency_penalty end |
#language_code ⇒ String
Language code for content. Use language tags defined by BCP47.
Corresponds to the JSON property languageCode
5356 5357 5358 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5356 def language_code @language_code end |
#max_output_tokens ⇒ Fixnum
If specified, custom value for max output tokens will be used.
Corresponds to the JSON property maxOutputTokens
5361 5362 5363 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5361 def max_output_tokens @max_output_tokens end |
#model_id ⇒ String
Specifies which Vertex model id to use for generation.
Corresponds to the JSON property modelId
5366 5367 5368 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5366 def model_id @model_id end |
#presence_penalty ⇒ Float
If specified, custom value for presence penalty will be used.
Corresponds to the JSON property presencePenalty
5371 5372 5373 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5371 def presence_penalty @presence_penalty end |
#seed ⇒ Fixnum
If specified, custom value for the seed will be used.
Corresponds to the JSON property seed
5376 5377 5378 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5376 def seed @seed end |
#temperature ⇒ Float
If specified, custom value for the temperature will be used.
Corresponds to the JSON property temperature
5381 5382 5383 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5381 def temperature @temperature end |
#top_k ⇒ Fixnum
If specified, custom value for top-k sampling will be used.
Corresponds to the JSON property topK
5386 5387 5388 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5386 def top_k @top_k end |
#top_p ⇒ Float
If specified, custom value for nucleus sampling will be used.
Corresponds to the JSON property topP
5391 5392 5393 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5391 def top_p @top_p end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5398 def update!(**args) @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty) @language_code = args[:language_code] if args.key?(:language_code) @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens) @model_id = args[:model_id] if args.key?(:model_id) @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty) @seed = args[:seed] if args.key?(:seed) @temperature = args[:temperature] if args.key?(:temperature) @top_k = args[:top_k] if args.key?(:top_k) @top_p = args[:top_p] if args.key?(:top_p) end |