Skip to content

Interface: GoogleCacheCreateRequest

@providerprotocol/ai


@providerprotocol/ai / google / GoogleCacheCreateRequest

Defined in: src/providers/google/types.ts:544

Request body for creating a cached content entry.

Google Caching API docs

optional contents: GoogleContent[]

Defined in: src/providers/google/types.ts:550

Content to cache (immutable after creation)


optional displayName: string

Defined in: src/providers/google/types.ts:548

Optional display name for the cache (max 128 chars)


optional expireTime: 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})


optional systemInstruction: object

Defined in: src/providers/google/types.ts:552

System instruction to cache (text-only, immutable after creation)

parts: object[]

optional role: "user"


optional toolConfig: object

Defined in: src/providers/google/types.ts:559

Tool configuration to cache (immutable after creation)

optional functionCallingConfig: object

functionCallingConfig.allowedFunctionNames?
Section titled “functionCallingConfig.allowedFunctionNames?”

optional allowedFunctionNames: string[]

optional mode: "AUTO" | "ANY" | "NONE" | "VALIDATED"


optional tools: GoogleTool[]

Defined in: src/providers/google/types.ts:557

Tool declarations to cache (immutable after creation)


optional ttl: string

Defined in: src/providers/google/types.ts:568

Time-to-live duration (e.g., “300s”, “3600s”, mutually exclusive with expireTime)