LogoRobo.js
Packages@robojs/ai

TokenUsageEntry

Interface: TokenUsageEntry

Individual token usage record persisted to Flashcore.

Properties

PropertyTypeDescription
createdAtnumberTimestamp (ms) when the usage occurred.
idstringUnique identifier assigned to the usage entry.
kind?stringOptional usage category describing the request.
metadata?Record<string, unknown>Optional metadata for downstream analytics.
modelstringModel for which tokens were consumed.
tokensInnumberNumber of prompt tokens recorded.
tokensOutnumberNumber of completion tokens recorded.
totalnumberCombined total tokens.

On this page