Class PairwiseMetricSpec.Builder
-
- All Implemented Interfaces:
public abstract class PairwiseMetricSpec.BuilderBuilder for PairwiseMetricSpec.
-
-
Constructor Summary
Constructors Constructor Description PairwiseMetricSpec.Builder()
-
Method Summary
Modifier and Type Method Description abstract PairwiseMetricSpec.BuildermetricPromptTemplate(String metricPromptTemplate)Setter for metricPromptTemplate. PairwiseMetricSpec.BuilderclearMetricPromptTemplate()Clears the value of metricPromptTemplate field. abstract PairwiseMetricSpec.BuilderbaselineResponseFieldName(String baselineResponseFieldName)Setter for baselineResponseFieldName. PairwiseMetricSpec.BuilderclearBaselineResponseFieldName()Clears the value of baselineResponseFieldName field. abstract PairwiseMetricSpec.BuildercandidateResponseFieldName(String candidateResponseFieldName)Setter for candidateResponseFieldName. PairwiseMetricSpec.BuilderclearCandidateResponseFieldName()Clears the value of candidateResponseFieldName field. abstract PairwiseMetricSpec.BuildercustomOutputFormatConfig(CustomOutputFormatConfig customOutputFormatConfig)Setter for customOutputFormatConfig. PairwiseMetricSpec.BuildercustomOutputFormatConfig(CustomOutputFormatConfig.Builder customOutputFormatConfigBuilder)Setter for customOutputFormatConfig builder. PairwiseMetricSpec.BuilderclearCustomOutputFormatConfig()Clears the value of customOutputFormatConfig field. abstract PairwiseMetricSpec.BuildersystemInstruction(String systemInstruction)Setter for systemInstruction. PairwiseMetricSpec.BuilderclearSystemInstruction()Clears the value of systemInstruction field. abstract PairwiseMetricSpecbuild()-
-
Method Detail
-
metricPromptTemplate
abstract PairwiseMetricSpec.Builder metricPromptTemplate(String metricPromptTemplate)
Setter for metricPromptTemplate.
metricPromptTemplate: Required. Metric prompt template for pairwise metric.
-
clearMetricPromptTemplate
@CanIgnoreReturnValue() PairwiseMetricSpec.Builder clearMetricPromptTemplate()
Clears the value of metricPromptTemplate field.
-
baselineResponseFieldName
abstract PairwiseMetricSpec.Builder baselineResponseFieldName(String baselineResponseFieldName)
Setter for baselineResponseFieldName.
baselineResponseFieldName: Optional. The field name of the baseline response.
-
clearBaselineResponseFieldName
@CanIgnoreReturnValue() PairwiseMetricSpec.Builder clearBaselineResponseFieldName()
Clears the value of baselineResponseFieldName field.
-
candidateResponseFieldName
abstract PairwiseMetricSpec.Builder candidateResponseFieldName(String candidateResponseFieldName)
Setter for candidateResponseFieldName.
candidateResponseFieldName: Optional. The field name of the candidate response.
-
clearCandidateResponseFieldName
@CanIgnoreReturnValue() PairwiseMetricSpec.Builder clearCandidateResponseFieldName()
Clears the value of candidateResponseFieldName field.
-
customOutputFormatConfig
abstract PairwiseMetricSpec.Builder customOutputFormatConfig(CustomOutputFormatConfig customOutputFormatConfig)
Setter for customOutputFormatConfig.
customOutputFormatConfig: Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
-
customOutputFormatConfig
@CanIgnoreReturnValue() PairwiseMetricSpec.Builder customOutputFormatConfig(CustomOutputFormatConfig.Builder customOutputFormatConfigBuilder)
Setter for customOutputFormatConfig builder.
customOutputFormatConfig: Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
-
clearCustomOutputFormatConfig
@CanIgnoreReturnValue() PairwiseMetricSpec.Builder clearCustomOutputFormatConfig()
Clears the value of customOutputFormatConfig field.
-
systemInstruction
abstract PairwiseMetricSpec.Builder systemInstruction(String systemInstruction)
Setter for systemInstruction.
systemInstruction: Optional. System instructions for pairwise metric.
-
clearSystemInstruction
@CanIgnoreReturnValue() PairwiseMetricSpec.Builder clearSystemInstruction()
Clears the value of systemInstruction field.
-
build
abstract PairwiseMetricSpec build()
-
-
-
-