Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseMetricSpec
- 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
Spec for pairwise metric.
Instance Attribute Summary collapse
-
#baseline_response_field_name ⇒ String
Optional.
-
#candidate_response_field_name ⇒ String
Optional.
-
#custom_output_format_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutputFormatConfig
Spec for custom output format configuration.
-
#metric_prompt_template ⇒ String
Required.
-
#system_instruction ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1PairwiseMetricSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1PairwiseMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1PairwiseMetricSpec
Returns a new instance of GoogleCloudAiplatformV1beta1PairwiseMetricSpec.
32503 32504 32505 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32503 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
32481 32482 32483 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32481 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
32486 32487 32488 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32486 def candidate_response_field_name @candidate_response_field_name end |
#custom_output_format_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomOutputFormatConfig
Spec for custom output format configuration.
Corresponds to the JSON property customOutputFormatConfig
32491 32492 32493 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32491 def custom_output_format_config @custom_output_format_config end |
#metric_prompt_template ⇒ String
Required. Metric prompt template for pairwise metric.
Corresponds to the JSON property metricPromptTemplate
32496 32497 32498 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32496 def metric_prompt_template @metric_prompt_template end |
#system_instruction ⇒ String
Optional. System instructions for pairwise metric.
Corresponds to the JSON property systemInstruction
32501 32502 32503 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32501 def system_instruction @system_instruction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32508 32509 32510 32511 32512 32513 32514 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32508 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) @custom_output_format_config = args[:custom_output_format_config] if args.key?(:custom_output_format_config) @metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template) @system_instruction = args[:system_instruction] if args.key?(:system_instruction) end |