Toolkdeps asset
kdeps-tools-google_cache_create
v1.0.0Create a Google AI server-side cached content entry from a text system prompt. Returns the cache name (e.g. 'cachedContents/xyz123') for use in chat: googleCachedContent. Only available when GOOGLE_API_KEY is set.
Install
A kdeps asset: kdeps installs it on first run and updates it without a new release.
kdeps update tools/google_cache_create
Pin a version with kdeps update tools/google_cache_create@<version>.
Contents
Create a Google AI server-side cached content entry from a text system prompt. Returns the cache name (e.g. 'cachedContents/xyz123') for use in chat: googleCachedContent. Only available when GOOGLE_API_KEY is set.
| Parameter | Type | Description |
|---|---|---|
| content * | string | Text to cache as a system prompt (must be >= 32K tokens for caching benefit) |
| model * | string | Gemini model name (e.g. 'gemini-2.0-flash') |
| ttl | string | Cache TTL as a Go duration string (e.g. '1h', '30m'). Default: '1h' |
version: 1.0.0
description: 'Create a Google AI server-side cached content entry from a text system prompt. Returns the cache name (e.g. ''cachedContents/xyz123'') for use in chat: googleCachedContent. Only available when GOOGLE_API_KEY is set.'
parameters:
content:
type: string
description: Text to cache as a system prompt (must be >= 32K tokens for caching benefit)
required: true
model:
type: string
description: Gemini model name (e.g. 'gemini-2.0-flash')
required: true
ttl:
type: string
description: 'Cache TTL as a Go duration string (e.g. ''1h'', ''30m''). Default: ''1h'''
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.0 | 10/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 10/11/2026
Tags
kdepstool