PairwiseMetricSpec class final
Spec for pairwise metric.
- Inheritance
-
- Object
- ProtoMessage
- PairwiseMetricSpec
Constructors
- PairwiseMetricSpec({required String? metricPromptTemplate, String candidateResponseFieldName = '', String baselineResponseFieldName = '', String? systemInstruction, CustomOutputFormatConfig? customOutputFormatConfig})
- PairwiseMetricSpec.fromJson(Object? j)
-
factory
Properties
- baselineResponseFieldName → String
-
Optional. The field name of the baseline response.
final
- candidateResponseFieldName → String
-
Optional. The field name of the candidate response.
final
- 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_choiceandexplanationfields in the corresponding metric result will be empty.final - hashCode → int
-
The hash code for this object.
no setterinherited
- metricPromptTemplate → String?
-
Required. Metric prompt template for pairwise metric.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemInstruction → String?
-
Optional. System instructions for pairwise metric.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String