Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiPreferenceExample
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiPreferenceExample
- 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
Input example for preference optimization.
Instance Attribute Summary collapse
-
#completions ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiPreferenceExampleCompletion>
List of completions for a given prompt.
-
#contents ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>
Multi-turn contents that represents the Prompt.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GeminiPreferenceExample
constructor
A new instance of GoogleCloudAiplatformV1beta1GeminiPreferenceExample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GeminiPreferenceExample
Returns a new instance of GoogleCloudAiplatformV1beta1GeminiPreferenceExample.
25027 25028 25029 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25027 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completions ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GeminiPreferenceExampleCompletion>
List of completions for a given prompt.
Corresponds to the JSON property completions
25020 25021 25022 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25020 def completions @completions end |
#contents ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>
Multi-turn contents that represents the Prompt.
Corresponds to the JSON property contents
25025 25026 25027 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25025 def contents @contents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25032 25033 25034 25035 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25032 def update!(**args) @completions = args[:completions] if args.key?(:completions) @contents = args[:contents] if args.key?(:contents) end |