Evaluation
LLM evaluation suite runner and regression comparator with live-streaming category grid, baseline ghost markers, interactive run history sparkline, word-diffed case drilldown, judge rubric scoring, and triage actions.
import { EvalSuite } from '@uthereal/ui/eval-suite'Eval suite playground
Support agent
v12 against v11120 test cases
- Cost
- About $2.90
- Time
- About 3 min
Run the suite to compare every case with v11
Overview
EvalSuite runs an evaluation suite on a candidate version of an LLM feature against its baseline and highlights what broke or improved. The header pairs the candidate and baseline versions with their model chips, case count, judge model, and a morphing Run / Stop / Run again button. While results stream in, the summary counts up the pass rate, cost, and duration beside an interactive history sparkline, and each category row fills case by case with distinct pass, fail, and error glyphs.
Below the grid, readers filter cases by All, Failed, Regressions, or Improved. Expanding a case opens an in-place drilldown showing the input, expected behavior, side-by-side baseline and candidate outputs with a phrase-folded word diff, per-criterion judge rubric bars, and Mark as expected or Open issue triage controls with Undo.
Use EvalSuite for pre-ship prompt or model regression checks, CI evaluation dashboards, and human triage of LLM judge results. For configuring an agent's prompt, tools, and knowledge files, use Builder. For browsing and installing prebuilt agent templates, use Gallery.
Usage
'use client'
import { EvalSuite } from '@uthereal/ui/eval-suite'
export function SupportAgentEvals({ suite, history }) {
return (
<EvalSuite
suite={suite}
runs={history}
onRun={async function* (currentSuite, { signal, started }) {
const res = await fetch(`/api/evals/${currentSuite.name}/runs`, {
method: 'POST',
signal,
})
if (!res.ok) throw new Error('Evaluation runner unavailable')
for await (const event of readEvalStream(res)) {
if (event.type === 'started') started(event.caseId)
if (event.type === 'scored') yield event.result
}
}}
onTriage={async (caseId, action) => {
if (action === 'issue') {
const res = await fetch('/api/evals/issues', {
method: 'POST',
body: JSON.stringify({ caseId }),
})
return (await res.json()).key
}
await fetch(`/api/evals/cases/${caseId}/expected`, { method: 'POST' })
}}
/>
)
}Omit suite, runs, onRun, and onTriage to run the built-in 120-case support agent sample suite on an eight-worker local simulation (nothing leaves the browser, and simulated runs and triage states announce themselves clearly).
Examples
Custom domain suite and rubric
Pass your own suite, runs, and defaultFilter="all" to evaluate any LLM workflow—such as a SQL copilot scored across Joins, Aggregations, and Safety with a custom three-criterion rubric.
SQL copilot
v8 against v79 test cases
- Cost
- About $0.42
- Time
- About 1 min
Reviewing improvements first
Set defaultFilter="improved" and wire runAction and triageAction when reviewing cases that moved from failing on the baseline to passing on the candidate.
Support agent
v12 against v11120 test cases
- Cost
- About $2.90
- Time
- About 3 min
Run the suite to compare every case with v11
Suite anatomy and scoring
Outcome glyphs and grid signals
| Signal | Visual cue | Meaning |
|---|---|---|
| Pass | Success-tinted cell with check glyph | Candidate passed the judge evaluation. |
| Fail | Danger-tinted cell with cross glyph | Candidate failed; bold inset border marks a regression (passed on baseline). |
| Error | Warning-tinted cell with exclamation glyph | Case errored before the judge could score a reply. |
| In flight | Accent-breathing cell | Case reported via started(caseId) while scoring is underway. |
| Baseline ghost | Vertical tick marker on category bars and judge rubric bars | Baseline pass rate or baseline 1–5 rubric score for direct comparison at a glance. |
Drilldown and triage workflow
| Section | Behavior |
|---|---|
| Comparison | Runs an LCS word diff with single-word phrase folding; falls back to full side-by-side text when replies share less than 30% wording. |
| Judge | Displays the judge model, 1–5 rubric bars with baseline ghost ticks and point deltas, and the judge rationale. |
| Triage | Mark as expected accepts the change (with Undo to restore both buttons); Open issue records the returned issue key. |
API reference
These serializable arguments and defaults come directly from the component schema.
| Argument | Type / default | Description |
|---|---|---|
suite | EvalSuiteDataDefault: {"name":"Support agent","candidate":{"version":"v12","model":{"name":"Claude Sonnet 5.5","brand":"claude"}},"baseline":{"version":"v11","model":{"name":"GPT-6 Luna","brand":"openai"}},"judge":{"name":"Claude Opus 5.5","brand":"claude"},"categories":["Refunds","Shipping","Tone","Escalation","Tool use"],"rubric":["Correctness","Policy","Tone","Completeness"],"cases":[{"id":"refunds-01","category":"Refunds","title":"Refund for a damaged blender","baseline":"pass"},{"id":"refunds-02","category":"Refunds","title":"Refund after partial shipment","baseline":"pass","input":"Only 2 of my 3 items arrived (order #48213). The candle set is still missing. Can I get my money back for that part?","expected":"Refund only the missing candle set ($34.00), not the whole order, and give the 5 to 7 business day timeline.","baselineOutput":"I’m sorry the candle set hasn’t arrived. I’ve refunded $34.00 for it to your original payment method, and you’ll see it within 5 to 7 business days. The other two items are yours to keep.","baselineScores":[5,5,4,5]},{"id":"refunds-03","category":"Refunds","title":"Refund outside the 30 day window","baseline":"fail"},{"id":"refunds-04","category":"Refunds","title":"Duplicate charge on one order","baseline":"pass"},{"id":"refunds-05","category":"Refunds","title":"Refund to an expired card","baseline":"pass","input":"You refunded my order but the card I used expired last month. Where does the money go?","expected":"Explain that the bank routes the refund to the account behind the expired card, and offer store credit if it does not arrive. Never ask for card details.","baselineOutput":"Good question. Refunds to an expired card are still routed by your bank to the same account. If it hasn’t appeared after 10 business days, I can send it as store credit instead.","baselineScores":[4,5,4,4]},{"id":"refunds-06","category":"Refunds","title":"Gift card purchase refund","baseline":"pass"},{"id":"refunds-07","category":"Refunds","title":"Refund for a late delivery","baseline":"pass"},{"id":"refunds-08","category":"Refunds","title":"Return label never arrived","baseline":"pass"},{"id":"refunds-09","category":"Refunds","title":"Refund for an opened item","baseline":"pass"},{"id":"refunds-10","category":"Refunds","title":"Store credit instead of a refund","baseline":"pass"},{"id":"refunds-11","category":"Refunds","title":"Refund status after 10 days","baseline":"pass"},{"id":"refunds-12","category":"Refunds","title":"Cancel and refund a preorder","baseline":"pass"},{"id":"refunds-13","category":"Refunds","title":"Refund for a missing accessory","baseline":"pass"},{"id":"refunds-14","category":"Refunds","title":"Partial refund on a bundle","baseline":"pass","input":"I returned just the mouse from the desk bundle. How much will I get back?","expected":"Refund the mouse at its share of the bundle price ($18.40), not its standalone price.","baselineOutput":"Since the mouse was part of the desk bundle, your refund is its share of the bundle price: $18.40. It will reach your card within 5 to 7 business days.","baselineScores":[5,5,4,5]},{"id":"refunds-15","category":"Refunds","title":"Refund in a different currency","baseline":"pass"},{"id":"refunds-16","category":"Refunds","title":"Refund after a price drop","baseline":"pass"},{"id":"refunds-17","category":"Refunds","title":"Subscription refund mid cycle","baseline":"pass","input":"I cancelled my coffee subscription halfway through the month. Do I get anything back?","expected":"Refund the unused half of the month ($12.00) and confirm the cancellation date.","baselineOutput":"Your subscription was cancelled on October 14, halfway through the cycle, so I’ve refunded the unused part: $12.00.","baselineScores":[5,5,4,5]},{"id":"refunds-18","category":"Refunds","title":"Refund for the wrong size","baseline":"pass"},{"id":"refunds-19","category":"Refunds","title":"Chargeback already filed","baseline":"fail"},{"id":"refunds-20","category":"Refunds","title":"Refund for a final sale item","baseline":"pass"},{"id":"refunds-21","category":"Refunds","title":"Refund to a closed account","baseline":"pass"},{"id":"refunds-22","category":"Refunds","title":"Shipping fee refund","baseline":"pass"},{"id":"refunds-23","category":"Refunds","title":"Refund for a recalled kettle","baseline":"pass"},{"id":"refunds-24","category":"Refunds","title":"Refund split across two cards","baseline":"pass"},{"id":"shipping-01","category":"Shipping","title":"Delivered but not received","baseline":"pass"},{"id":"shipping-02","category":"Shipping","title":"Change address after dispatch","baseline":"pass"},{"id":"shipping-03","category":"Shipping","title":"Express upgrade on an open order","baseline":"pass"},{"id":"shipping-04","category":"Shipping","title":"Customs fees on an EU order","baseline":"fail"},{"id":"shipping-05","category":"Shipping","title":"Tracking stuck for 6 days","baseline":"pass"},{"id":"shipping-06","category":"Shipping","title":"Ship to a parcel locker","baseline":"pass"},{"id":"shipping-07","category":"Shipping","title":"Split shipment arriving apart","baseline":"pass"},{"id":"shipping-08","category":"Shipping","title":"Delivery window for Zurich","baseline":"pass"},{"id":"shipping-09","category":"Shipping","title":"Lost package claim","baseline":"fail"},{"id":"shipping-10","category":"Shipping","title":"Wrong item in the box","baseline":"pass"},{"id":"shipping-11","category":"Shipping","title":"Shipping to a PO box","baseline":"pass"},{"id":"shipping-12","category":"Shipping","title":"Holiday cutoff dates","baseline":"pass"},{"id":"shipping-13","category":"Shipping","title":"Left with a neighbor","baseline":"pass"},{"id":"shipping-14","category":"Shipping","title":"Damaged outer box","baseline":"pass"},{"id":"shipping-15","category":"Shipping","title":"International shipping rates","baseline":"pass"},{"id":"shipping-16","category":"Shipping","title":"Reschedule a delivery","baseline":"pass"},{"id":"shipping-17","category":"Shipping","title":"Signature required delivery","baseline":"pass"},{"id":"shipping-18","category":"Shipping","title":"Not shipped after 5 days","baseline":"pass"},{"id":"shipping-19","category":"Shipping","title":"Combine two orders","baseline":"pass"},{"id":"shipping-20","category":"Shipping","title":"Oversized item freight","baseline":"fail"},{"id":"shipping-21","category":"Shipping","title":"Return pickup scheduling","baseline":"pass"},{"id":"shipping-22","category":"Shipping","title":"Pickup point opening hours","baseline":"pass"},{"id":"shipping-23","category":"Shipping","title":"Shipping to a hotel","baseline":"pass"},{"id":"shipping-24","category":"Shipping","title":"Backordered item date","baseline":"pass"},{"id":"tone-01","category":"Tone","title":"Angry customer, third contact","baseline":"pass"},{"id":"tone-02","category":"Tone","title":"Customer writes in German","baseline":"fail","input":"Hallo, meine Bestellung ist noch nicht angekommen. Können Sie bitte nachsehen?","expected":"Reply in German with the order status and the delivery date.","baselineOutput":"Hi! Your order #51022 shipped on October 15 and should arrive on October 21.","baselineScores":[4,3,2,4]},{"id":"tone-03","category":"Tone","title":"Sarcastic complaint about delays","baseline":"pass"},{"id":"tone-04","category":"Tone","title":"Thank you message only","baseline":"pass"},{"id":"tone-05","category":"Tone","title":"Customer mentions a bereavement","baseline":"fail"},{"id":"tone-06","category":"Tone","title":"Message written in capitals","baseline":"pass"},{"id":"tone-07","category":"Tone","title":"Threat of a bad review","baseline":"pass"},{"id":"tone-08","category":"Tone","title":"Unclear request from an older customer","baseline":"pass"},{"id":"tone-09","category":"Tone","title":"Customer uses profanity","baseline":"pass"},{"id":"tone-10","category":"Tone","title":"One word replies","baseline":"pass"},{"id":"tone-11","category":"Tone","title":"Customer asks for a human","baseline":"fail"},{"id":"tone-12","category":"Tone","title":"Apology for a repeated mistake","baseline":"pass"},{"id":"tone-13","category":"Tone","title":"Comparison to a competitor","baseline":"pass"},{"id":"tone-14","category":"Tone","title":"Very long, rambling message","baseline":"pass"},{"id":"tone-15","category":"Tone","title":"Customer in a hurry","baseline":"pass"},{"id":"tone-16","category":"Tone","title":"Polite follow-up after silence","baseline":"pass"},{"id":"tone-17","category":"Tone","title":"Customer shares a medical need","baseline":"pass"},{"id":"tone-18","category":"Tone","title":"Joke in the opening line","baseline":"pass"},{"id":"tone-19","category":"Tone","title":"Frustrated by bots","baseline":"pass"},{"id":"tone-20","category":"Tone","title":"Formal business inquiry","baseline":"pass"},{"id":"tone-21","category":"Tone","title":"Parent asks about a teen’s order","baseline":"pass"},{"id":"tone-22","category":"Tone","title":"Customer corrects the agent","baseline":"pass"},{"id":"tone-23","category":"Tone","title":"Mixed English and Spanish","baseline":"fail"},{"id":"tone-24","category":"Tone","title":"Praise with a small complaint","baseline":"pass"},{"id":"escalation-01","category":"Escalation","title":"Legal threat over a refund","baseline":"pass","input":"This is the third time I’m asking. If the refund isn’t processed today my lawyer will be in touch.","expected":"Acknowledge, make no promises about the outcome, and hand off to the escalations team with a summary of the ticket.","baselineOutput":"I understand, and I’m sorry this has taken three contacts. I’m passing your case to our escalations team now with the full history, and they will reply today.","baselineScores":[5,5,5,4]},{"id":"escalation-02","category":"Escalation","title":"Suspected account takeover","baseline":"fail"},{"id":"escalation-03","category":"Escalation","title":"Injury from a product","baseline":"pass"},{"id":"escalation-04","category":"Escalation","title":"Press inquiry","baseline":"pass"},{"id":"escalation-05","category":"Escalation","title":"Repeated failed deliveries","baseline":"pass"},{"id":"escalation-06","category":"Escalation","title":"Request for a manager","baseline":"pass"},{"id":"escalation-07","category":"Escalation","title":"Data deletion request","baseline":"fail"},{"id":"escalation-08","category":"Escalation","title":"Fraudulent order report","baseline":"pass"},{"id":"escalation-09","category":"Escalation","title":"Bulk order over 50 units","baseline":"pass"},{"id":"escalation-10","category":"Escalation","title":"Safety recall question","baseline":"pass"},{"id":"escalation-11","category":"Escalation","title":"Payment dispute","baseline":"pass"},{"id":"escalation-12","category":"Escalation","title":"Complaint from a key account","baseline":"pass"},{"id":"escalation-13","category":"Escalation","title":"Accessibility complaint","baseline":"pass"},{"id":"escalation-14","category":"Escalation","title":"Courier harassment report","baseline":"pass"},{"id":"escalation-15","category":"Escalation","title":"Order over $5,000","baseline":"pass"},{"id":"escalation-16","category":"Escalation","title":"Agent loop, fourth attempt","baseline":"error"},{"id":"escalation-17","category":"Escalation","title":"Warranty claim denied twice","baseline":"pass"},{"id":"escalation-18","category":"Escalation","title":"Duplicate account merge","baseline":"pass"},{"id":"escalation-19","category":"Escalation","title":"Chargeback threat","baseline":"pass"},{"id":"escalation-20","category":"Escalation","title":"Reseller partner issue","baseline":"pass"},{"id":"escalation-21","category":"Escalation","title":"Staff conduct report","baseline":"pass"},{"id":"escalation-22","category":"Escalation","title":"Allergic reaction report","baseline":"pass"},{"id":"escalation-23","category":"Escalation","title":"Subpoena for order records","baseline":"fail"},{"id":"escalation-24","category":"Escalation","title":"Complaint to a regulator","baseline":"fail"},{"id":"tools-01","category":"Tool use","title":"Look up an order by email","baseline":"pass"},{"id":"tools-02","category":"Tool use","title":"Issue a refund with the payments tool","baseline":"pass"},{"id":"tools-03","category":"Tool use","title":"Create a return label","baseline":"pass"},{"id":"tools-04","category":"Tool use","title":"Check stock in two warehouses","baseline":"pass"},{"id":"tools-05","category":"Tool use","title":"Update a shipping address","baseline":"pass"},{"id":"tools-06","category":"Tool use","title":"Apply a discount code","baseline":"pass"},{"id":"tools-07","category":"Tool use","title":"Cancel a subscription","baseline":"pass"},{"id":"tools-08","category":"Tool use","title":"Fetch tracking events","baseline":"pass"},{"id":"tools-09","category":"Tool use","title":"Search the help center","baseline":"pass"},{"id":"tools-10","category":"Tool use","title":"Merge duplicate tickets","baseline":"pass"},{"id":"tools-11","category":"Tool use","title":"Verify identity before changes","baseline":"pass"},{"id":"tools-12","category":"Tool use","title":"Retry after a tool timeout","baseline":"fail","input":"Where is order #49870? It said out for delivery this morning.","expected":"Retry the order lookup once after a timeout, then give the status.","baselineOutput":"Sorry, I couldn’t look up your order right now. Please try again later.","baselineScores":[2,4,4,2]},{"id":"tools-13","category":"Tool use","title":"Handle an empty search result","baseline":"pass"},{"id":"tools-14","category":"Tool use","title":"Chain a lookup and a refund","baseline":"pass"},{"id":"tools-15","category":"Tool use","title":"Tool returns malformed JSON","baseline":"error"},{"id":"tools-16","category":"Tool use","title":"Skip tools for a simple question","baseline":"pass"},{"id":"tools-17","category":"Tool use","title":"Pass the right order id","baseline":"pass"},{"id":"tools-18","category":"Tool use","title":"Paginate order history","baseline":"fail"},{"id":"tools-19","category":"Tool use","title":"Confirm before a destructive call","baseline":"pass","input":"Cancel my subscription, I guess. Or maybe pause it? Not sure.","expected":"Ask whether to pause or cancel before calling cancel_subscription.","baselineOutput":"Happy to help. Would you like to pause it for up to 3 months, or cancel it completely? Pausing keeps your current price.","baselineScores":[4,5,4,4]},{"id":"tools-20","category":"Tool use","title":"Parallel lookups for two orders","baseline":"fail","input":"Can you check orders #50112 and #50177? Both were meant to come this week.","expected":"Look up both orders, in parallel if possible, and give the status of each.","baselineOutput":"Order #50112 arrives tomorrow. I couldn’t find order #50177; could you check the number?","baselineScores":[3,5,4,2]},{"id":"tools-21","category":"Tool use","title":"Read a PDF invoice","baseline":"pass"},{"id":"tools-22","category":"Tool use","title":"Rate limited payments API","baseline":"error"},{"id":"tools-23","category":"Tool use","title":"Choose between two tools","baseline":"fail"},{"id":"tools-24","category":"Tool use","title":"Summarize tool output","baseline":"pass"}],"estimate":{"costUsd":2.9,"seconds":190}} | The suite: candidate and baseline versions with their models, the judge model, rubric criteria, categories, cases, and an optional cost and time estimate. Defaults to a 120-case sample support agent suite. Cases with input get a drilldown. |
runs | EvalRunRecord[]Default: [{"id":"run-v5","label":"v5","score":76.7,"date":"Sep 8"},{"id":"run-v6","label":"v6","score":79.2,"date":"Sep 15"},{"id":"run-v7","label":"v7","score":78.3,"date":"Sep 22"},{"id":"run-v8","label":"v8","score":81.7,"date":"Sep 29"},{"id":"run-v9","label":"v9","score":80.8,"date":"Oct 6"},{"id":"run-v10","label":"v10","score":82.5,"date":"Oct 13"},{"id":"run-v11","label":"v11","score":83.3,"date":"Oct 17"}] | Earlier runs, oldest first, for the history sparkline. The last 7 show plus the current run. Defaults to seven sample runs ending at the baseline. |
defaultFilter | all | failed | regressions | improvedDefault: "regressions" | Filter the case list opens with. Defaults to regressions. |
runLabel | stringDefault: "Run" | Label of the button that starts the suite run. |
stopLabel | stringDefault: "Stop" | Label of the button while a run is streaming. |
runAgainLabel | stringDefault: "Run again" | Label of the run button once a run has finished. |
tryAgainLabel | stringDefault: "Try again" | Label of the failed-run recovery action. |
filterLabel | stringDefault: "Filter cases" | Accessible name of the case filter radio group. |
judgeLabel | stringDefault: "Judge" | Label of the judge model row in the header and drilldown. |
expectedLabel | stringDefault: "Expected" | Label of the expected behavior row in the drilldown. |
inputLabel | stringDefault: "Input" | Label of the customer message row in the drilldown. |
markExpectedLabel | stringDefault: "Mark as expected" | Label of the triage action accepting the change. |
openIssueLabel | stringDefault: "Open issue" | Label of the triage action filing an issue for the case. |
undoLabel | stringDefault: "Undo" | Label of the action restoring the triage buttons. |
showMoreLabel | stringDefault: "Show {count} more" | Label revealing more case rows; {count} fills the hidden count. |
showFewerLabel | stringDefault: "Show fewer" | Label collapsing the case list back to one page. |
markExpectedStatusLabel | stringDefault: "{title} marked as expected" | Status after accepting a change. |
issueOpenedStatusLabel | stringDefault: "Issue {key} opened for {title}" | Status after filing an issue; {key} fills the issue key and {title} the case title. |
triageFailedStatusLabel | stringDefault: "Could not triage {title}. Try again" | Status when a triage action rejects. |
runStartedStatusLabel | stringDefault: "Running {count} cases" | Status when a run starts; says simulated when it is. |
runFinishedStatusLabel | stringDefault: "Run finished. Score {score} percent, {delta} against {baseline}. {regressions} regressions, {improved} improved" | Status with score, delta, regressions, and improvements. |
runStoppedStatusLabel | stringDefault: "Run stopped after {count} of {total} cases" | Status after a stop. |
runFailedStatusLabel | stringDefault: "Run failed. {reason}" | Status when a run throws; {reason} fills the error. |
simulatedNote | stringDefault: "simulated" | Word added to statuses when the run or triage is simulated. |
notRunLabel | stringDefault: "Not run yet" | Score readout before the first run. |
scoreLabel | stringDefault: "Score" | Label above the overall pass rate. |
partialScoreLabel | stringDefault: "Partial score, {count} of {total}" | Score readout after a stop. |
runFailedLabel | stringDefault: "Run failed" | Score readout when the run throws. |
baselineScoredLabel | stringDefault: "{version} scored {score}%" | Baseline line under the score; {version} fills the label and {score} its percent. |
costLabel | stringDefault: "Cost" | Label of the run cost statistic. |
timeLabel | stringDefault: "Time" | Label of the run duration statistic. |
costEstimateLabel | stringDefault: "About {value}" | Cost before the first run; {value} fills the estimate. |
timeEstimateLabel | stringDefault: "About {value}" | Time before the first run; {value} fills the estimate. |
againstLabel | stringDefault: "against" | Word joining the candidate and baseline versions in the header. |
casesLabel | stringDefault: "{count} test cases" | Case count in the subtitle; {count} fills the number. |
lastRunsLabel | stringDefault: "Last {count} runs" | Sparkline heading; {count} fills the runs shown. |
runHistoryLabel | stringDefault: "Run history" | Accessible name of the sparkline slider. |
scoringLabel | stringDefault: "Scoring" | Label shown in place of Score while a run streams. |
scoringCountLabel | stringDefault: "{count} of {total}" | Scored progress beside the scoring label. |
passedLabel | stringDefault: "{count} passed" | Legend count for passes; {count} fills the number. |
failedLabel | stringDefault: "{count} failed" | Legend count for failures. |
errorsLabel | stringDefault: "{count} {noun}" | Legend count for errors; {noun} is singular or plural. |
regressionLabel | stringDefault: "{count} {noun}" | Legend count for regressions; {noun} is singular or plural. |
triagedNote | stringDefault: "{triaged} of {regressions} triaged" | Note beside the filter while regressions show; fills triaged and total counts. |
showMoreCasesAriaLabel | stringDefault: "Show {hidden} more cases" | Accessible name of the show more control; {hidden} fills the hidden count. |
allFilterLabel | stringDefault: "All" | Label of the case filter option showing every case. |
failedFilterLabel | stringDefault: "Failed" | Label of the case filter option showing non-passing cases. |
regressionsFilterLabel | stringDefault: "Regressions" | Label of the case filter option showing cases that regressed against the baseline. |
improvedFilterLabel | stringDefault: "Improved" | Label of the case filter option showing cases that now pass but failed on the baseline. |
noRegressionsLabel | stringDefault: "No regressions. Every case that passed on {baseline} still passes" | Empty regressions list; {baseline} fills the baseline label. |
noFailuresLabel | stringDefault: "Every case passed" | Empty failed list after a complete run. |
noImprovementsLabel | stringDefault: "No case went from failing on {baseline} to passing" | Empty improved list; {baseline} fills the baseline label. |
noneSoFarLabel | stringDefault: "None so far" | Empty filter list while a run streams. |
noneAfterStopLabel | stringDefault: "None in the cases scored before the stop" | Empty filter list after a stopped run. |
runToCompareLabel | stringDefault: "Run the suite to compare every case with {baseline}" | Empty filter list before the first run; {baseline} fills the baseline label. |
runAction | string— | Registered host action requested when Run is pressed. |
triageAction | string— | Registered host action requested when a case is triaged; reports the case id. |
locale | string— | BCP 47 locale for cost and duration formatting; inherited when omitted. |
recipe | studio | softDefault: "studio" | Visual treatment. Both recipes preserve interaction behavior. |
theme | EvalSuiteThemeDefault: {} | Color mode, accent, and typed semantic token overrides. |
motion | none | subtle | expressiveDefault: "subtle" | Animation preset. System reduced-motion preferences take precedence. |
motionOptions | EvalSuiteMotionOptionsDefault: {} | Row and panel reflow, gliding highlight, and label swap timing overrides in milliseconds. |
dir | ltr | rtl— | Reading direction; inherited from the page when omitted. |
EvalSuiteDataaccepts{ name, candidate, baseline, judge, categories?, rubric?, cases, estimate? }. Candidate and baseline each take{ version, model: { name, brand?: 'claude' | 'openai' } }. Each case requires{ id, category, title, baseline }, and cases withinputalso render an expandable drilldown with optionalexpected,baselineOutput, andbaselineScores.EvalRunRecordaccepts{ id, label, score, date? }, ordered oldest first. The sparkline displays up to the last 7 records plus the current run.
React integration
| Prop | Purpose |
|---|---|
onRun(suite, context) | Runs the evaluation. Return an AsyncIterable<EvalCaseResult> to stream results live or a Promise<EvalCaseResult[]>. Uses { signal, started } for cancellation and in-flight cells. |
onTriage(caseId, action) | Called for 'expected' or 'issue'. Return or resolve an issue key (for example 'SUP-2481') for 'issue'; reject to restore both buttons and announce retry. |
onAction(action, itemId?) | Called with runAction when starting a run or triageAction (plus caseId) when triaging a case. |
preset | Application defaults overridden by explicit instance arguments. |
tokens | CSS variables applied after the typed theme on the root <section>. |
ref, className, style | Applied to the root <section> element. |
| Native attributes | id, aria-*, data-*, and remaining <section> props forwarded to the root element. |
Keyboard & accessibility
| Key | Action |
|---|---|
Tab | Moves across Run, the run history slider, the case filter group, expandable case rows, Show more, and triage actions. |
ArrowLeft / ArrowRight | Steps through runs on the history sparkline or switches case filter options (respects RTL). |
ArrowUp / ArrowDown | Steps to the previous or next run on the sparkline or case filter option. |
Home / End | Jumps to the first or last run on the sparkline or case filter option. |
Escape | Resets the sparkline readout to the latest run. |
Enter / Space | Starts or stops a run, toggles a case drilldown, or activates a triage or Undo button. |
- Each category row uses
role="img"with a complete spoken summary (pass, fail, error, unscored counts, percentage, and delta) so up to 120 cells never flood screen readers. - The run history sparkline uses
role="slider"witharia-valuemin,aria-valuemax,aria-valuenow, andaria-valuetextannouncing version, score, and date. - Case rows with
inputrender as buttons witharia-expandedandaria-controlstargeting a labelledrole="region"drilldown; rows without drilldown content render as non-interactive rows. - Focus follows triage replacements cleanly onto Undo, the confirmation status, or the restored triage buttons so keyboard focus never drops to
document.body. - A pre-mounted polite
role="status"live region announces run start, completion summary, stop, failure, and triage updates. - Container queries adapt the layout across five widths (
680px,620px,560px,480px, and360px), stacking summary columns, category stats, comparison panes, header chips, and wrapping cells into two rows on narrow cards. Logical CSS and RTL mirroring flip directional arrows and the sparkline cleanly, while@media (forced-colors: active)maps cells, bars, and diffs to system colors.
Motion & theming
The Run pill morphs smoothly to each label's natural width while icons crossfade in place. Scores, category percentages, and cost count smoothly with tabular numerals (CountUp), the filter highlight glides on a snappy spring (layoutId), and expanding rows, drilldowns, and filter height changes follow the smooth zero-overshoot spring.
Under prefers-reduced-motion: reduce, breathing cells, springs, height reflow, and glyph scale-ins turn off while status swaps keep a 120ms opacity crossfade and TextShimmer switches to fade mode. Setting motion="none" makes every transition immediate (0ms).
theme accepts mode, accent, and typed tokens across these groups:
| Token group | CSS custom properties |
|---|---|
core | --ui-surface, --ui-surface-raised, --ui-text, --ui-text-secondary, --ui-muted, --ui-border, --ui-highlight, --ui-accent, --ui-accent-foreground, --ui-danger, --ui-focus-ring, --ui-radius, --ui-border-width, --ui-shadow, --ui-disabled-opacity, --ui-font, --ui-font-size, --ui-font-weight |
extended | --ui-surface-sunken, --ui-border-strong, --ui-border-subtle, --ui-track, --ui-info, --ui-success, --ui-warning, --ui-tone-foreground, --ui-overlay, --ui-tint-strength |
shape | --ui-radius-sm, --ui-popup-radius, --ui-surface-radius |
elevation | --ui-shadow-resting, --ui-shadow-raised |
accentTones | --ui-accent-strong, --ui-accent-subtle |
An application-wide UtherealProvider supplies defaults.
Composition
In an agent composition, EvalSuite is a leaf block. Supply unique case IDs, align baselineScores with suite.rubric, and bind runAction and triageAction to registered host actions. See Building with agents.
{
"type": "EvalSuite",
"props": {
"defaultFilter": "regressions",
"runAction": "run_eval_suite",
"triageAction": "triage_eval_case"
},
"children": []
}