Skip to content

Documentation / @agentick/shared / UsageStats

Interface: UsageStats ​

Defined in: models.ts:103

Token usage information (normalized across providers).

Used in ModelOutput, stream events, and execution metrics.

Properties ​

cacheCreationTokens? ​

optional cacheCreationTokens: number

Defined in: models.ts:120

Tokens used to create cache (Anthropic prompt caching)


cachedInputTokens? ​

optional cachedInputTokens: number

Defined in: models.ts:117

Tokens read from cache (Anthropic prompt caching)


inputTokens ​

inputTokens: number

Defined in: models.ts:105

Input tokens consumed


outputTokens ​

outputTokens: number

Defined in: models.ts:108

Output tokens generated


reasoningTokens? ​

optional reasoningTokens: number

Defined in: models.ts:114

Reasoning/thinking tokens (Anthropic extended thinking, OpenAI o1)


ticks? ​

optional ticks: number

Defined in: models.ts:123

Number of ticks executed (engine-level, optional for model usage)


totalTokens ​

totalTokens: number

Defined in: models.ts:111

Total tokens (input + output)

Released under the ISC License.