CreateJudgeHarnessOptions
CreateJudgeHarnessOptions =
object
Configuration for createJudgeHarness(...).
Example
Section titled “Example”const judgeHarness = createJudgeHarness({ name: "custom-judge", run: async ({ system, prompt }, { signal }) => { return callProvider({ system, prompt, signal }); },});Properties
Section titled “Properties”
optionalname?:string
Stable harness name used in diagnostics.
run: (
input,options) =>MaybePromise<unknown>
Runs one provider-specific judge prompt.
Return a JSON-safe value, a raw provider value to normalize, a lightweight
{ output } result, or a full normalized HarnessRun.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”MaybePromise<unknown>