RunStatsAccumulator
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:24
Mutable tally behind finalizeRunStats; see createRunStatsAccumulator.
Properties
Section titled “Properties”input:
number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:26
Running sum of input/prompt tokens.
output
Section titled “output”output:
number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:28
Running sum of output/completion tokens.
sawUsage
Section titled “sawUsage”sawUsage:
boolean
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:30
Whether ANY message reported usage_metadata — gates whether tokens are recorded at all.
toolResults
Section titled “toolResults”toolResults:
GthToolResult[]
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:34
BATCH-21 — one record per executed tool result (ToolMessage), in arrival order, un-deduped.
tools:
Set<string>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:32
Deduplicated set of invoked tool names.