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

AxContextCacheInfo

TypeScript
type AxContextCacheInfo = object;

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

Information about a context cache entry (returned after creation or lookup).

Properties

contentHash?

TypeScript
optional contentHash: string;

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

Hash of the cached content for validation


expiresAt

TypeScript
expiresAt: string;

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

When the cache expires (ISO 8601 timestamp)


name

TypeScript
name: string;

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

Provider-specific cache resource name


tokenCount?

TypeScript
optional tokenCount: number;

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

Number of tokens in the cached content

Docs