UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

21 lines 853 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromPhoenixLLMEvaluator = fromPhoenixLLMEvaluator; const asExperimentEvaluator_1 = require("./asExperimentEvaluator"); /** * A function that acts as a bridge, converting phoenix-evals to be experiment evaluator compatible * @param phoenixEvaluator * @returns an experiment compatible Evaluator */ function fromPhoenixLLMEvaluator(phoenixLLMEvaluator) { return (0, asExperimentEvaluator_1.asExperimentEvaluator)({ name: phoenixLLMEvaluator.name, kind: "LLM", evaluate: (example) => { // For now blindly coerce the types // eslint-disable-next-line @typescript-eslint/no-explicit-any return phoenixLLMEvaluator.evaluate(example); }, }); } //# sourceMappingURL=fromPhoenixLLMEvaluator.js.map