Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PointwiseMetricSpec

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 pointwise metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PointwiseMetricSpec

Returns a new instance of GoogleCloudAiplatformV1PointwiseMetricSpec.



21268
21269
21270
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21268

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

Instance Attribute Details

#metric_prompt_templateString

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

Returns:

  • (String)


21261
21262
21263
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21261

def metric_prompt_template
  @metric_prompt_template
end

#system_instructionString

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

Returns:

  • (String)


21266
21267
21268
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21266

def system_instruction
  @system_instruction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21273
21274
21275
21276
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21273

def update!(**args)
  @metric_prompt_template = args[:metric_prompt_template] if args.key?(:metric_prompt_template)
  @system_instruction = args[:system_instruction] if args.key?(:system_instruction)
end