feature: scripts/export_run.py 用来导出运行结果

This commit is contained in:
baozaotumao2025
2026-07-18 23:28:13 +08:00
parent 14722be770
commit c57ec67fe3
7 changed files with 85 additions and 7 deletions
+8
View File
@@ -36,6 +36,14 @@
逐条结果用 `execution_status``completed|error`)表示执行状态,用可空 `verdict` 表示仲裁结论;Run 的 `error_count` 不包含 `verdict=fail``resume` 只补跑未落库样例;`retry-errors` 只重跑所有 `execution_status=error``results/{execution_id}/retry` 可在终态 Run 中只重跑指定结果。
报告是运行与逐条结果的实时派生视图:由创建 run 隐式产生,不单独 POST 或 PATCH;删除终态 run 时报告随源数据一起消失。
终态 Run 可导出包含模型输入、输出和裁判结果的 Markdown 详细报告;默认导出全部样例:
```bash
uv run python scripts/export_run.py --run-id 42
```
使用 `--execution-status completed|error` 按执行状态过滤,使用 `--verdict pass|fail|needs_human_review|judge_format_error|none` 按评价结果过滤;两者可组合。默认输出为 `outputs/run_<run_id>_results.md`
## 快速启动
```bash