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

Function renderDeductions

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

Source from the content-addressed store, hash-verified

44}
45
46function renderDeductions(summary) {
47 if (!summary.deductions || summary.deductions.length === 0) {
48 return "<p>No deductions were applied.</p>";
49 }
50
51 return `<ul>${summary.deductions
52 .map(
53 (entry) =>
54 `<li><strong>-${escapeHtml(entry.penalty)} points</strong> <code>${escapeHtml(entry.id)}</code> [${escapeHtml(entry.status)}/${escapeHtml(entry.severity)}] ${escapeHtml(entry.message)}</li>`,
55 )
56 .join("")}</ul>`;
57}
58
59function renderCategoryDeductions(summary) {
60 if (!summary.categoryDeductions || summary.categoryDeductions.length === 0) {

Callers 1

renderHtmlFunction · 0.70

Calls 2

mapMethod · 0.80
escapeHtmlFunction · 0.70

Tested by

no test coverage detected