-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Session state not restored when using SQLite persistence in BIDI demo #3573
Copy link
Copy link
Open
Labels
needs review[Status] The PR/issue is awaiting review from the maintainer[Status] The PR/issue is awaiting review from the maintainerrequest clarification[Status] The maintainer need clarification or more information from the author[Status] The maintainer need clarification or more information from the authorservices[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc
Metadata
Metadata
Assignees
Labels
needs review[Status] The PR/issue is awaiting review from the maintainer[Status] The PR/issue is awaiting review from the maintainerrequest clarification[Status] The maintainer need clarification or more information from the author[Status] The maintainer need clarification or more information from the authorservices[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc
Hi folks,
I'm new to ADK and am trying to replicate the BIDI demos using SQLite for persistence.
Specifically, I'm working with the sample at:
https://github.com/google/adk-samples/tree/main/python/agents/bidi-demo
To test persistence, I configured SQLite and temporarily hard-coded the
user_idandsession_idinside the WebSocket endpoint:My expectation is that if I reconnect to the WebSocket (with the same hardcoded user and session IDs), the session should be restored and previous conversation context should be loaded automatically.
However, this does not seem to be happening—each reconnection starts a completely fresh conversation, even though I see rows written to the
eventstable in the SQLite DB.So I'm unsure whether the session is being saved correctly, or whether it is being loaded but not applied.
Could you clarify:
DatabaseSessionServicewhen using SQLite?Any guidance would be greatly appreciated!