feat(token-tracking): surface token_usage in ReportData

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
wangwei
2026-07-02 15:14:11 +08:00
co-authored by Copilot
parent 8245c7f9c3
commit 4bb1952348
3 changed files with 64 additions and 1 deletions
+4
View File
@@ -99,6 +99,10 @@ class ReportData(BaseModel):
default_factory=dict,
description="该次运行使用的文档权重配置(来自 scenario.snapshot.yaml)。",
)
token_usage: dict[str, dict[str, int]] = Field(
default_factory=dict,
description="按模型累计的 token 用量:{model: {input_tokens, output_tokens, calls}}。",
)
class RunDetail(BaseModel):