/** * MastraCode Efficiency Scorer (Code-based, Agent type, 30% sampling) * * Measures how efficiently the agent completes work through quantitative ratios. * Unlike the Outcome Scorer (which checks *what* happened), this checks * *how much work* it took. * * This scorer produces a score from 0-1 but also exposes raw metrics in the * reason text for trend analysis. The score represents "how cleanly did the * agent work?" — not whether it got the right answer. * * Sampled at 30% because it's slightly more expensive (analyzes message sequences). */ export declare function createEfficiencyScorer(): import("@mastra/core/evals").MastraScorer<"mastracode-efficiency", import("@mastra/core/evals").ScorerRunInputForAgent, import("@mastra/core/evals").ScorerRunOutputForAgent, Record<"preprocessStepResult", { empty: true; totalCalls: number; totalTurns: number; redundancy?: undefined; turnCount?: undefined; retryEfficiency?: undefined; readBeforeEdit?: undefined; } | { empty: false; redundancy: { score: number; ratio: number; detail: string; }; turnCount: { score: number; detail: string; }; retryEfficiency: { score: number; detail: string; }; readBeforeEdit: { score: number; detail: string; }; totalCalls: number; totalTurns: number; }> & Record<"generateScoreStepResult", number> & Record<"generateReasonStepResult", string>>; //# sourceMappingURL=efficiency.d.ts.map