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

Function detailsBlock

plugins/plugin-eval/src/renderers/markdown.js:13–20  ·  view source on GitHub ↗
(summary, body)

Source from the content-addressed store, hash-verified

11import { enrichSummary } from "../core/scoring.js";
12
13function detailsBlock(summary, body) {
14 const content = Array.isArray(body) ? body.join("\n") : body;
15 if (!content || content.trim().length === 0) {
16 return "";
17 }
18
19 return [`<details>`, `<summary>${summary}</summary>`, "", content, `</details>`].join("\n");
20}
21
22function section(title, lines) {
23 return [`## ${title}`, ...lines].join("\n");

Callers 8

renderEvaluationFunction · 0.85
renderBudgetExplanationFunction · 0.85
renderBenchmarkScenarioFunction · 0.85
renderBenchmarkRunFunction · 0.85
renderComparisonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected