Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GeminiPreferenceExampleCompletion
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GeminiPreferenceExampleCompletion
- 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
Completion and its preference score.
Instance Attribute Summary collapse
-
#completion ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content
The structured data content of a message.
-
#score ⇒ Float
The score for the given completion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1GeminiPreferenceExampleCompletion
constructor
A new instance of GoogleCloudAiplatformV1GeminiPreferenceExampleCompletion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1GeminiPreferenceExampleCompletion
Returns a new instance of GoogleCloudAiplatformV1GeminiPreferenceExampleCompletion.
16803 16804 16805 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16803 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completion ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content
The structured data content of a message. A Content message contains a role
field, which indicates the producer of the content, and a parts field, which
contains the multi-part data of the message.
Corresponds to the JSON property completion
16796 16797 16798 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16796 def completion @completion end |
#score ⇒ Float
The score for the given completion.
Corresponds to the JSON property score
16801 16802 16803 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16801 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16808 16809 16810 16811 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16808 def update!(**args) @completion = args[:completion] if args.key?(:completion) @score = args[:score] if args.key?(:score) end |