parea-ai
Version:
Client SDK library to connect to Parea AI.
23 lines (22 loc) • 968 B
TypeScript
import { EvalFunction, EvaluationResult, TraceLog } from '../../types';
import { TraceManager } from './TraceManager';
/**
* Handles the evaluation of trace logs using multiple evaluation functions.
*/
export declare class EvaluationHandler {
private evalFuncs;
private traceManger;
/**
* Creates an instance of EvaluationHandler.
* @param evalFuncs - An array of evaluation functions to be executed.
* @param traceManger - The TraceManager instance for managing trace data.
*/
constructor(evalFuncs: EvalFunction[], traceManger: TraceManager);
/**
* Runs all evaluation functions on the provided trace log.
* @param traceLog - The trace log to be evaluated.
* @returns A promise that resolves to an array of EvaluationResult objects.
* @throws Will log errors to the trace manager and console if an evaluation function fails.
*/
runEvaluations(traceLog: TraceLog): Promise<EvaluationResult[]>;
}