Skip to content

JudgeHarnessInput

JudgeHarnessInput = object

Provider-neutral prompt request issued by an LLM-backed judge.

const input: JudgeHarnessInput = {
system: "Grade factual consistency.",
prompt: "Compare the submitted answer with the reference answer.",
responseFormat: {
type: "json",
},
};

prompt: string

User prompt or instruction payload for the judge model.


optional responseFormat?: object

Optional response-format hint for adapters that support structured output.

optional schema?: JsonValue

Optional JSON Schema passed through to provider-specific adapters.

type: "json"

Requests a JSON-compatible response.


optional system?: string

Optional system prompt for the judge model.