Interface: UsageStats

Defined in: costs/types.ts:48

Aggregated usage statistics

Properties

averageTokensPerCall

averageTokensPerCall: number;

Defined in: costs/types.ts:62

Average tokens per call

byModel

byModel: Record<string, {
  calls: number;
  inputTokens: number;
  outputTokens: number;
  totalTokens: number;
}>;

Defined in: costs/types.ts:68

Usage by model

firstCall?

optional firstCall?: Date;

Defined in: costs/types.ts:64

First call timestamp

lastCall?

optional lastCall?: Date;

Defined in: costs/types.ts:66

Last call timestamp

totalCacheCreationTokens

totalCacheCreationTokens: number;

Defined in: costs/types.ts:60

Total cache creation tokens

totalCacheReadTokens

totalCacheReadTokens: number;

Defined in: costs/types.ts:58

Total cache read tokens

totalCalls

totalCalls: number;

Defined in: costs/types.ts:50

Total number of LLM calls

totalInputTokens

totalInputTokens: number;

Defined in: costs/types.ts:52

Total input tokens

totalOutputTokens

totalOutputTokens: number;

Defined in: costs/types.ts:54

Total output tokens

totalTokens

totalTokens: number;

Defined in: costs/types.ts:56

Total tokens