JudgeAssertionOptions
JudgeAssertionOptions<
TJudgeOptions> =JudgeAssertionParams<TJudgeOptions> &object
Optional overrides passed to expect(...).toSatisfyJudge(...).
Type Declaration
Section titled “Type Declaration”harness?
Section titled “harness?”
optionalharness?:JudgeAssertionHarness<TJudgeOptions>
Override or provide the harness associated with the judge context.
input?
Section titled “input?”
optionalinput?:JudgeAssertionInput<TJudgeOptions>
Override or provide the original eval input for the judge.
judgeHarness?
Section titled “judgeHarness?”
optionaljudgeHarness?:JudgeHarness
Override or provide the judge harness for judges that call ctx.runJudge(...).
metadata?
Section titled “metadata?”
optionalmetadata?:JudgeAssertionMetadata<TJudgeOptions>
Override or provide per-run judge metadata.
output?
Section titled “output?”
optionaloutput?:JudgeAssertionOutput<TJudgeOptions>
Override or provide the app-facing output for the judge.
optionalrun?:HarnessRun<JudgeAssertionOutput<TJudgeOptions>>
Override or provide the complete normalized harness run.
session?
Section titled “session?”
optionalsession?:HarnessRun["session"]
Override or provide the normalized session transcript.
threshold?
Section titled “threshold?”
optionalthreshold?:number|null
Passing threshold for the explicit matcher. null records the score without failing.
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls?:ToolCallRecord[]
Override or provide flattened tool calls for the judge.
Type Parameters
Section titled “Type Parameters”TJudgeOptions
Section titled “TJudgeOptions”TJudgeOptions extends JudgeContext<any, any, any, any> = JudgeContext
Example
Section titled “Example”await expect(result).toSatisfyJudge(RefundStatusJudge, { threshold: null,});