MCPcopy Create free account
hub / github.com/openai/plugins / renderBenchmarkTemplateInit

Function renderBenchmarkTemplateInit

plugins/plugin-eval/src/renderers/markdown.js:463–491  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

461}
462
463function renderBenchmarkTemplateInit(payload) {
464 const benchmarkPayload = ensureBenchmarkTemplatePayload(payload);
465
466 return [
467 `# Benchmark Template Ready: ${benchmarkPayload.target.name}`,
468 "",
469 section("At a Glance", [
470 `- Config: \`${benchmarkPayload.configPath}\``,
471 `- Scenarios: ${benchmarkPayload.scenarioCount}`,
472 ]),
473 "",
474 section("Why It Matters", benchmarkPayload.notes.map((item) => `- ${item}`)),
475 "",
476 section("Fix First", ["- Edit the benchmark config so the scenarios match your real workflow before you trust the run."]),
477 "",
478 section("Recommended Next Step", renderNextAction(benchmarkPayload.nextAction)),
479 "",
480 section("Details", [
481 detailsBlock(
482 "Setup questions to ask first",
483 benchmarkPayload.setupQuestions?.length > 0
484 ? benchmarkPayload.setupQuestions.map((item) => `- ${item}`).join("\n")
485 : "- No setup questions provided.",
486 ),
487 detailsBlock("Next steps", benchmarkPayload.nextSteps.map((item) => `- ${item}`).join("\n")),
488 detailsBlock("Use From Codex Chat", renderWorkflowGuide(benchmarkPayload.workflowGuide)),
489 ]),
490 ].join("\n");
491}
492
493function renderBenchmarkScenario(scenario, mode) {
494 const lines = [

Callers 1

renderMarkdownFunction · 0.85

Calls 6

detailsBlockFunction · 0.85
mapMethod · 0.80
sectionFunction · 0.70
renderNextActionFunction · 0.70
renderWorkflowGuideFunction · 0.70

Tested by

no test coverage detected