Skip to content

JudgeAssertionOptions

JudgeAssertionOptions<TJudgeOptions> = JudgeAssertionParams<TJudgeOptions> & object

Optional overrides passed to expect(...).toSatisfyJudge(...).

optional harness?: JudgeAssertionHarness<TJudgeOptions>

Override or provide the harness associated with the judge context.

optional input?: JudgeAssertionInput<TJudgeOptions>

Override or provide the original eval input for the judge.

optional judgeHarness?: JudgeHarness

Override or provide the judge harness for judges that call ctx.runJudge(...).

optional metadata?: JudgeAssertionMetadata<TJudgeOptions>

Override or provide per-run judge metadata.

optional output?: JudgeAssertionOutput<TJudgeOptions>

Override or provide the app-facing output for the judge.

optional run?: HarnessRun<JudgeAssertionOutput<TJudgeOptions>>

Override or provide the complete normalized harness run.

optional session?: HarnessRun["session"]

Override or provide the normalized session transcript.

optional threshold?: number | null

Passing threshold for the explicit matcher. null records the score without failing.

optional toolCalls?: ToolCallRecord[]

Override or provide flattened tool calls for the judge.

TJudgeOptions extends JudgeContext<any, any, any, any> = JudgeContext

await expect(result).toSatisfyJudge(RefundStatusJudge, {
threshold: null,
});