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

Function renderCategoryDeductions

plugins/plugin-eval/src/renderers/html.js:59–70  ·  view source on GitHub ↗
(summary)

Source from the content-addressed store, hash-verified

57}
58
59function renderCategoryDeductions(summary) {
60 if (!summary.categoryDeductions || summary.categoryDeductions.length === 0) {
61 return "<p>No category deductions recorded.</p>";
62 }
63
64 return `<ul>${summary.categoryDeductions
65 .map(
66 (entry) =>
67 `<li><strong>${escapeHtml(entry.category)}</strong>: -${escapeHtml(entry.totalPenalty)} points across ${escapeHtml(entry.checks)} check${entry.checks === 1 ? "" : "s"}</li>`,
68 )
69 .join("")}</ul>`;
70}
71
72function renderObservedUsage(observedUsage) {
73 if (!observedUsage) {

Callers 1

renderHtmlFunction · 0.70

Calls 2

mapMethod · 0.80
escapeHtmlFunction · 0.70

Tested by

no test coverage detected