Skip to content

Interface: CacheCreateOptions

@providerprotocol/ai


@providerprotocol/ai / google / CacheCreateOptions

Defined in: src/providers/google/cache.ts:38

Options for creating a cached content entry.

apiKey: string

Defined in: src/providers/google/cache.ts:40

API key for authentication


optional config: ProviderConfig

Defined in: src/providers/google/cache.ts:42

Provider configuration (timeout, retry strategy, custom fetch)


optional contents: GoogleContent[]

Defined in: src/providers/google/cache.ts:50

Content messages to cache


optional displayName: string

Defined in: src/providers/google/cache.ts:48

Optional display name for the cache (max 128 chars)


optional expireTime: string

Defined in: src/providers/google/cache.ts:58

Absolute expiration time (RFC 3339 format, alternative to ttl)


model: string

Defined in: src/providers/google/cache.ts:46

Model to associate with this cache (e.g., “gemini-3-flash-preview”)


optional signal: AbortSignal

Defined in: src/providers/google/cache.ts:44

Abort signal for cancellation


optional systemInstruction: string

Defined in: src/providers/google/cache.ts:52

System instruction text to cache


optional tools: GoogleTool[]

Defined in: src/providers/google/cache.ts:54

Tool declarations to cache


optional ttl: string

Defined in: src/providers/google/cache.ts:56

Time-to-live duration (e.g., “3600s” for 1 hour)