Interface: GoogleCacheCreateRequest
@providerprotocol/ai / google / GoogleCacheCreateRequest
Interface: GoogleCacheCreateRequest
Section titled “Interface: GoogleCacheCreateRequest”Defined in: src/providers/google/types.ts:544
Request body for creating a cached content entry.
Properties
Section titled “Properties”contents?
Section titled “contents?”
optionalcontents:GoogleContent[]
Defined in: src/providers/google/types.ts:550
Content to cache (immutable after creation)
displayName?
Section titled “displayName?”
optionaldisplayName:string
Defined in: src/providers/google/types.ts:548
Optional display name for the cache (max 128 chars)
expireTime?
Section titled “expireTime?”
optionalexpireTime:string
Defined in: src/providers/google/types.ts:566
Absolute expiration time (RFC 3339 format, mutually exclusive with ttl)
model:
string
Defined in: src/providers/google/types.ts:546
Model to use with this cache (format: models/{model})
systemInstruction?
Section titled “systemInstruction?”
optionalsystemInstruction:object
Defined in: src/providers/google/types.ts:552
System instruction to cache (text-only, immutable after creation)
parts:
object[]
optionalrole:"user"
toolConfig?
Section titled “toolConfig?”
optionaltoolConfig:object
Defined in: src/providers/google/types.ts:559
Tool configuration to cache (immutable after creation)
functionCallingConfig?
Section titled “functionCallingConfig?”
optionalfunctionCallingConfig:object
functionCallingConfig.allowedFunctionNames?
Section titled “functionCallingConfig.allowedFunctionNames?”
optionalallowedFunctionNames:string[]
functionCallingConfig.mode?
Section titled “functionCallingConfig.mode?”
optionalmode:"AUTO"|"ANY"|"NONE"|"VALIDATED"
tools?
Section titled “tools?”
optionaltools:GoogleTool[]
Defined in: src/providers/google/types.ts:557
Tool declarations to cache (immutable after creation)
optionalttl:string
Defined in: src/providers/google/types.ts:568
Time-to-live duration (e.g., “300s”, “3600s”, mutually exclusive with expireTime)