Builder

public abstract class Builder

Builder for PairwiseMetricSpec.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public abstract PairwiseMetricSpec.Builder baselineResponseFieldName(String baselineResponseFieldName)
Setter for baselineResponseFieldName.
Link copied to clipboard
public abstract PairwiseMetricSpec build()
Link copied to clipboard
public abstract PairwiseMetricSpec.Builder candidateResponseFieldName(String candidateResponseFieldName)
Setter for candidateResponseFieldName.
Link copied to clipboard
Clears the value of baselineResponseFieldName field.
Link copied to clipboard
Clears the value of candidateResponseFieldName field.
Link copied to clipboard
Clears the value of customOutputFormatConfig field.
Link copied to clipboard
@CanIgnoreReturnValue()
public PairwiseMetricSpec.Builder clearMetricPromptTemplate()
Clears the value of metricPromptTemplate field.
Link copied to clipboard
@CanIgnoreReturnValue()
public PairwiseMetricSpec.Builder clearSystemInstruction()
Clears the value of systemInstruction field.
Link copied to clipboard
Setter for customOutputFormatConfig.
@CanIgnoreReturnValue()
public PairwiseMetricSpec.Builder customOutputFormatConfig(CustomOutputFormatConfig.Builder customOutputFormatConfigBuilder)
Setter for customOutputFormatConfig builder.
Link copied to clipboard
public abstract PairwiseMetricSpec.Builder metricPromptTemplate(String metricPromptTemplate)
Setter for metricPromptTemplate.
Link copied to clipboard
public abstract PairwiseMetricSpec.Builder systemInstruction(String systemInstruction)
Setter for systemInstruction.