Skip to content

JudgeResult

JudgeResult = object

Score payload returned by a judge.

const result: JudgeResult = {
score: 1,
metadata: {
rationale: "Output matched the expected refund status.",
},
};

optional metadata?: object & Record<string, JsonValue | undefined>

JSON-like judge metadata shown by assertions and reporters.

optional output?: JsonValue

Optional judge-side output or diagnostic payload.

optional rationale?: string

Human-readable explanation for the score.


score: number | null

Numeric score. null records an intentionally unscored result.