Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Optional settings for translation prompt.
Instance Attribute Summary collapse
-
#number_of_shots ⇒ Fixnum
How many shots to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption.
31797 31798 31799 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31797 def initialize(**args) update!(**args) end |
Instance Attribute Details
#number_of_shots ⇒ Fixnum
How many shots to use.
Corresponds to the JSON property numberOfShots
31795 31796 31797 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31795 def number_of_shots @number_of_shots end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31802 31803 31804 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31802 def update!(**args) @number_of_shots = args[:number_of_shots] if args.key?(:number_of_shots) end |