Skip to content

SQLite-based memory service implementation #2976

Closed

Description

@kronos3610

Title: Feature Request: Add Persistent Local Memory Session with SQLite
Is your feature request related to a problem? Please describe.
Currently, the ADK's memory session is ephemeral. All contextual memory is lost once an agent session concludes. Any agent requiring long-term memory or statefulness cannot be effectively built. The only other option being vertex ai based one, which is not feasible in my case.

Describe the solution you'd like 💡
I propose the implementation of a local, persistent memory provider using SQLite. This would allow an agent's memory to be saved to a local .db file and reloaded in subsequent sessions, enabling true persistence without requiring external database infrastructure.

How it would work:

A new SQLiteMemory class or service would be introduced.

Users could enable it via a simple configuration, specifying a path to the database file.

The service would automatically handle the serialization and deserialization of the agent's memory to and from the SQLite database.

This functionality would be distinct from the existing database_session_service, which appears to have a different purpose. The new component would focus solely on persisting the agent's conversational state and learned context.

Activity

  1. added
    services[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc
    on Sep 19, 2025
  2. added theissue type on Sep 19, 2025
  3. hangfei commented on Nov 10, 2025

    @hangfei
    Collaborator

    Thanks for raising this. We are working on it. Stay tuned!

  4. klateefa commented on Nov 26, 2025

    @klateefa

    @Raman369AI Thank you for reporting this. I understand the request is currently under review. Please keep me posted if anything else is needed. Thanks for your patience.

  5. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Nov 26, 2025
  6. qianzhangxa commented on Dec 11, 2025

    @qianzhangxa

    Thanks for raising this. We are working on it. Stay tuned!

    @hangfei Any progress can be shared? And could you please let me know if there is a plan to implement a DatabaseMemoryService so that we can use PostgreSQL / MySQL as the storage backend?

  7. added a commit that references this issue on Apr 15, 2026
    7955df9
  8. added a commit that references this issue on Sep 25, 2026
    9625b06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs review[Status] The PR/issue is awaiting review from the maintainerservices[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions