@axiomhq/ai
Version:
Axiom AI SDK provides an API to wrap your AI calls with observability instrumentation.
19 lines (16 loc) • 723 B
text/typescript
import { SerializedError } from 'vitest';
import { Reporter, TestSuite, TestModule, TestRunEndReason } from 'vitest/node.js';
/**
* Custom Vitest reporter for Axiom AI evaluations.
*
* This reporter collects evaluation results and scores from tests
* and processes them for further analysis and reporting.
*
* @experimental This API is experimental and may change in future versions.
*/
declare class AxiomReporter implements Reporter {
onTestSuiteReady(_testSuite: TestSuite): void;
onTestSuiteResult(testSuite: TestSuite): void;
onTestRunEnd(_testModules: ReadonlyArray<TestModule>, _errors: ReadonlyArray<SerializedError>, _reason: TestRunEndReason): Promise<void>;
}
export { AxiomReporter as A };