TokenUsageEntry
Individual token usage record persisted to Flashcore.
| Property | Type | Description |
|---|
createdAt | number | Timestamp (ms) when the usage occurred. |
id | string | Unique identifier assigned to the usage entry. |
kind? | string | Optional usage category describing the request. |
metadata? | Record<string, unknown> | Optional metadata for downstream analytics. |
model | string | Model for which tokens were consumed. |
tokensIn | number | Number of prompt tokens recorded. |
tokensOut | number | Number of completion tokens recorded. |
total | number | Combined total tokens. |