UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

19 lines 607 B
/** * Wrap an evaluator function in an object with a name property. * * @experimental This feature is not complete, and will change in the future. * * @param params - The parameters for creating the evaluator * @param params.name - The name of the evaluator. * @param params.kind - The kind of evaluator (e.g., "CODE", "LLM") * @param params.evaluate - The evaluator function. * @returns The evaluator object. */ export function asExperimentEvaluator({ name, kind, evaluate, }) { return { name, kind, evaluate, }; } //# sourceMappingURL=asExperimentEvaluator.js.map