From 2f97b1cf78f5eb562554a9351ef14d55f3ce31c4 Mon Sep 17 00:00:00 2001 From: sausheong Date: Fri, 26 Jun 2026 21:37:28 -0700 Subject: [PATCH] docs(runtime): clarify EventDone.Usage is the run total --- runtime/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/runtime.go b/runtime/runtime.go index be927e7..ea6fb6b 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -45,7 +45,7 @@ type AgentEvent struct { Result *tool.ToolResult Error error Compaction *compaction.Result // populated for EventCompaction* events - Usage *llm.Usage // populated for EventDone when the provider reported it + Usage *llm.Usage // on the terminal EventDone, the token total accumulated across all turns of the run (nil if the provider never reported usage); per-turn figures are available via RunTurn's TurnResult.Usage } // Runtime is the agent think-act loop.