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

AxAIGoogleGeminiCacheResponse

TypeScript
type AxAIGoogleGeminiCacheResponse = object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L379

Response from creating/getting a context cache.

Properties

createTime

TypeScript
createTime: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L387

When the cache was created (ISO 8601)


displayName?

TypeScript
optional displayName: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L383

Display name


expireTime

TypeScript
expireTime: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L391

When the cache expires (ISO 8601)


model

TypeScript
model: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L385

Model associated with the cache


name

TypeScript
name: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L381

Resource name of the cached content (e.g., “projects/…/locations/…/cachedContents/…”)


updateTime

TypeScript
updateTime: string;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L389

When the cache was last updated (ISO 8601)


usageMetadata?

TypeScript
optional usageMetadata: object;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/google-gemini/types.ts#L393

Token count of cached content

totalTokenCount

TypeScript
totalTokenCount: number;
Docs