xpander-sdk
LLMTokens
Token usage counters for LLM requests
The LLMTokens
model holds token counts for a single LLM call.
Properties
Property | Type | Description |
---|---|---|
completion_tokens | number | Tokens generated by the model |
prompt_tokens | number | Tokens from the user prompt |
total_tokens | number | Sum of prompt and completion tokens |
Example
Python
See the xpander-sdk docs for full property details.