Skip to content

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.

import { FactualityJudge, type JudgeHarness } from "vitest-evals";
declare const judgeHarness: JudgeHarness;
const judge = FactualityJudge({ name: "FactJudge", judgeHarness });

optional judgeHarness?: JudgeHarness

Default judge-side harness used when matcher options do not provide one.


optional name?: string

Stable judge name used in assertion messages and reports.