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/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/google-gemini/types.ts#L410

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/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/google-gemini/types.ts#L418

Content parts to cache


displayName?

TypeScript
optional displayName: string;

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

Display name for the cache (optional)


expireTime?

TypeScript
optional expireTime: string;

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

Absolute expiration time (ISO 8601)


model

TypeScript
model: string;

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

The model to associate with the cache


systemInstruction?

TypeScript
optional systemInstruction: AxAIGoogleGeminiContent;

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

System instruction to cache


toolConfig?

TypeScript
optional toolConfig: AxAIGoogleGeminiToolConfig;

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

Tool configuration to cache


tools?

TypeScript
optional tools: AxAIGoogleGeminiTool[];

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

Tools to cache


ttl?

TypeScript
optional ttl: string;

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

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

Docs