A class that constructs an evaluator based on an evaluate function.

Type Parameters

  • RecordType extends Record<string, unknown>

Hierarchy (View Summary)

Constructors

Properties

evaluateFn: (args: RecordType) => Promise<EvaluationResult>
inputMapping?: ObjectMapping<RecordType>

The kind of the evaluation. Also known as the "kind" of evaluator.

name: string

The name of the evaluator / the metric that it measures

optimizationDirection?: OptimizationDirection

The direction to optimize the numeric evaluation score E.x. "MAXIMIZE" means that the higher the score, the better the evaluation

telemetry?: TelemetryConfig

Methods