ETF Agent adds non-additive report cost attribution
ETF Agent’s author describes an implemented cost view that links published reports and files to observed physical model attempts while keeping known estimates separate from unknown usage. The view marks shared attempts as non-additive, leaves shared costs unallocated, and treats cost-read failures without breaking access to already saved deliverables; the account is a single vendor-authored implementation description.
The approach provides a traceable basis for comparing agent-deliverable costs without mistaking request associations or overlapping views for complete, exclusive report costs.
一份研究报告已经保存,后台也记录了 Token。把这次 Run 的费用加起来,填到报告旁边,是不是就完成了成本统计?
只有在一个非常强的前提下才可能这样做:这次运行只服务这一份报告,所有调用都被完整记录,价格口径一致,没有共享工作,也没有未知费用。
真实 Agent 往往不满足这些条件。一次请求可能同时生成正文和图表;Child 查到的材料可能被多个输出复用;重试可能发生在没有返回完整用量之前。能找到报告相关的请求,不等于知道报告独占了多少钱。
一、先分清我们在算哪本账
讨论 Agent 成本时,最容易把四个不同问题混在一起。
| 视角 | 回答什么 | 不能代替什么 |
|---|---|---|
| 运行预算 | 这项任务还允许做多少工作? | 已发生的 Token 和供应商扣款 |
| 物理尝试 | 哪一次请求实际发送,留下了什么用量? | 整份报告的完整成本 |
| 账户用量或 Credits | 已知资源按内部规则如何累计? | 供应商最终发票 |
| 交付物归因 | 哪些工作与这份正文或文件有关,如何分摊? | 单纯的调用费用求和 |