JudgeAssessor
JudgeAssessor<
TInput,TOutput> =object
Legacy provider/model helper that a judge can use without running the app harness.
New LLM-backed judges should use createJudgeHarness(...) plus
ctx.runJudge(...) instead. The judge harness path supports response
formats, matcher/suite/judge-level configuration, and keeps provider
adapters outside core judge implementations.
Example
Section titled “Example”const assessor: JudgeAssessor<string, { passed: boolean; rationale: string }> = { assess: async (prompt, { signal }) => runRubricModel(prompt, { signal }),};Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput = string
TOutput
Section titled “TOutput”TOutput = string
Properties
Section titled “Properties”assess
Section titled “assess”assess: (
input,options) =>Promise<TOutput> |TOutput
Runs the judge-side model/provider call.
Parameters
Section titled “Parameters”TInput
options
Section titled “options”Returns
Section titled “Returns”Promise<TOutput> | TOutput