Add support for additional Memory Bank services: DatabaseMemoryService/RedisMemoryService
Hi. Currently only InMemoryMemoryService and VertexAiMemoryBankService are available.
Would be great to have a "DatabaseMemoryService" or "RedisMemoryService" for local / non cloud scaling.
Thanks!
Would be great to be able to use redis here.
Hello, are there any updates on this topic?
I'm surprised this issue hasn't gained more visibility. Given the ADK's premise of supporting any cloud and any model (not just GCP and Gemini), this flexibility should also extend to memory. We already have the DatabaseSessionService, so it seems logical to have a DatabaseMemoryService that supports a self-managed database. I believe this is a critical feature for the community.
For example, to summarize a session and add it to long-term memory without a hard dependency on Vertex. As it stands, I would have to implement this manually.
What is the community's current approach for using memory outside of Vertex? How would you suggest I proceed with this?
We are working on sqlite memory service.
Feel free to contribute other types of memory services.
We just added OpenMemory support in our community repo: https://github.com/google/adk-python-community/pull/20
Would also like to see a way to do this in ADK without needing to install community libraries, at the least some kind of base class we can extend for our own implementations
Hi @ryanovas , you can extend the base_memory_service with your own implementation.
This issue has been automatically marked as stale because it has not had recent activity for 7 days after a maintainer requested clarification. It will be closed if no further activity occurs within 7 days.
I would like to express my strong support for the addition of DatabaseMemoryService.
From a developer's perspective, having this functionality is essential for ensuring consistency across the framework. Since DatabaseSessionService is already available, it feels like a natural and necessary step to provide a database-backed option for memory banks as well.
Many production environments require long-term persistence and the ability to query agent memory without the overhead of managing additional infrastructure like Redis. Having this native support in the ADK would significantly improve the developer experience and the scalability of the applications we are building.
Thank you for considering this!