FactualityJudgeConfig
FactualityJudgeConfig =
object
Configuration for the factuality judge.
The judge harness can be supplied here, by describeEval({ judgeHarness }),
or by expect(...).toSatisfyJudge(..., { judgeHarness }). Passing it here
keeps the judge self-contained while preserving provider neutrality.
Example
Section titled “Example”import { FactualityJudge, type JudgeHarness } from "vitest-evals";
declare const judgeHarness: JudgeHarness;
const judge = FactualityJudge({ name: "FactJudge", judgeHarness });Properties
Section titled “Properties”judgeHarness?
Section titled “judgeHarness?”
optionaljudgeHarness?:JudgeHarness
Default judge-side harness used when matcher options do not provide one.
optionalname?:string
Stable judge name used in assertion messages and reports.