@ouispec/agent-evals 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/aggregate.d.ts +178 -0
- package/dist/aggregate.d.ts.map +1 -0
- package/dist/aggregate.js +122 -0
- package/dist/aggregate.js.map +1 -0
- package/dist/cassettes.d.ts +18 -2
- package/dist/cassettes.d.ts.map +1 -1
- package/dist/cassettes.js +19 -7
- package/dist/cassettes.js.map +1 -1
- package/dist/cli.js +125 -6
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +61 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/expectations.d.ts +8 -0
- package/dist/expectations.d.ts.map +1 -0
- package/dist/expectations.js +16 -0
- package/dist/expectations.js.map +1 -0
- package/dist/index.d.ts +27 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/judge.d.ts +8 -2
- package/dist/judge.d.ts.map +1 -1
- package/dist/judge.js +5 -2
- package/dist/judge.js.map +1 -1
- package/dist/leaderboard.d.ts +34 -0
- package/dist/leaderboard.d.ts.map +1 -0
- package/dist/leaderboard.js +341 -0
- package/dist/leaderboard.js.map +1 -0
- package/dist/matrix.d.ts +100 -0
- package/dist/matrix.d.ts.map +1 -0
- package/dist/matrix.js +169 -0
- package/dist/matrix.js.map +1 -0
- package/dist/models.d.ts +77 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +163 -0
- package/dist/models.js.map +1 -0
- package/dist/report.d.ts +2 -2
- package/dist/report.d.ts.map +1 -1
- package/dist/report.js +12 -4
- package/dist/report.js.map +1 -1
- package/dist/run.d.ts +56 -10
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +145 -55
- package/dist/run.js.map +1 -1
- package/dist/spend.d.ts +113 -0
- package/dist/spend.d.ts.map +1 -0
- package/dist/spend.js +170 -0
- package/dist/spend.js.map +1 -0
- package/dist/suite.d.ts +3 -1
- package/dist/suite.d.ts.map +1 -1
- package/dist/suite.js +2 -1
- package/dist/suite.js.map +1 -1
- package/dist/usage.d.ts +45 -4
- package/dist/usage.d.ts.map +1 -1
- package/dist/usage.js +57 -14
- package/dist/usage.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leaderboard.d.ts","sourceRoot":"","sources":["../src/leaderboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAyC,KAAK,YAAY,EAAiC,MAAM,gBAAgB,CAAC;AACzH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAa/C,6DAA6D;AAC7D,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAA4F,CAAC;AAChJ,iDAAiD;AACjD,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAA6E,CAAC;AACjI,eAAe;AACf,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAyE,CAAC;AAG7H,iFAAiF;AACjF,eAAO,MAAM,EAAE,GAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAkH,CAAC;AAOrK,kHAAkH;AAClH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,YAAY,EAAE,CAK7D;AAmBD,8CAA8C;AAC9C,wBAAgB,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAM9D;AAgBD,gHAAgH;AAChH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE,CAQnE;AAED,yGAAyG;AACzG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAW9F;AA4CD,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CA6B7D;AA6JD,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,SAAsB,GAAG,MAAM,CAmC3F"}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A model matrix's results as people read them: a self-contained HTML
|
|
3
|
+
* leaderboard (a sortable table of the models, the picks, each category's
|
|
4
|
+
* pass rates, and every scenario's results by model, opened one at a time), a
|
|
5
|
+
* Markdown summary, and the lines the CLI prints.
|
|
6
|
+
*
|
|
7
|
+
* Each is a function of the results alone: the same results give the same
|
|
8
|
+
* bytes. The page loads nothing: its styles and its one script are inline,
|
|
9
|
+
* and every value in it is escaped.
|
|
10
|
+
*/
|
|
11
|
+
import { UNTAGGED, percentile } from './aggregate.js';
|
|
12
|
+
// ─── Figures ────────────────────────────────────────────────────────────────
|
|
13
|
+
const DASH = '—';
|
|
14
|
+
/** Digits grouped by thousands, with no locale's say. */
|
|
15
|
+
function grouped(n, decimals = 0) {
|
|
16
|
+
const [whole, fraction] = Math.abs(n).toFixed(decimals).split('.');
|
|
17
|
+
const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
18
|
+
return `${n < 0 ? '-' : ''}${digits}${fraction ? `.${fraction}` : ''}`;
|
|
19
|
+
}
|
|
20
|
+
/** Dollars: four decimals under a dollar, two from there. */
|
|
21
|
+
export const usd = (n) => (n === null || n === undefined ? DASH : `$${grouped(n, Math.abs(n) < 1 ? 4 : 2)}`);
|
|
22
|
+
/** A share, as a percentage with one decimal. */
|
|
23
|
+
export const pct = (n) => (n === null || n === undefined ? DASH : `${(n * 100).toFixed(1)}%`);
|
|
24
|
+
/** A count. */
|
|
25
|
+
export const int = (n) => (n === null || n === undefined ? DASH : grouped(Math.round(n)));
|
|
26
|
+
/** A mean count, with one decimal. */
|
|
27
|
+
const mean1 = (n) => (n === null || n === undefined ? DASH : grouped(n, 1));
|
|
28
|
+
/** A time: milliseconds under a second, seconds with two decimals from there. */
|
|
29
|
+
export const ms = (n) => (n === null || n === undefined ? DASH : n < 1000 ? `${Math.round(n)} ms` : `${(n / 1000).toFixed(2)} s`);
|
|
30
|
+
const spreadText = (s, format) => (s ? `${format(s.min)}–${format(s.max)}` : DASH);
|
|
31
|
+
const pair = (p) => `${ms(p.p50)} / ${ms(p.p90)}`;
|
|
32
|
+
const modelLabel = (results, id) => results.models.find((m) => m.id === id)?.label ?? id;
|
|
33
|
+
/** The models best first: highest pass rate, then cheapest per completed task, then the order they were given. */
|
|
34
|
+
export function ranked(results) {
|
|
35
|
+
const order = new Map(results.models.map((m, i) => [m.id, i]));
|
|
36
|
+
const rate = (s) => s.passRate ?? -1;
|
|
37
|
+
const cost = (s) => s.cost.perCompletedTaskUsd ?? Number.POSITIVE_INFINITY;
|
|
38
|
+
return [...results.summaries].sort((a, b) => rate(b) - rate(a) || cost(a) - cost(b) || order.get(a.model) - order.get(b.model));
|
|
39
|
+
}
|
|
40
|
+
/** What the run was, in one line. */
|
|
41
|
+
function runLine(results) {
|
|
42
|
+
const how = results.mode === 'replay' ? 'from the recordings' : results.mode === 'record' ? 'recorded from the live models' : 'against the live models';
|
|
43
|
+
const pairs = new Set(results.scenarios.flatMap((s) => s.channels.map((c) => `${s.suite}\u0000${s.id}\u0000${c}`))).size;
|
|
44
|
+
const judge = results.judge ? `, judged by ${results.judge.label}` : '';
|
|
45
|
+
return `${results.scenarios.length} scenarios (${pairs} with their channels) × ${results.models.length} models × ${results.runs} run${results.runs === 1 ? '' : 's'}, ${how}${judge}; started ${results.startedAt}`;
|
|
46
|
+
}
|
|
47
|
+
/** What the run spent, against its estimate and its limit. */
|
|
48
|
+
function spendLine(results) {
|
|
49
|
+
const { spend } = results;
|
|
50
|
+
const parts = [`spent ${usd(spend.spentUsd)} (models ${usd(spend.agentUsd)}, judge ${usd(spend.judgeUsd)})`];
|
|
51
|
+
if (spend.estimate)
|
|
52
|
+
parts.push(`estimated ${usd(spend.estimate.totalUsd)}`);
|
|
53
|
+
if (spend.maxCostUsd !== null)
|
|
54
|
+
parts.push(`limit ${usd(spend.maxCostUsd)}`);
|
|
55
|
+
return parts.join('; ');
|
|
56
|
+
}
|
|
57
|
+
/** Why the run stopped early, when it did. */
|
|
58
|
+
export function stopLine(results) {
|
|
59
|
+
const stopped = results.spend.stopped;
|
|
60
|
+
if (!stopped)
|
|
61
|
+
return null;
|
|
62
|
+
return stopped.reason === 'estimate'
|
|
63
|
+
? `Not run: the estimate, ${usd(results.spend.estimate?.totalUsd)}, is over the limit of ${usd(results.spend.maxCostUsd)}. ${int(stopped.casesNotRun)} cases were not run.`
|
|
64
|
+
: `Stopped: the run spent its limit of ${usd(results.spend.maxCostUsd)}. ${int(stopped.casesNotRun)} cases were not run to their end, and are left out of every figure.`;
|
|
65
|
+
}
|
|
66
|
+
/** Each pick, in words. */
|
|
67
|
+
function pickLines(results) {
|
|
68
|
+
return results.leaders.map((leader) => {
|
|
69
|
+
const scope = leader.scope === 'all' ? 'All scenarios' : leader.scope;
|
|
70
|
+
if (!leader.best)
|
|
71
|
+
return `${scope}: nothing was judged.`;
|
|
72
|
+
const best = `best ${pct(leader.best.passRate)} (${modelLabel(results, leader.best.model)})`;
|
|
73
|
+
if (!leader.pick)
|
|
74
|
+
return `${scope}: no pick; ${best}, and no model passed a case.`;
|
|
75
|
+
const picked = leader.contenders[0];
|
|
76
|
+
return `${scope}: ${modelLabel(results, leader.pick)}, ${pct(picked.passRate)} at ${usd(picked.costPerCompletedTaskUsd)} per completed task; ${best}, within ${leader.withinPoints} points: ${leader.contenders.length}.`;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
// ─── The CLI's lines ────────────────────────────────────────────────────────
|
|
80
|
+
/** The lines the CLI prints after a matrix: a line per model, best first, then the picks and what was spent. */
|
|
81
|
+
export function matrixSummaryLines(results) {
|
|
82
|
+
const lines = ranked(results).map((s, i) => `${String(i + 1).padStart(2)}. ${s.label}: ${pct(s.passRate)} passed (${spreadText(s.passRateByRun, pct)} by run), ${usd(s.cost.perCompletedTaskUsd)} per completed task, ` +
|
|
83
|
+
`first token ${pair(s.latencyMs.firstToken)}, ${mean1(s.modelCalls.perTurn)} calls a turn, ${int(s.invalidToolCalls.total)} invalid tool calls, ${int(s.refusals.total)} refusals`);
|
|
84
|
+
const stop = stopLine(results);
|
|
85
|
+
return [...lines, '', ...pickLines(results), '', spendLine(results), ...(stop ? [stop] : [])];
|
|
86
|
+
}
|
|
87
|
+
/** An estimate, as the CLI prints it: a line per model, the judge's, and the total against the limit. */
|
|
88
|
+
export function estimateLines(estimate, maxCostUsd) {
|
|
89
|
+
const lines = estimate.models.map((m) => `${m.label}: ${int(m.cases)} cases, ${int(m.turns)} turns, ${int(m.inputTokens)} input and ${int(m.outputTokens)} output tokens at most: ${usd(m.usd)}`);
|
|
90
|
+
if (estimate.judge.calls > 0)
|
|
91
|
+
lines.push(`judge (${estimate.judge.model ?? 'the model'}): ${int(estimate.judge.calls)} verdicts: ${usd(estimate.judge.usd)}`);
|
|
92
|
+
lines.push(`estimated ${usd(estimate.totalUsd)} for ${estimate.runs} run${estimate.runs === 1 ? '' : 's'}${maxCostUsd === undefined ? '' : estimate.totalUsd > maxCostUsd ? `: over the limit of ${usd(maxCostUsd)}` : `: within the limit of ${usd(maxCostUsd)}`}`);
|
|
93
|
+
return lines;
|
|
94
|
+
}
|
|
95
|
+
// ─── Markdown ───────────────────────────────────────────────────────────────
|
|
96
|
+
/** A table cell: no pipe or line break can end it. */
|
|
97
|
+
const md = (text) => text.replace(/\\/g, '\\\\').replace(/\|/g, '\\|').replace(/\r?\n/g, ' ');
|
|
98
|
+
const LEADERBOARD_COLUMNS = [
|
|
99
|
+
'Model',
|
|
100
|
+
'Pass rate',
|
|
101
|
+
'By run (min–max)',
|
|
102
|
+
'Cost / completed task',
|
|
103
|
+
'Cost / run',
|
|
104
|
+
'Input / turn',
|
|
105
|
+
'Cache read',
|
|
106
|
+
'Output / turn',
|
|
107
|
+
'Calls / turn',
|
|
108
|
+
'First token p50 / p90',
|
|
109
|
+
'Model time p50 / p90',
|
|
110
|
+
'Invalid tool calls',
|
|
111
|
+
'Refusals',
|
|
112
|
+
];
|
|
113
|
+
const leaderboardRow = (s) => [
|
|
114
|
+
s.label,
|
|
115
|
+
pct(s.passRate),
|
|
116
|
+
spreadText(s.passRateByRun, pct),
|
|
117
|
+
usd(s.cost.perCompletedTaskUsd),
|
|
118
|
+
usd(s.cost.perRunUsd?.mean),
|
|
119
|
+
int(s.tokens.perTurn.input),
|
|
120
|
+
pct(s.tokens.cachedShare),
|
|
121
|
+
int(s.tokens.perTurn.output),
|
|
122
|
+
mean1(s.modelCalls.perTurn),
|
|
123
|
+
pair(s.latencyMs.firstToken),
|
|
124
|
+
pair(s.latencyMs.total),
|
|
125
|
+
int(s.invalidToolCalls.total),
|
|
126
|
+
int(s.refusals.total),
|
|
127
|
+
];
|
|
128
|
+
const categoriesOf = (results) => [...new Set(results.summaries.flatMap((s) => Object.keys(s.categories)))].sort();
|
|
129
|
+
/** The cases of one scenario. */
|
|
130
|
+
const casesOf = (results, suite, id) => results.cases.filter((c) => c.suite === suite && c.scenario === id);
|
|
131
|
+
/** The Markdown summary: the leaderboard, the picks, the categories, and every scenario some model failed. */
|
|
132
|
+
export function matrixMarkdown(results) {
|
|
133
|
+
const out = ['# Model leaderboard', '', runLine(results) + '.', '', spendLine(results) + '.'];
|
|
134
|
+
const stop = stopLine(results);
|
|
135
|
+
if (stop)
|
|
136
|
+
out.push('', `> ${stop}`);
|
|
137
|
+
out.push('', `| ${LEADERBOARD_COLUMNS.join(' | ')} |`, `|${LEADERBOARD_COLUMNS.map((_, i) => (i === 0 ? '---' : '---:')).join('|')}|`);
|
|
138
|
+
for (const s of ranked(results))
|
|
139
|
+
out.push(`| ${leaderboardRow(s).map(md).join(' | ')} |`);
|
|
140
|
+
out.push('', '## Picks', '', `The cheapest model per completed task among those within ${results.withinPoints} points of the best pass rate.`, '');
|
|
141
|
+
for (const line of pickLines(results))
|
|
142
|
+
out.push(`- ${md(line)}`);
|
|
143
|
+
const categories = categoriesOf(results);
|
|
144
|
+
const models = ranked(results);
|
|
145
|
+
out.push('', '## By category', '', `| Category | ${models.map((s) => md(s.label)).join(' | ')} |`, `|---|${models.map(() => '---:').join('|')}|`);
|
|
146
|
+
for (const tag of categories) {
|
|
147
|
+
out.push(`| ${md(tag)} | ${models.map((s) => (s.categories[tag] ? `${pct(s.categories[tag].passRate)} (${s.categories[tag].passed}/${s.categories[tag].judged})` : DASH)).join(' | ')} |`);
|
|
148
|
+
}
|
|
149
|
+
const failing = results.scenarios.filter((sc) => casesOf(results, sc.suite, sc.id).some((c) => c.status === 'failed' || c.status === 'unjudged'));
|
|
150
|
+
out.push('', '## Scenarios some model failed', '');
|
|
151
|
+
if (failing.length === 0)
|
|
152
|
+
out.push('None.');
|
|
153
|
+
for (const sc of failing) {
|
|
154
|
+
const cases = casesOf(results, sc.suite, sc.id);
|
|
155
|
+
const byModel = models.map((s) => {
|
|
156
|
+
const mine = cases.filter((c) => c.model === s.model && c.status !== 'stopped');
|
|
157
|
+
return `${s.label} ${mine.filter((c) => c.status === 'passed').length}/${mine.length}`;
|
|
158
|
+
});
|
|
159
|
+
out.push(`- **${md(sc.suite)} › ${md(sc.id)}** (${md(sc.title)}): ${md(byModel.join(', '))}`);
|
|
160
|
+
}
|
|
161
|
+
return `${out.join('\n')}\n`;
|
|
162
|
+
}
|
|
163
|
+
// ─── HTML ───────────────────────────────────────────────────────────────────
|
|
164
|
+
const html = (text) => text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
|
|
165
|
+
/** A cell that sorts by `value` (a number, or text), showing `text`. */
|
|
166
|
+
const td = (text, value, className = '') => `<td${className ? ` class="${className}"` : ''} data-v="${value === null || value === undefined ? '' : html(String(value))}">${html(text)}</td>`;
|
|
167
|
+
const STYLE = `
|
|
168
|
+
:root{color-scheme:light dark;--bg:#ffffff;--fg:#1d2330;--muted:#5d6676;--line:#dde1e8;--head:#f3f5f8;--good:#1b7f45;--bad:#b42318;--warn:#9a6700;--accent:#2f5bd3}
|
|
169
|
+
@media (prefers-color-scheme:dark){:root{--bg:#12151b;--fg:#e6e9ef;--muted:#9aa3b2;--line:#2b313c;--head:#1a1f27;--good:#4ec27f;--bad:#f0776b;--warn:#e3b341;--accent:#86a8ff}}
|
|
170
|
+
*{box-sizing:border-box}
|
|
171
|
+
body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
|
|
172
|
+
main{max-width:1280px;margin:0 auto;padding:24px 16px 64px}
|
|
173
|
+
h1{font-size:24px;margin:0 0 8px}h2{font-size:18px;margin:32px 0 8px}
|
|
174
|
+
p{margin:4px 0}.muted{color:var(--muted)}
|
|
175
|
+
.banner{border:1px solid var(--warn);color:var(--warn);padding:8px 12px;border-radius:6px;margin:12px 0}
|
|
176
|
+
.scroll{overflow-x:auto;border:1px solid var(--line);border-radius:6px}
|
|
177
|
+
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
|
|
178
|
+
th,td{padding:6px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;vertical-align:top}
|
|
179
|
+
th:first-child,td:first-child{text-align:left}
|
|
180
|
+
thead th{background:var(--head);position:sticky;top:0}
|
|
181
|
+
th[data-sort]{cursor:pointer;user-select:none}
|
|
182
|
+
th[aria-sort=ascending]::after{content:" ▲"}th[aria-sort=descending]::after{content:" ▼"}
|
|
183
|
+
tbody tr:last-child td{border-bottom:none}
|
|
184
|
+
.pass{color:var(--good)}.fail{color:var(--bad)}
|
|
185
|
+
ul{margin:4px 0;padding-left:20px}
|
|
186
|
+
details{border:1px solid var(--line);border-radius:6px;margin:8px 0}
|
|
187
|
+
summary{cursor:pointer;padding:8px 12px;font-weight:600}
|
|
188
|
+
summary .muted{font-weight:400}
|
|
189
|
+
details .scroll{border:none;border-top:1px solid var(--line);border-radius:0}
|
|
190
|
+
td.failures{white-space:normal;text-align:left;min-width:320px;max-width:640px;font-size:12px}
|
|
191
|
+
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
|
|
192
|
+
`;
|
|
193
|
+
/** Sorts a table by the column whose head is clicked: numbers as numbers, empty last, again to reverse. */
|
|
194
|
+
const SCRIPT = `
|
|
195
|
+
document.querySelectorAll('table[data-sortable]').forEach(function (table) {
|
|
196
|
+
var heads = table.querySelectorAll('thead th');
|
|
197
|
+
heads.forEach(function (th, column) {
|
|
198
|
+
th.setAttribute('data-sort', '');
|
|
199
|
+
th.addEventListener('click', function () {
|
|
200
|
+
var descending = th.getAttribute('aria-sort') !== 'descending';
|
|
201
|
+
heads.forEach(function (other) { other.removeAttribute('aria-sort'); });
|
|
202
|
+
th.setAttribute('aria-sort', descending ? 'descending' : 'ascending');
|
|
203
|
+
var numeric = th.getAttribute('data-type') === 'number';
|
|
204
|
+
var body = table.tBodies[0];
|
|
205
|
+
var rows = Array.prototype.slice.call(body.rows);
|
|
206
|
+
rows.sort(function (a, b) {
|
|
207
|
+
var x = a.cells[column].getAttribute('data-v'), y = b.cells[column].getAttribute('data-v');
|
|
208
|
+
if (x === '' || y === '') return x === y ? 0 : x === '' ? 1 : -1;
|
|
209
|
+
var order = numeric ? Number(x) - Number(y) : x.localeCompare(y);
|
|
210
|
+
return descending ? -order : order;
|
|
211
|
+
});
|
|
212
|
+
rows.forEach(function (row) { body.appendChild(row); });
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
`;
|
|
217
|
+
const NUMBER_COLUMNS = new Set(LEADERBOARD_COLUMNS.slice(1));
|
|
218
|
+
function leaderboardTable(results) {
|
|
219
|
+
const head = `<tr><th data-type="number">#</th>${LEADERBOARD_COLUMNS.map((c) => `<th${NUMBER_COLUMNS.has(c) ? ' data-type="number"' : ''}>${html(c)}</th>`).join('')}</tr>`;
|
|
220
|
+
const rows = ranked(results).map((s, i) => {
|
|
221
|
+
const text = leaderboardRow(s);
|
|
222
|
+
const values = [
|
|
223
|
+
s.label,
|
|
224
|
+
s.passRate,
|
|
225
|
+
s.passRateByRun ? s.passRateByRun.max - s.passRateByRun.min : null,
|
|
226
|
+
s.cost.perCompletedTaskUsd,
|
|
227
|
+
s.cost.perRunUsd?.mean,
|
|
228
|
+
s.tokens.perTurn.input,
|
|
229
|
+
s.tokens.cachedShare,
|
|
230
|
+
s.tokens.perTurn.output,
|
|
231
|
+
s.modelCalls.perTurn,
|
|
232
|
+
s.latencyMs.firstToken.p50,
|
|
233
|
+
s.latencyMs.total.p50,
|
|
234
|
+
s.invalidToolCalls.total,
|
|
235
|
+
s.refusals.total,
|
|
236
|
+
];
|
|
237
|
+
return `<tr>${td(String(i + 1), i + 1)}${text.map((t, c) => td(t, values[c])).join('')}</tr>`;
|
|
238
|
+
});
|
|
239
|
+
return `<div class="scroll"><table data-sortable id="leaderboard"><thead>${head}</thead><tbody>${rows.join('')}</tbody></table></div>`;
|
|
240
|
+
}
|
|
241
|
+
function modelsTable(results) {
|
|
242
|
+
const head = '<tr><th>Model</th><th>Id</th><th data-type="number">Cases run</th><th data-type="number">Stopped</th><th data-type="number">Not judged</th><th data-type="number">Total cost</th><th data-type="number">Cost / turn</th><th data-type="number">Input tokens</th><th data-type="number">Cache read</th><th data-type="number">Cache write</th><th data-type="number">Output tokens</th><th data-type="number">Largest call input</th><th data-type="number">Context window</th><th>Prompt cache</th><th>Vision</th></tr>';
|
|
243
|
+
const rows = results.summaries.map((s) => {
|
|
244
|
+
const window = s.capabilities.contextWindow;
|
|
245
|
+
return `<tr>${td(s.label, s.label)}${td(s.model, s.model)}${td(int(s.cases.ran), s.cases.ran)}${td(int(s.cases.stopped), s.cases.stopped)}${td(int(s.cases.unjudged), s.cases.unjudged)}${td(usd(s.cost.totalUsd), s.cost.totalUsd)}${td(usd(s.cost.perTurnUsd), s.cost.perTurnUsd)}${td(int(s.tokens.input), s.tokens.input)}${td(int(s.tokens.cacheRead), s.tokens.cacheRead)}${td(int(s.tokens.cacheWrite), s.tokens.cacheWrite)}${td(int(s.tokens.output), s.tokens.output)}${td(int(s.tokens.peakCallInput), s.tokens.peakCallInput, window !== undefined && s.tokens.peakCallInput > window ? 'fail' : '')}${td(window === undefined ? DASH : int(window), window ?? null)}${td(s.capabilities.promptCache ? 'yes' : 'no', s.capabilities.promptCache ? 1 : 0)}${td(s.capabilities.vision ? 'yes' : 'no', s.capabilities.vision ? 1 : 0)}</tr>`;
|
|
246
|
+
});
|
|
247
|
+
return `<div class="scroll"><table data-sortable id="models"><thead>${head}</thead><tbody>${rows.join('')}</tbody></table></div>`;
|
|
248
|
+
}
|
|
249
|
+
function categoriesTable(results) {
|
|
250
|
+
const models = ranked(results);
|
|
251
|
+
const head = `<tr><th>Category</th>${models.map((s) => `<th data-type="number">${html(s.label)}</th>`).join('')}</tr>`;
|
|
252
|
+
const rows = categoriesOf(results).map((tag) => {
|
|
253
|
+
const cells = models.map((s) => {
|
|
254
|
+
const c = s.categories[tag];
|
|
255
|
+
return c ? td(`${pct(c.passRate)} (${c.passed}/${c.judged}) · ${usd(c.costPerCompletedTaskUsd)}`, c.passRate) : td(DASH, null);
|
|
256
|
+
});
|
|
257
|
+
return `<tr>${td(tag === UNTAGGED ? `${tag} (no tag)` : tag, tag)}${cells.join('')}</tr>`;
|
|
258
|
+
});
|
|
259
|
+
return `<div class="scroll"><table data-sortable id="categories"><thead>${head}</thead><tbody>${rows.join('')}</tbody></table></div><p class="muted">Pass rate (passed / judged) · cost per completed task.</p>`;
|
|
260
|
+
}
|
|
261
|
+
/** A case's failures, each told once with how many of the cases it is in. */
|
|
262
|
+
function failuresList(cases) {
|
|
263
|
+
const counts = new Map();
|
|
264
|
+
for (const c of cases) {
|
|
265
|
+
for (const message of new Set(c.failures.map((f) => `${c.channel}${f.turn >= 0 ? `, turn ${f.turn + 1}` : ''}: ${f.assertion}: ${f.message}`))) {
|
|
266
|
+
counts.set(message, (counts.get(message) ?? 0) + 1);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
if (counts.size === 0)
|
|
270
|
+
return '';
|
|
271
|
+
const listed = [...counts.entries()].sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0]));
|
|
272
|
+
const shown = listed.slice(0, 6).map(([message, n]) => `<li>${n > 1 ? `×${n} ` : ''}<code>${html(message.length > 400 ? `${message.slice(0, 400)}…` : message)}</code></li>`);
|
|
273
|
+
const more = listed.length > 6 ? `<li class="muted">and ${listed.length - 6} more</li>` : '';
|
|
274
|
+
return `<ul>${shown.join('')}${more}</ul>`;
|
|
275
|
+
}
|
|
276
|
+
function scenarioSection(results) {
|
|
277
|
+
const models = ranked(results);
|
|
278
|
+
return results.scenarios
|
|
279
|
+
.map((sc) => {
|
|
280
|
+
const cases = casesOf(results, sc.suite, sc.id).filter((c) => c.status !== 'stopped');
|
|
281
|
+
const passed = cases.filter((c) => c.status === 'passed').length;
|
|
282
|
+
const head = '<tr><th>Model</th><th data-type="number">Passed</th><th>By channel</th><th data-type="number">Cost / case</th><th data-type="number">Input / case</th><th data-type="number">Output / case</th><th data-type="number">First token p50</th><th>Failures</th></tr>';
|
|
283
|
+
const rows = models.map((s) => {
|
|
284
|
+
const mine = cases.filter((c) => c.model === s.model);
|
|
285
|
+
const ok = mine.filter((c) => c.status === 'passed').length;
|
|
286
|
+
const byChannel = sc.channels
|
|
287
|
+
.map((channel) => {
|
|
288
|
+
const on = mine.filter((c) => c.channel === channel);
|
|
289
|
+
return `${channel} ${on.filter((c) => c.status === 'passed').length}/${on.length}`;
|
|
290
|
+
})
|
|
291
|
+
.join(' · ');
|
|
292
|
+
const per = (pick) => (mine.length ? mine.reduce((sum, c) => sum + pick(c), 0) / mine.length : null);
|
|
293
|
+
const p50 = percentile(mine.flatMap((c) => c.turns.map((t) => t.usage.firstTokenMs).filter((v) => v !== null)), 0.5);
|
|
294
|
+
const cost = per((c) => c.costUsd);
|
|
295
|
+
const input = per((c) => c.turns.reduce((n, t) => n + t.usage.inputTokens, 0));
|
|
296
|
+
const output = per((c) => c.turns.reduce((n, t) => n + t.usage.outputTokens, 0));
|
|
297
|
+
return `<tr>${td(s.label, s.label)}${td(`${ok}/${mine.length}`, mine.length ? ok / mine.length : null, mine.length && ok === mine.length ? 'pass' : ok < mine.length ? 'fail' : '')}${td(byChannel, byChannel)}${td(usd(cost), cost)}${td(int(input), input)}${td(int(output), output)}${td(ms(p50), p50)}<td class="failures">${failuresList(mine.filter((c) => c.status !== 'passed'))}</td></tr>`;
|
|
298
|
+
});
|
|
299
|
+
const tags = sc.tags.length ? ` · ${sc.tags.map(html).join(', ')}` : '';
|
|
300
|
+
return `<details id="${html(`scenario-${sc.suite}-${sc.id}`)}"><summary>${html(sc.title)} <span class="muted">${html(sc.suite)} › ${html(sc.id)}${tags} · ${passed}/${cases.length} passed</span></summary><div class="scroll"><table data-sortable><thead>${head}</thead><tbody>${rows.join('')}</tbody></table></div></details>`;
|
|
301
|
+
})
|
|
302
|
+
.join('\n');
|
|
303
|
+
}
|
|
304
|
+
/** The leaderboard as one HTML page that loads nothing. */
|
|
305
|
+
export function leaderboardHtml(results, title = 'Model leaderboard') {
|
|
306
|
+
const stop = stopLine(results);
|
|
307
|
+
const picks = pickLines(results)
|
|
308
|
+
.map((line) => `<li>${html(line)}</li>`)
|
|
309
|
+
.join('');
|
|
310
|
+
return `<!doctype html>
|
|
311
|
+
<html lang="en">
|
|
312
|
+
<head>
|
|
313
|
+
<meta charset="utf-8">
|
|
314
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
315
|
+
<title>${html(title)}</title>
|
|
316
|
+
<style>${STYLE}</style>
|
|
317
|
+
</head>
|
|
318
|
+
<body>
|
|
319
|
+
<main>
|
|
320
|
+
<h1>${html(title)}</h1>
|
|
321
|
+
<p>${html(runLine(results))}.</p>
|
|
322
|
+
<p class="muted">${html(spendLine(results))}. Pass rates are over the cases judged; costs are at each model's prices, the judge's apart; times are per turn, from the ${results.mode === 'replay' ? 'recorded' : 'live'} calls.</p>
|
|
323
|
+
${stop ? `<p class="banner">${html(stop)}</p>` : ''}
|
|
324
|
+
<h2>Leaderboard</h2>
|
|
325
|
+
${leaderboardTable(results)}
|
|
326
|
+
<h2>Picks</h2>
|
|
327
|
+
<p class="muted">The cheapest model per completed task among those within ${html(String(results.withinPoints))} points of the best pass rate.</p>
|
|
328
|
+
<ul>${picks}</ul>
|
|
329
|
+
<h2>By category</h2>
|
|
330
|
+
${categoriesTable(results)}
|
|
331
|
+
<h2>Models</h2>
|
|
332
|
+
${modelsTable(results)}
|
|
333
|
+
<h2>Scenarios</h2>
|
|
334
|
+
${scenarioSection(results)}
|
|
335
|
+
</main>
|
|
336
|
+
<script>${SCRIPT}</script>
|
|
337
|
+
</body>
|
|
338
|
+
</html>
|
|
339
|
+
`;
|
|
340
|
+
}
|
|
341
|
+
//# sourceMappingURL=leaderboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leaderboard.js","sourceRoot":"","sources":["../src/leaderboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAqE,MAAM,gBAAgB,CAAC;AAIzH,+EAA+E;AAE/E,MAAM,IAAI,GAAG,GAAG,CAAC;AAEjB,yDAAyD;AACzD,SAAS,OAAO,CAAC,CAAS,EAAE,QAAQ,GAAG,CAAC;IACtC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;IAC3D,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,C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SAKA,IAAI,CAAC,KAAK,CAAC;SACX,KAAK;;;;MAIR,IAAI,CAAC,KAAK,CAAC;KACZ,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;mBACR,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,6HAA6H,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM;EACrN,IAAI,CAAC,CAAC,CAAC,qBAAqB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;;EAEjD,gBAAgB,CAAC,OAAO,CAAC;;4EAEiD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;MACxG,KAAK;;EAET,eAAe,CAAC,OAAO,CAAC;;EAExB,WAAW,CAAC,OAAO,CAAC;;EAEpB,eAAe,CAAC,OAAO,CAAC;;UAEhB,MAAM;;;CAGf,CAAC;AACF,CAAC"}
|
package/dist/matrix.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A model matrix: every scenario, on every channel, on every candidate model,
|
|
3
|
+
* `runs` times, each case through the same harness as a single run (the
|
|
4
|
+
* product's real agent configuration, its stubs, its page), with each
|
|
5
|
+
* candidate's provider options and only what it can be asked for. One judge,
|
|
6
|
+
* fixed for the run and never a candidate, decides every rubric.
|
|
7
|
+
*
|
|
8
|
+
* The cases run in run order (the whole suite on every model, then again), so
|
|
9
|
+
* a run the spend guard stops leaves every model with about as many cases as
|
|
10
|
+
* the others. Before anything runs, the run's cost is estimated from the
|
|
11
|
+
* suites' token budgets at each model's prices; with a limit (`maxCostUsd`),
|
|
12
|
+
* an estimate over it runs nothing, and the guard stops the run when what it
|
|
13
|
+
* has spent reaches the limit.
|
|
14
|
+
*/
|
|
15
|
+
import type { AgentEvalConfig, EvalMode } from './config.js';
|
|
16
|
+
import { type MatrixCase, type MatrixLeader, type ModelSummary } from './aggregate.js';
|
|
17
|
+
import { type EvalCandidate, type EvalModelPrices } from './models.js';
|
|
18
|
+
import { type EvalCaseResult, type EvalRunOptions } from './run.js';
|
|
19
|
+
import { type EvalEstimate, type EvalTarget } from './spend.js';
|
|
20
|
+
/** The results file's format, and its version: a reader checks both. */
|
|
21
|
+
export declare const MATRIX_FORMAT = "agent-evals-matrix";
|
|
22
|
+
export declare const MATRIX_VERSION = 1;
|
|
23
|
+
/** By default a model within this many percentage points of the best pass rate may be picked for being cheaper. */
|
|
24
|
+
export declare const DEFAULT_WITHIN_POINTS = 2;
|
|
25
|
+
export interface MatrixRunOptions extends Omit<EvalRunOptions, 'mode'> {
|
|
26
|
+
/** Default `replay`. */
|
|
27
|
+
mode?: EvalMode;
|
|
28
|
+
/** The candidates. */
|
|
29
|
+
models: readonly EvalCandidate[];
|
|
30
|
+
/** How many times each case runs on each model. Default 1. */
|
|
31
|
+
runs?: number;
|
|
32
|
+
/** The most the run may spend, in US dollars: an estimate over it runs nothing, and the run stops when it has spent it. */
|
|
33
|
+
maxCostUsd?: number;
|
|
34
|
+
/** How many cases run at once. Default 1. */
|
|
35
|
+
concurrency?: number;
|
|
36
|
+
/** How close to the best pass rate, in percentage points, a cheaper model may be and still be picked. Default 2. */
|
|
37
|
+
withinPoints?: number;
|
|
38
|
+
/** Told of each case as it ends. */
|
|
39
|
+
onCase?: (result: EvalCaseResult) => void;
|
|
40
|
+
}
|
|
41
|
+
/** A scenario of the matrix, as its report names it. */
|
|
42
|
+
export interface MatrixScenario {
|
|
43
|
+
suite: string;
|
|
44
|
+
id: string;
|
|
45
|
+
title: string;
|
|
46
|
+
tags: string[];
|
|
47
|
+
channels: string[];
|
|
48
|
+
}
|
|
49
|
+
/** Why a matrix stopped before it ran every case. */
|
|
50
|
+
export interface MatrixStop {
|
|
51
|
+
/** `estimate`: the estimate was over the limit, and nothing ran. `max-cost`: the run spent its limit. */
|
|
52
|
+
reason: 'estimate' | 'max-cost';
|
|
53
|
+
/** The cases it did not run, or did not run to their end. */
|
|
54
|
+
casesNotRun: number;
|
|
55
|
+
}
|
|
56
|
+
/** What a matrix ran and found: the results file. */
|
|
57
|
+
export interface MatrixResults {
|
|
58
|
+
format: typeof MATRIX_FORMAT;
|
|
59
|
+
version: typeof MATRIX_VERSION;
|
|
60
|
+
mode: EvalMode;
|
|
61
|
+
runs: number;
|
|
62
|
+
startedAt: string;
|
|
63
|
+
durationMs: number;
|
|
64
|
+
withinPoints: number;
|
|
65
|
+
judge: {
|
|
66
|
+
id: string;
|
|
67
|
+
label: string;
|
|
68
|
+
prices: EvalModelPrices | null;
|
|
69
|
+
} | null;
|
|
70
|
+
models: EvalCandidate[];
|
|
71
|
+
scenarios: MatrixScenario[];
|
|
72
|
+
/** Run order: run 1's every case on every model, then run 2's. */
|
|
73
|
+
cases: MatrixCase[];
|
|
74
|
+
/** One per model, in the order the models were given. */
|
|
75
|
+
summaries: ModelSummary[];
|
|
76
|
+
leaders: MatrixLeader[];
|
|
77
|
+
spend: {
|
|
78
|
+
/** The estimate taken before the run; null when the suites give no budget to take one from. */
|
|
79
|
+
estimate: EvalEstimate | null;
|
|
80
|
+
/** Why there is no estimate. */
|
|
81
|
+
estimateProblems: string[];
|
|
82
|
+
maxCostUsd: number | null;
|
|
83
|
+
/** What the run spent, at the models' and the judge's prices. */
|
|
84
|
+
spentUsd: number;
|
|
85
|
+
agentUsd: number;
|
|
86
|
+
judgeUsd: number;
|
|
87
|
+
stopped: MatrixStop | null;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/** A scenario's categories: its suite's, then its own. */
|
|
91
|
+
export declare const tagsOf: (target: Pick<EvalTarget, "suite" | "scenario">) => string[];
|
|
92
|
+
/**
|
|
93
|
+
* What a matrix will cost, without calling a model: its cases, from the
|
|
94
|
+
* configuration's suites narrowed as the options say, at each model's prices.
|
|
95
|
+
* Throws an `EvalBudgetError` naming every turn the suites give no budget for.
|
|
96
|
+
*/
|
|
97
|
+
export declare function estimateRun(config: AgentEvalConfig, options: Pick<MatrixRunOptions, 'models' | 'runs' | 'channels' | 'scenarios' | 'root'>): EvalEstimate;
|
|
98
|
+
/** Runs the matrix, and reports every case, each model's summary and the picks. */
|
|
99
|
+
export declare function runMatrix(config: AgentEvalConfig, options: MatrixRunOptions): Promise<MatrixResults>;
|
|
100
|
+
//# sourceMappingURL=matrix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../src/matrix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAA6B,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClH,OAAO,EAA+B,KAAK,aAAa,EAAuB,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACzH,OAAO,EAA4B,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAC9F,OAAO,EAA+C,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7G,wEAAwE;AACxE,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAClD,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,mHAAmH;AACnH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IACpE,wBAAwB;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,sBAAsB;IACtB,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IACjC,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2HAA2H;IAC3H,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oHAAoH;IACpH,YAAY,CAAC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