Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Optional settings for translation prompt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption

Returns a new instance of GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption.



25797
25798
25799
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25797

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#number_of_shotsFixnum

How many shots to use. Corresponds to the JSON property numberOfShots

Returns:

  • (Fixnum)


25795
25796
25797
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25795

def number_of_shots
  @number_of_shots
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



25802
25803
25804
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25802

def update!(**args)
  @number_of_shots = args[:number_of_shots] if args.key?(:number_of_shots)
end