UNPKG

@axiomhq/ai

Version:

Axiom AI SDK provides an API to wrap your AI calls with observability instrumentation.

25 lines (24 loc) 605 B
// src/evals/reporter.ts var AxiomReporter = class { onTestSuiteReady(_testSuite) { } onTestSuiteResult(testSuite) { for (const test of testSuite.children.array()) { if (test.type !== "test") continue; const testMeta = test.meta(); if (!testMeta.eval) { return; } const scores = []; for (const s of Object.entries(testMeta.eval.scores)) { scores.push({ name: s[1].name, score: s[1].score }); } } } async onTestRunEnd(_testModules, _errors, _reason) { } }; export { AxiomReporter }; //# sourceMappingURL=chunk-CKSTM4QJ.js.map