
书名:《Agent Runtime 工程化:从工具调用循环到可恢复执行系统》
作者:陈堂会
章节:第九章 可观测与 Trace / 9.6 动手任务
电子版系列:查看完整目录
第九章 可观测与 Trace:9.6 动手任务
为每次 Agent run 输出 trace JSON,记录:
- model;
- prompt tokens;
- completion tokens;
- tool name;
- args;
- duration;
- success/failure;
- retry count;
- cost estimate;
- approval decision;
- context debug report。
然后找一个失败任务,用 trace 写一份事故复盘:根因是什么,如何修,新增什么 eval 防回归。
系列导航
前 5 篇
- 第九章 可观测与 Trace:9.5 本地 trace JSON
- 第九章 可观测与 Trace:9.4 trace 与隐私
- 第九章 可观测与 Trace:9.3 失败归因
- 第九章 可观测与 Trace:9.2 必须记录的字段
- 第九章 可观测与 Trace:9.1 Agent trace 的基本结构

