ReadonlychoicesThe criteria every example is classified against
Optional ReadonlyinputReadonlykindThe kind of the evaluation. Also known as the "kind" of evaluator.
ReadonlymodelThe model to use for classification
ReadonlynameThe name of the evaluator / the metric that it measures
Optional ReadonlyoptimizationThe direction to optimize the numeric evaluation score E.x. "MAXIMIZE" means that the higher the score, the better the evaluation
ReadonlypromptOptional ReadonlytelemetryList out the prompt template variables needed to perform evaluation
Binds the input mapping to the evaluator. It makes a copy of the evaluator and returns it.
The function that evaluates the example
An LLM evaluator that classifies an example against several criteria in one backend request, producing one CriterionResult per criterion in the order the criteria were given.
Create one with
createClassificationEvaluatorby passing a list of criteria aschoices.