Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PairwiseMetricSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PairwiseMetricSpec

Returns a new instance of GoogleCloudAiplatformV1PairwiseMetricSpec.



21094
21095
21096
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21094

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#baseline_response_field_nameString

Optional. The field name of the baseline response. Corresponds to the JSON property baselineResponseFieldName

Returns:

  • (String)


21072
21073
21074
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21072

def baseline_response_field_name
  @baseline_response_field_name
end

#candidate_response_field_nameString

Optional. The field name of the candidate response. Corresponds to the JSON property candidateResponseFieldName

Returns:

  • (String)


21077
21078
21079
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21077

def candidate_response_field_name
  @candidate_response_field_name
end

#custom_output_format_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1CustomOutputFormatConfig

Spec for custom output format configuration. Corresponds to the JSON property customOutputFormatConfig



21082
21083
21084
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21082

def custom_output_format_config
  @custom_output_format_config
end

#metric_prompt_templateString

Required. Metric prompt template for pairwise metric. Corresponds to the JSON property metricPromptTemplate

Returns:

  • (String)


21087
21088
21089
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21087

def metric_prompt_template
  @metric_prompt_template
end

#system_instructionString

Optional. System instructions for pairwise metric. Corresponds to the JSON property systemInstruction

Returns:

  • (String)


21092
21093
21094
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21092

def system_instruction
  @system_instruction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21099
21100
21101
21102
21103
21104
21105
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21099

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