Class PointwiseMetricSpec.Builder
- Enclosing class:
- PointwiseMetricSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PointwiseMetricSpecbuild()Clears the value of customOutputFormatConfig field.Clears the value of metricPromptTemplate field.Clears the value of systemInstruction field.abstract PointwiseMetricSpec.BuildercustomOutputFormatConfig(CustomOutputFormatConfig customOutputFormatConfig) Setter for customOutputFormatConfig.customOutputFormatConfig(CustomOutputFormatConfig.Builder customOutputFormatConfigBuilder) Setter for customOutputFormatConfig builder.abstract PointwiseMetricSpec.BuildermetricPromptTemplate(String metricPromptTemplate) Setter for metricPromptTemplate.abstract PointwiseMetricSpec.BuildersystemInstruction(String systemInstruction) Setter for systemInstruction.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricPromptTemplate
Setter for metricPromptTemplate.metricPromptTemplate: Required. Metric prompt template for pointwise metric.
-
clearMetricPromptTemplate
Clears the value of metricPromptTemplate field. -
customOutputFormatConfig
public abstract PointwiseMetricSpec.Builder customOutputFormatConfig(CustomOutputFormatConfig customOutputFormatConfig) Setter for customOutputFormatConfig.customOutputFormatConfig: Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
-
customOutputFormatConfig
@CanIgnoreReturnValue public PointwiseMetricSpec.Builder customOutputFormatConfig(CustomOutputFormatConfig.Builder customOutputFormatConfigBuilder) Setter for customOutputFormatConfig builder.customOutputFormatConfig: Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
-
clearCustomOutputFormatConfig
Clears the value of customOutputFormatConfig field. -
systemInstruction
Setter for systemInstruction.systemInstruction: Optional. System instructions for pointwise metric.
-
clearSystemInstruction
Clears the value of systemInstruction field. -
build
-