interface CreateEvaluatorArgs<
    ExampleType extends Record<string, unknown> = Record<string, unknown>,
> {
    inputMapping?: ObjectMapping<ExampleType>;
    kind: EvaluationKind;
    name: string;
    optimizationDirection?: OptimizationDirection;
    telemetry?: TelemetryConfig;
}

Type Parameters

  • ExampleType extends Record<string, unknown> = Record<string, unknown>

Hierarchy (View Summary)

Properties

inputMapping?: ObjectMapping<ExampleType>

The mapping of the input to evaluate to the shape that the evaluator expects

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

name: string

The name of the metric that the evaluator produces E.x. "correctness"

optimizationDirection?: OptimizationDirection

If present, represents the direction in which you want the metric to be optimized E.x. "MAXIMIZE" means you want the number to be higher.

telemetry?: TelemetryConfig