QualityEvaluatorBase class abstract
Shared evaluation loop for AI-based quality evaluators (1–5 scale).
Subclasses provide the metric name and evaluation instructions; this class handles calling the model, parsing the tagged response, and interpreting the score.
Constructors
Properties
-
evaluationMetricNames
→ List<
String> -
The names of the EvaluationMetrics produced by this evaluator.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildEvaluationInstructions(
List< ChatMessage> messages, ChatResponse modelResponse, List<EvaluationContext> additionalContext) → List<ChatMessage> ? - Builds the evaluation instructions (system + user messages).
-
evaluate(
Iterable< ChatMessage> messages, ChatResponse modelResponse, {ChatConfiguration? chatConfiguration, Iterable<EvaluationContext> ? additionalContext, CancellationToken? cancellationToken}) → Future<EvaluationResult> -
Evaluates
modelResponseand returns an EvaluationResult.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited