Interface: MoonshotUsage
@providerprotocol/ai / moonshot / MoonshotUsage
Interface: MoonshotUsage
Section titled “Interface: MoonshotUsage”Defined in: src/providers/moonshot/types.ts:750
Token usage statistics from the API response
Properties
Section titled “Properties”completion_tokens
Section titled “completion_tokens”completion_tokens:
number
Defined in: src/providers/moonshot/types.ts:752
prompt_tokens
Section titled “prompt_tokens”prompt_tokens:
number
Defined in: src/providers/moonshot/types.ts:751
prompt_tokens_details?
Section titled “prompt_tokens_details?”
optionalprompt_tokens_details:object
Defined in: src/providers/moonshot/types.ts:754
cached_tokens?
Section titled “cached_tokens?”
optionalcached_tokens:number
total_tokens
Section titled “total_tokens”total_tokens:
number
Defined in: src/providers/moonshot/types.ts:753