Alphakdeps.io is experimental and evolving — the registry and packages may change or reset.
Toolkdeps asset

kdeps-tools-google_cache_create

v2.0.0

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.

set tools / shelf tools

LLM context: ~158 tokens when loaded (prompt or tool definition)

Where it runs

Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.

  1. the agent loop builds the request
  2. the tool definitions are sent to the modeltools/google_cache_create
  3. the model calls a tool
  4. kdeps runs it
  5. the result goes back to the model

Loaded by: kdeps (agent loop), /update, /settings, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update

In the code: kdeps (agent loop)agent.RegisterBuiltinToolsagent.definedAs

Install

A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.

kdeps install tools/google_cache_create

Pin a version with kdeps install 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.

ParameterTypeDescription
content *stringText to cache as a system prompt (must be >= 32K tokens for caching benefit)
model *stringGemini model name (e.g. 'gemini-2.5-flash')
ttlstringCache lifetime in seconds with an s suffix (e.g. '3600s' for an hour). Default: '3600s'default: 3600s

HTTP call (declared in YAML, no Go code)

POSThttps://generativelanguage.googleapis.com/v1beta/cachedContents

Offered when set: GOOGLE_API_KEY

Content-Type:
application/json
x-goog-api-key:
{{.env.API_KEY}}

Body

{"model": {{json (print "models/" (trimPrefix .args.model "models/"))}}, "systemInstruction": {"parts": [{"text": {{json .args.content}}}]}, "ttl": {{json .args.ttl}}}

Result

{{.response.name}}

Versions

VersionPublishedStatus
2.0.010/24/2026active
1.0.010/11/2026active

Details

Author
kdeps
License
Apache-2.0
Latest Version
2.0.0
Published
10/11/2026

Tags

kdepstool