MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / evaluateWithJudge

Function evaluateWithJudge

tests/judgeCompatibility.test.ts:50–64  ·  view source on GitHub ↗
(
  judge: Judge,
  systemPrompt: string,
  userPrompt: string,
)

Source from the content-addressed store, hash-verified

48};
49
50async 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
66describe("Judge Compatibility Tests", () => {
67 judges.forEach((judge) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected