Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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) ⇒ GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec
Returns a new instance of GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec.
15639 15640 15641 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15639 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
15596 15597 15598 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15596 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
15602 15603 15604 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15602 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
15607 15608 15609 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15607 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
15612 15613 15614 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15612 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
15617 15618 15619 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15617 def presence_penalty @presence_penalty end |
#seed ⇒ Fixnum
If specified, custom value for the seed will be used.
Corresponds to the JSON property seed
15622 15623 15624 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15622 def seed @seed end |
#temperature ⇒ Float
If specified, custom value for the temperature will be used.
Corresponds to the JSON property temperature
15627 15628 15629 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15627 def temperature @temperature end |
#top_k ⇒ Fixnum
If specified, custom value for top-k sampling will be used.
Corresponds to the JSON property topK
15632 15633 15634 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15632 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
15637 15638 15639 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15637 def top_p @top_p end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15644 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 |