@mastra/core
Version:
The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.
18 lines • 740 B
TypeScript
import type { ExtractionStepFn, ReasonStepFn, ScorerOptions, AnalyzeStepFn, ScoringInput, ScoringInputWithExtractStepResultAndScoreAndReason, ScoringSamplingConfig } from './types';
export declare class MastraScorer {
name: string;
description: string;
extract?: ExtractionStepFn;
analyze: AnalyzeStepFn;
reason?: ReasonStepFn;
metadata?: Record<string, any>;
isLLMScorer?: boolean;
constructor(opts: ScorerOptions);
run(input: ScoringInput): Promise<ScoringInputWithExtractStepResultAndScoreAndReason>;
}
export type MastraScorerEntry = {
scorer: MastraScorer;
sampling?: ScoringSamplingConfig;
};
export type MastraScorers = Record<string, MastraScorerEntry>;
//# sourceMappingURL=base.d.ts.map