@mastra/core
Version:
The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.
15 lines (12 loc) • 327 B
text/typescript
interface MetricResult {
score: number;
info?: Record<string, any>;
}
declare abstract class Metric {
abstract measure(input: string, output: string): Promise<MetricResult>;
}
interface TestInfo {
testName?: string;
testPath?: string;
}
export { Metric as M, type TestInfo as T, type MetricResult as a };