How to implementiert semantic cache with Agentic RAG

I’ve used langgraph to build an Agentic RAG and I want to add semantic caching to improve speer and cost.

The out of the box solution described here

… don’t seem to work with tool responses.

Does LangGraph, langchain or Redis provide classes to implement this or do I have to write my own kV caching?

Thank you