JudgeResult
JudgeResult =
object
Score payload returned by a judge.
Example
Section titled “Example”const result: JudgeResult = { score: 1, metadata: { rationale: "Output matched the expected refund status.", },};Properties
Section titled “Properties”metadata?
Section titled “metadata?”
optionalmetadata?:object&Record<string,JsonValue|undefined>
JSON-like judge metadata shown by assertions and reporters.
Type Declaration
Section titled “Type Declaration”output?
Section titled “output?”
optionaloutput?:JsonValue
Optional judge-side output or diagnostic payload.
rationale?
Section titled “rationale?”
optionalrationale?:string
Human-readable explanation for the score.
score:
number|null
Numeric score. null records an intentionally unscored result.