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

Function renderMetrics

plugins/plugin-eval/src/renderers/html.js:33–44  ·  view source on GitHub ↗
(metrics)

Source from the content-addressed store, hash-verified

31}
32
33function renderMetrics(metrics) {
34 if (metrics.length === 0) {
35 return "<p>No metrics recorded.</p>";
36 }
37
38 return `<ul>${metrics
39 .map(
40 (metric) =>
41 `<li><strong>${escapeHtml(metric.id)}</strong>: ${escapeHtml(metric.value)} ${escapeHtml(metric.unit)} (${escapeHtml(metric.band)})</li>`,
42 )
43 .join("")}</ul>`;
44}
45
46function renderDeductions(summary) {
47 if (!summary.deductions || summary.deductions.length === 0) {

Callers 1

renderHtmlFunction · 0.70

Calls 2

mapMethod · 0.80
escapeHtmlFunction · 0.70

Tested by

no test coverage detected