( judge: Judge, systemPrompt: string, userPrompt: string, )
| 48 | }; |
| 49 | |
| 50 | async function evaluateWithJudge( |
| 51 | judge: Judge, |
| 52 | systemPrompt: string, |
| 53 | userPrompt: string, |
| 54 | ): Promise<ScoreResult> { |
| 55 | const { object } = await generateObject({ |
| 56 | model: judge.model, |
| 57 | schema: scoreResultSchema, |
| 58 | system: systemPrompt, |
| 59 | temperature: 0, |
| 60 | prompt: userPrompt, |
| 61 | }); |
| 62 | |
| 63 | return object; |
| 64 | } |
| 65 | |
| 66 | describe("Judge Compatibility Tests", () => { |
| 67 | judges.forEach((judge) => { |
no outgoing calls
no test coverage detected