Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec

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

Instance Method Summary collapse

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_penaltyFloat

If specified, custom value for frequency penalty will be used. Corresponds to the JSON property frequencyPenalty

Returns:

  • (Float)


15596
15597
15598
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15596

def frequency_penalty
  @frequency_penalty
end

#language_codeString

Language code for content. Use language tags defined by BCP47. Corresponds to the JSON property languageCode

Returns:

  • (String)


15602
15603
15604
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15602

def language_code
  @language_code
end

#max_output_tokensFixnum

If specified, custom value for max output tokens will be used. Corresponds to the JSON property maxOutputTokens

Returns:

  • (Fixnum)


15607
15608
15609
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15607

def max_output_tokens
  @max_output_tokens
end

#model_idString

Specifies which Vertex model id to use for generation. Corresponds to the JSON property modelId

Returns:

  • (String)


15612
15613
15614
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15612

def model_id
  @model_id
end

#presence_penaltyFloat

If specified, custom value for presence penalty will be used. Corresponds to the JSON property presencePenalty

Returns:

  • (Float)


15617
15618
15619
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15617

def presence_penalty
  @presence_penalty
end

#seedFixnum

If specified, custom value for the seed will be used. Corresponds to the JSON property seed

Returns:

  • (Fixnum)


15622
15623
15624
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15622

def seed
  @seed
end

#temperatureFloat

If specified, custom value for the temperature will be used. Corresponds to the JSON property temperature

Returns:

  • (Float)


15627
15628
15629
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15627

def temperature
  @temperature
end

#top_kFixnum

If specified, custom value for top-k sampling will be used. Corresponds to the JSON property topK

Returns:

  • (Fixnum)


15632
15633
15634
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 15632

def top_k
  @top_k
end

#top_pFloat

If specified, custom value for nucleus sampling will be used. Corresponds to the JSON property topP

Returns:

  • (Float)


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