开源项目
MLflow改按实际LLM调用累计Agent成本并保留缓存计费信息
Skip LLM cost on `AGENT` spans at store time and record Strands cache tokens (#27371)
概述
SQL trace存储把Agent累计usage层再次定价后只取顶层已定价span,可能丢失实际子调用的模型价格差异。 AGENT span不再生成LLM_COST,trace按子LLM span汇总,并让Strands聊天span带入缓存读写token。 只有Agent usage而无provider调用usage的trace将没有成本;原生Anthropic旧Strands版本仍有输入token口径限制,客户端定价路径未变。