You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wire the persistent-memory library into the running app:
end_conversation.py (voice write-path):
- Hoist memory imports to module top (resolve_customer_key, MemoryService,
BUDDY_MEMORY_BACKEND as resolve_memory_backend, BUDDY_MEMORY_ENABLED)
- Enqueue extraction after DB write: best-effort try/except, never blocks
- Backend selection: template MemoryConfig.backend override wins, else
Redis/DevCycle dynamic default via resolve_memory_backend()
dynamic.py:
- Add BUDDY_MEMORY_BACKEND() async function — re-reads BUDDY_MEMORY_BACKEND
from Redis/DevCycle on every call, falls back to static env default.
Ops can switch pgvector <-> supermemory at runtime without a redeploy.
main.py:
- Import drain_memory_queue from memory.worker
- Register memory_extraction_drain BackgroundTaskScheduler task, gated on
BUDDY_MEMORY_ENABLED (static kill-switch, off by default)
0 commit comments