TokenRecordOptions
Options accepted by recordUsage when logging token consumption.
| Property | Type | Description |
|---|
kind? | string | Optional usage classification. |
metadata? | Record<string, unknown> | Additional metadata, such as guild or user identifiers. |
model | string | Model identifier being charged. |
timestamp? | number | Override timestamp for backfilled events. |
tokensIn? | number | Prompt tokens to record. |
tokensOut? | number | Completion tokens to record. |