Class PointwiseMetricSpec.Builder
-
- All Implemented Interfaces:
public abstract class PointwiseMetricSpec.BuilderBuilder for PointwiseMetricSpec.
-
-
Constructor Summary
Constructors Constructor Description PointwiseMetricSpec.Builder()
-
Method Summary
Modifier and Type Method Description abstract PointwiseMetricSpec.BuildermetricPromptTemplate(String metricPromptTemplate)Setter for metricPromptTemplate. PointwiseMetricSpec.BuilderclearMetricPromptTemplate()Clears the value of metricPromptTemplate field. abstract PointwiseMetricSpec.BuildercustomOutputFormatConfig(CustomOutputFormatConfig customOutputFormatConfig)Setter for customOutputFormatConfig. PointwiseMetricSpec.BuildercustomOutputFormatConfig(CustomOutputFormatConfig.Builder customOutputFormatConfigBuilder)Setter for customOutputFormatConfig builder. PointwiseMetricSpec.BuilderclearCustomOutputFormatConfig()Clears the value of customOutputFormatConfig field. abstract PointwiseMetricSpec.BuildersystemInstruction(String systemInstruction)Setter for systemInstruction. PointwiseMetricSpec.BuilderclearSystemInstruction()Clears the value of systemInstruction field. abstract PointwiseMetricSpecbuild()-
-
Method Detail
-
metricPromptTemplate
abstract PointwiseMetricSpec.Builder metricPromptTemplate(String metricPromptTemplate)
Setter for metricPromptTemplate.
metricPromptTemplate: Required. Metric prompt template for pointwise metric.
-
clearMetricPromptTemplate
@CanIgnoreReturnValue() PointwiseMetricSpec.Builder clearMetricPromptTemplate()
Clears the value of metricPromptTemplate field.
-
customOutputFormatConfig
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() 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
@CanIgnoreReturnValue() PointwiseMetricSpec.Builder clearCustomOutputFormatConfig()
Clears the value of customOutputFormatConfig field.
-
systemInstruction
abstract PointwiseMetricSpec.Builder systemInstruction(String systemInstruction)
Setter for systemInstruction.
systemInstruction: Optional. System instructions for pointwise metric.
-
clearSystemInstruction
@CanIgnoreReturnValue() PointwiseMetricSpec.Builder clearSystemInstruction()
Clears the value of systemInstruction field.
-
build
abstract PointwiseMetricSpec build()
-
-
-
-