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

Function generateAnalysis

scripts/analysis.ts:98–108  ·  view source on GitHub ↗
(runs: EvaluationRunExport[])

Source from the content-addressed store, hash-verified

96}
97
98async function generateAnalysis(runs: EvaluationRunExport[]): Promise<string> {
99 const context = buildDynamicContext(runs);
100
101 const { text } = await generateText({
102 model: getZenLanguageModel(analyzerModelId),
103 system: AGENT_ANALYSIS_PROMPT,
104 prompt: context,
105 temperature: 0.3,
106 });
107 return text.trim();
108}
109
110function usage(): void {
111 console.error("Usage: bun run scripts/analysis.ts <benchmark-file.json>");

Callers 1

mainFunction · 0.85

Calls 2

buildDynamicContextFunction · 0.85
getZenLanguageModelFunction · 0.85

Tested by

no test coverage detected