UNPKG

axiom

Version:

Axiom AI SDK provides - an API to wrap your AI calls with observability instrumentation. - offline evals - online evals

19 lines (17 loc) 391 B
import { Attr } from "./chunk-4TKUTT24.js"; // src/scorers/normalize-score.ts function normalizeBooleanScore(score, metadata) { if (typeof score !== "boolean") { return { score, metadata }; } return { score: score ? 1 : 0, metadata: { ...metadata, [Attr.Eval.Score.IsBoolean]: true } }; } export { normalizeBooleanScore }; //# sourceMappingURL=chunk-FGLJO4BD.js.map