Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec
- 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
Spec for pairwise metric.
Instance Attribute Summary collapse
-
#baseline_response_field_name ⇒ String
Optional.
-
#candidate_response_field_name ⇒ String
Optional.
-
#metric_prompt_template ⇒ String
Required.
-
#system_instruction ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1PairwiseMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1PairwiseMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1PairwiseMetricSpec
Returns a new instance of GoogleCloudAiplatformV1PairwiseMetricSpec.
20094 20095 20096 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 20094 def initialize(**args) update!(**args) end |
Instance Attribute Details
#baseline_response_field_name ⇒ String
Optional. The field name of the baseline response.
Corresponds to the JSON property baselineResponseFieldName
20077 20078 20079 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 20077 def baseline_response_field_name @baseline_response_field_name end |
#candidate_response_field_name ⇒ String
Optional. The field name of the candidate response.
Corresponds to the JSON property candidateResponseFieldName
20082 20083 20084 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 20082 def candidate_response_field_name @candidate_response_field_name end |
#metric_prompt_template ⇒ String
Required. Metric prompt template for pairwise metric.
Corresponds to the JSON property metricPromptTemplate
20087 20088 20089 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 20087 def metric_prompt_template @metric_prompt_template end |
#system_instruction ⇒ String
Optional. System instructions for pairwise metric.
Corresponds to the JSON property systemInstruction
20092 20093 20094 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 20092 def system_instruction @system_instruction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20099 20100 20101 20102 20103 20104 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 20099 def update!(**args) @baseline_response_field_name = args[:baseline_response_field_name] if args.key?(:baseline_response_field_name) @candidate_response_field_name = args[:candidate_response_field_name] if args.key?(:candidate_response_field_name) @metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template) @system_instruction = args[:system_instruction] if args.key?(:system_instruction) end |