Interface: CacheCreateOptions
@providerprotocol/ai / google / CacheCreateOptions
Interface: CacheCreateOptions
Section titled “Interface: CacheCreateOptions”Defined in: src/providers/google/cache.ts:38
Options for creating a cached content entry.
Properties
Section titled “Properties”apiKey
Section titled “apiKey”apiKey:
string
Defined in: src/providers/google/cache.ts:40
API key for authentication
config?
Section titled “config?”
optionalconfig:ProviderConfig
Defined in: src/providers/google/cache.ts:42
Provider configuration (timeout, retry strategy, custom fetch)
contents?
Section titled “contents?”
optionalcontents:GoogleContent[]
Defined in: src/providers/google/cache.ts:50
Content messages to cache
displayName?
Section titled “displayName?”
optionaldisplayName:string
Defined in: src/providers/google/cache.ts:48
Optional display name for the cache (max 128 chars)
expireTime?
Section titled “expireTime?”
optionalexpireTime: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”)
signal?
Section titled “signal?”
optionalsignal:AbortSignal
Defined in: src/providers/google/cache.ts:44
Abort signal for cancellation
systemInstruction?
Section titled “systemInstruction?”
optionalsystemInstruction:string
Defined in: src/providers/google/cache.ts:52
System instruction text to cache
tools?
Section titled “tools?”
optionaltools:GoogleTool[]
Defined in: src/providers/google/cache.ts:54
Tool declarations to cache
optionalttl:string
Defined in: src/providers/google/cache.ts:56
Time-to-live duration (e.g., “3600s” for 1 hour)