Skip to main content

Function: formatEvaluatorExamples

formatEvaluatorExamples(evaluators): string

Formats evaluator examples into a readable string, replacing placeholders with generated names.

Parameters

NameTypeDescription
evaluatorsEvaluator[]An array of evaluator objects, each containing examples to format.

Returns

string

A string that presents each evaluator example in a structured format, including context, messages, and outcomes, with placeholders replaced by generated names.