import { EvalJudge, EvalScorer } from "../contracts/agent/eval.type.mjs"; //#region ../ai/src/eval/judge-scorer.d.ts /** * LLM-as-judge scorer. Runs the judge agent on a prompt built from the * case (question + expected + actual answer + rubric) and parses its * `{ score, passed?, reason? }` verdict. * * Verdict source order: `result.data` (when the judge declares an * output schema), then `result.text` parsed as JSON. A judge that * errors or returns unparseable text scores `0` with the failure * reason attached — a broken judge fails the case rather than crashing * the suite. * * @example * scorers: [judge({ agent: judgeAgent, rubric: "Cite a source for full marks." })] */ declare function judge(config: EvalJudge, passThreshold?: number): EvalScorer; //#endregion export { judge }; //# sourceMappingURL=judge-scorer.d.mts.map