diff --git a/dashboard/app/(dashboard)/agent-run-logs/page.tsx b/dashboard/app/(dashboard)/agent-run-logs/page.tsx index 81fa18c..7b83ef8 100644 --- a/dashboard/app/(dashboard)/agent-run-logs/page.tsx +++ b/dashboard/app/(dashboard)/agent-run-logs/page.tsx @@ -9,14 +9,6 @@ import { OptionCombobox } from "@/components/option-combobox" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" -import { - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, -} from "@/components/ui/table" import { AgentRunLogDetailDialog } from "./_components/detail" import { fetchAgentRunLogs, @@ -183,8 +175,8 @@ export default function DashboardAgentRunLogsPage() { return ( <>
-
-
+
+
-
+
setPlannedActionInput(value || "all")} />
-
+
setFinalActionInput(value || "all")} />
-
+
setFinalStatusInput(value || "all")} />
-
+
setHitlStatusInput(value || "all")} />
-
+
setAiAgentIdInput(value || "all")} />
- -
- - - - 时间 - 用户问题 - 规划动作 - Skill / Tool - 最终状态 - 耗时 - 操作 - - - - {!loading && result.results.length === 0 ? ( - - - 暂无 Agent 运行日志 - - - ) : null} - {result.results.map((item) => ( - - - {formatDateTime(item.createdAt)} - - - - {item.errorMessage ? ( -
- {item.errorMessage} -
- ) : null} -
- - - {item.plannedAction || "-"} - - - - {item.plannedSkillCode || item.plannedToolCode ? ( -
- - {item.plannedSkillCode || item.graphToolCode || item.plannedToolCode} - - {item.plannedSkillName ? ( -
- {item.plannedSkillName} -
- ) : null} - {item.handoffReason ? ( -
- 转人工原因:{item.handoffReason} -
- ) : null} - {item.recommendedAction ? ( -
- 分流建议:{item.recommendedAction} - {item.riskLevel ? ` / ${item.riskLevel} risk` : ""} - {item.ticketDraftReady ? " / 草稿已就绪" : ""} -
- ) : null} -
- ) : ( - "-" - )} -
- -
- - {item.finalAction || "-"} - - {item.hitlStatusName ? ( -
- - {item.hitlStatusName} - -
+ {!loading && result.results.length === 0 ? ( +
+ 暂无 Agent 运行日志 +
+ ) : ( +
+
+
时间
+
用户问题
+
规划动作
+
Skill / Tool
+
最终状态
+
耗时
+
操作
+
+ +
+ {result.results.map((item) => ( +
+
+ {formatDateTime(item.createdAt)} +
+ +
+ + {item.errorMessage ? ( +
{item.errorMessage}
) : null} -
- {item.finalStatus || "-"} +
+ +
+ + {item.plannedAction || "-"} + +
+ +
+ {item.plannedSkillCode || item.graphToolCode || item.plannedToolCode ? ( +
+
+ {item.plannedSkillCode || item.graphToolCode || item.plannedToolCode} +
+ {item.plannedSkillName ? ( +
+ {item.plannedSkillName} +
+ ) : item.handoffReason ? ( +
+ 转人工原因:{item.handoffReason} +
+ ) : item.recommendedAction ? ( +
+ 分流建议:{item.recommendedAction} + {item.riskLevel ? ` / ${item.riskLevel} risk` : ""} + {item.ticketDraftReady ? " / 草稿已就绪" : ""} +
+ ) : null} +
+ ) : ( + - + )} +
+ +
+
+ + {item.finalAction || "-"} + +
+ {item.hitlStatusName + ? `${item.hitlStatusName} / ${item.finalStatus || "-"}` + : item.finalStatus || "-"} +
- - - {item.latencyMs} ms - - - - - - ))} - -
+ +
+ {item.latencyMs} ms +
+ +
+ +
+ + ))} +
+
+ )}
summarizeUserMessage(value), [value]) return ( -
+
{preview}
)