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/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L194

Properties

cacheCreationTokens?

TypeScript
optional cacheCreationTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L200


cacheReadTokens?

TypeScript
optional cacheReadTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L201


completionTokens

TypeScript
completionTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L196


promptTokens

TypeScript
promptTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L195


reasoningTokens?

TypeScript
optional reasoningTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L199


serviceTier?

TypeScript
optional serviceTier: AxAppliedServiceTier;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L202


speed?

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

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L203


thoughtsTokens?

TypeScript
optional thoughtsTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L198


totalTokens

TypeScript
totalTokens: number;

Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/types.ts#L197

Docs