Skip to content

RunStatsAccumulator

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

Mutable tally behind finalizeRunStats; see createRunStatsAccumulator.

input: number

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

Running sum of input/prompt tokens.


output: number

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

Running sum of output/completion tokens.


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