NiceEval

更适合 Agent 的评估。

文档

阅读文档,在 10 分钟内为你的 Agent 构建评估

niceeval
$ niceeval exp compare
PLAN ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
8 attempts · 4 evals × 2 configs · concurrency 4
2 of 8 carried in from cache · 6 to run
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@1bwcxxiy checkout/apply-coupon [compare/gpt-5.4]
gate: cart total reflects the SAVE20 coupon
equals(80) · expected 80 · received 100
FAILED ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 2m 07s
7 passed · 1 failed · 0 errored (2 reused)
330.5k new tok · $0.51
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FAILURES ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@1bwcxxiy checkout/apply-coupon [compare/gpt-5.4]
gate: cart total reflects the SAVE20 coupon
equals(80) · expected 80 · received 100
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
NEXT ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Inspect: niceeval show @1bwcxxiy
Eval: niceeval show @1bwcxxiy --source
Trace: niceeval show @1bwcxxiy --execution
Diff: niceeval show @1bwcxxiy --diff
Compare: niceeval view
├─ RESULTS ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
.niceeval/compare/gpt-5.4/2026-07-30T09-14-22-118Z-i080
.niceeval/compare/sonnet-5/2026-07-30T09-14-22-140Z-b3kq
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
$ niceeval show --exp compare/gpt-5.4 --exp compare/sonnet-5
compare · 2 conditions · paired by eval id · baseline compare/gpt-5.4
common 4 · compare/gpt-5.4 only 0 · compare/sonnet-5 only 0
evalgpt-5.4sonnet-5Δ sonnet-5checkout/apply-coupon 84.9k $0.14 61.2k $0.09⇄ -23.7k -$0.05checkout/refund-window 52.4k $0.08 57.9k $0.09+5.5k +$0.01support/order-status ↩ 2h 38.1k $0.06 ↩ 2h 35.2k $0.05-2.9k -$0.01support/escalation 40.3k $0.06 33.8k $0.05-6.5k -$0.01totals3/4 passed 215.7k $0.344/4 passed 188.1k $0.28
common vs baseline · pass rate +25.0pt · tokens -27.6k · cost -$0.06
$
1

接入

通过适配器与o11y,接入你的 Agent 或者 CC/Codex

2

定义

像写单元测试一样写评估与实验

3

评估

并行评估

Eval 示例

Eval 对话、工具调用与 Coding Agent

每张卡都是一个可直接运行的 defineEval 文件。点击高亮行,展开助手回复和断言说明。

多模态多轮看图问答
通过
1import { defineEval } from "niceeval";
2
3export default defineEval({
4 description: "评估 agent 在多轮对话中多模态的能力",
5
6 async test(t) {
13
14 await t.group("后续追问能联系图片上下文", () => {
16 });
17
18 t.judge.autoevals
19 .closedQA("助手是否在三轮对话中始终基于第一轮发送的图片内容作答,而不是凭空发挥?")
21 },
22});

Agent 也是用户

把评估变成循环

NiceEval 的 CLI 把 Agent 也当成用户来设计——它不只是评估工具,而是构建评估、执行评估、优化 Agent 系统的循环框架。每个输出都有给 agent 读的一面,coding agent 靠 bash 就能跑完整个循环。

评估exp local诊断show @id归因show --source优化claude
终端niceeval exp local --output agent --force
$ niceeval exp local --output agent --force
NICEEVAL RESULT failed
summary: 14 passed, 1 failed, 0 errored
failures:
  - @1k2m9qtr weather/brooklyn [local]
      gate: tool was never called
next:
  niceeval show @1k2m9qtr
  niceeval show @1k2m9qtr --execution