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

AxAIGoogleGeminiCacheCreateRequest

TypeScript
type AxAIGoogleGeminiCacheCreateRequest = object;

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L349

Request to create a context cache in Vertex AI / Gemini API.

Properties

contents?

TypeScript
optional contents: AxAIGoogleGeminiContent[];

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L357

Content parts to cache


displayName?

TypeScript
optional displayName: string;

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L353

Display name for the cache (optional)


expireTime?

TypeScript
optional expireTime: string;

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L365

Absolute expiration time (ISO 8601)


model

TypeScript
model: string;

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L351

The model to associate with the cache


systemInstruction?

TypeScript
optional systemInstruction: AxAIGoogleGeminiContent;

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L355

System instruction to cache


toolConfig?

TypeScript
optional toolConfig: AxAIGoogleGeminiToolConfig;

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L361

Tool configuration to cache


tools?

TypeScript
optional tools: AxAIGoogleGeminiTool[];

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L359

Tools to cache


ttl?

TypeScript
optional ttl: string;

Defined in: https://github.com/ax-llm/ax/blob/04543e9e0873874640d5dbb158048393db35723c/src/ax/ai/google-gemini/types.ts#L363

TTL duration string (e.g., “3600s” for 1 hour)

Docs