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/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L354

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/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L362

Content parts to cache


displayName?

TypeScript
optional displayName: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L358

Display name for the cache (optional)


expireTime?

TypeScript
optional expireTime: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L370

Absolute expiration time (ISO 8601)


model

TypeScript
model: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L356

The model to associate with the cache


systemInstruction?

TypeScript
optional systemInstruction: AxAIGoogleGeminiContent;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L360

System instruction to cache


toolConfig?

TypeScript
optional toolConfig: AxAIGoogleGeminiToolConfig;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L366

Tool configuration to cache


tools?

TypeScript
optional tools: AxAIGoogleGeminiTool[];

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L364

Tools to cache


ttl?

TypeScript
optional ttl: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/google-gemini/types.ts#L368

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

Docs