cache_store
Cache a prompt and its result to save tokens on future identical requests. Includes tokens saved estimate and optional expiry.
Instructions
Store a prompt+result in the cache. Provide prompt (auto-hashed), result text, tokens_saved estimate, optional TTL override and metadata dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| result | Yes | ||
| metadata | No | ||
| client_id | No | default | |
| ttl_seconds | No | ||
| tokens_saved | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||