Skip to main content

@okcashpro/okai v0.1.7-alpha.1 / formatEvaluatorExamples

Function: formatEvaluatorExamples()

formatEvaluatorExamples(evaluators): string

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

Parameters

evaluators: Evaluator[]

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.

Defined in

packages/core/src/evaluators.ts:55