AxTokenUsage Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxTokenUsage.md type AxTokenUsage

AxTokenUsage

TypeScript
type AxTokenUsage = object;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L148

Properties

cacheCreationTokens?

TypeScript
optional cacheCreationTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L154


cacheReadTokens?

TypeScript
optional cacheReadTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L155


completionTokens

TypeScript
completionTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L150


promptTokens

TypeScript
promptTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L149


reasoningTokens?

TypeScript
optional reasoningTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L153


serviceTier?

TypeScript
optional serviceTier: AxAppliedServiceTier;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L156


speed?

TypeScript
optional speed: "standard" | "fast";

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L157


thoughtsTokens?

TypeScript
optional thoughtsTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L152


totalTokens

TypeScript
totalTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/types.ts#L151

Docs