@mastra/core
Version:
The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.
18 lines (15 loc) • 427 B
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;
}
interface EvaluationResult extends MetricResult {
output: string;
}
export { type EvaluationResult as E, type MetricResult as M, type TestInfo as T, Metric as a };