Agent Cache v0.7.0
Fixed
- Vercel AI SDK adapter: tool definitions now included in cache key. Requests with identical messages but different tools no longer share cached responses.
seed,stopSequences,responseFormat, andtoolChoiceare also part of the key now. - LlamaIndex adapter: tool definitions now included in cache key when
toolsis passed toprepareParams(). Only serializable metadata is used; thecallclosure is never serialized.
Changed
- Cache keys changed for tool-using requests on Vercel and LlamaIndex adapters. Existing cached entries for those requests will be a one-time miss after upgrade — intended, as the prior entries were not safe to reuse across differing tool sets.
- LlamaIndex
prepareParams()now accepts atoolsoption. Omitting it falls back to messages-only keying (prior behavior).
Known limitations
- LangChain adapter: tool-schema drift is not reflected in the cache key — the framework's
BaseCacheinterface only exposes(prompt, llm_string). Documented limitation, unchanged.
Full Changelog: agent-cache-v0.6.1...agent-cache-v0.7.0
Full Changelog: v0.23.0...agent-cache-v0.7.0