Skip to content

RunStatsAccumulator

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:25

Mutable tally behind finalizeRunStats; see createRunStatsAccumulator.

input: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:27

Running sum of input/prompt tokens.


output: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:29

Running sum of output/completion tokens.


sawUsage: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:31

Whether ANY message reported usage_metadata — gates whether tokens are recorded at all.


toolResults: GthToolResult[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/runStats.ts:35

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:33

Deduplicated set of invoked tool names.