Skip to content

readVerdict()

PromptScript API


readVerdict(text): JudgeVerdict | undefined

Defined in: eval/src/judge.ts:80

The verdict of one judge run: the response must be a JSON object with exactly verdict (pass or fail) and reason (a string), each key once, after the same trim and fence unwrap the assertions use. Anything else, such as the word “pass” in free text, is no verdict.

Parameters

text

string

Returns

JudgeVerdict | undefined