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

Properties

cacheCreationTokens?

TypeScript
optional cacheCreationTokens: number;

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


cacheReadTokens?

TypeScript
optional cacheReadTokens: number;

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


completionTokens

TypeScript
completionTokens: number;

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


promptTokens

TypeScript
promptTokens: number;

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


reasoningTokens?

TypeScript
optional reasoningTokens: number;

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


serviceTier?

TypeScript
optional serviceTier: AxAppliedServiceTier;

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


speed?

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

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


thoughtsTokens?

TypeScript
optional thoughtsTokens: number;

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


totalTokens

TypeScript
totalTokens: number;

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

Docs