feat(testing): add fixed tool simulations

This commit is contained in:
Xin Wang
2026-08-26 09:36:37 +08:00
parent 26582bfb87
commit 239b9027ca
16 changed files with 1525 additions and 237 deletions
@@ -23,6 +23,7 @@ import { BatchCaseStatusBadge } from "@/components/batch-test/batch-case-status"
import { Button } from "@/components/ui/button";
import {
firstEvaluationFailureReason,
testExecutionErrorLabel,
type BatchEvaluationResult,
type BatchRunCase,
type BatchToolCallRecord,
@@ -115,7 +116,7 @@ export function BatchCaseDetailDrawer({
<div className="mt-2.5 rounded-2xl border border-amber-500/25 bg-amber-500/[0.06] px-4 py-3.5">
<div className="flex flex-wrap items-center gap-2">
<code className="text-xs font-medium text-foreground">
{item.executionError.code}
{testExecutionErrorLabel(item.executionError.code)}
</code>
<span className="rounded-full border border-amber-500/25 px-2 py-0.5 text-[10px] text-amber-600 dark:text-amber-400">
{item.executionError.stage}