Skip to Content
Anuma SDKClientInternalType AliasesLlmapiChatCompletionUsage

LlmapiChatCompletionUsage

LlmapiChatCompletionUsage = object

Defined in: src/client/types.gen.ts:1851 

Usage contains token usage information

Properties

completion_tokens?

optional completion_tokens: number

Defined in: src/client/types.gen.ts:1855 

CompletionTokens is the number of tokens in the completion


cost_micro_usd?

optional cost_micro_usd: number

Defined in: src/client/types.gen.ts:1859 

CostMicroUSD is the cost of this completion in micro-dollars (USD × 1,000,000)


credits_used?

optional credits_used: number

Defined in: src/client/types.gen.ts:1863 

CreditsUsed is the number of credits consumed by this completion (ceiling of cost / MicroUSDPerCredit)


init_completion_tokens?

optional init_completion_tokens: number

Defined in: src/client/types.gen.ts:1867 

InitCompletionTokens is the completion token count from the first LLM call before the MCP tool loop


init_prompt_tokens?

optional init_prompt_tokens: number

Defined in: src/client/types.gen.ts:1871 

InitPromptTokens is the prompt token count from the first LLM call before the MCP tool loop


pricing_source?

optional pricing_source: string

Defined in: src/client/types.gen.ts:1875 

PricingSource identifies which lookup produced CostMicroUSD; see internal/pricing/source.go.


prompt_tokens?

optional prompt_tokens: number

Defined in: src/client/types.gen.ts:1879 

PromptTokens is the number of tokens in the prompt


provider_cost_micro_usd?

optional provider_cost_micro_usd: number

Defined in: src/client/types.gen.ts:1884 

ProviderCostMicroUSD is what we believe the provider charged us in micro-USD. Today equals CostMicroUSD (no markup); kept distinct so future per-tier pricing preserves history.


tool_cost_micro_usd?

optional tool_cost_micro_usd: number

Defined in: src/client/types.gen.ts:1888 

ToolCostMicroUSD is the cost of MCP tool calls in micro-dollars (subset of CostMicroUSD)


total_tokens?

optional total_tokens: number

Defined in: src/client/types.gen.ts:1892 

TotalTokens is the total number of tokens used

Last updated on