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
refactor(sessions): rename to RedisSessionMemoryService (0.0.8) (#21)
* refactor(sessions): rename to RedisSessionMemoryService; bump to 0.0.8
Rename the session service to match the managed Redis Agent Memory
"session memory" terminology and ADK's <Backend>SessionService convention:
- RedisWorkingMemorySessionService -> RedisSessionMemoryService
- RedisWorkingMemorySessionServiceConfig -> RedisSessionMemoryServiceConfig
- module sessions/working_memory.py -> sessions/session_memory.py
The old names remain as deprecated aliases that emit a DeprecationWarning
and will be removed in 0.1.0. RedisLongTermMemoryService is unchanged.
Docs, examples, and tests move to the new names. Bump version to 0.0.8
and add CHANGELOG entries.
* fix(sessions): keep legacy working_memory module path importable
Address PR review feedback:
- Add a compatibility shim at adk_redis/sessions/working_memory.py that
re-exports the session classes and emits a DeprecationWarning on import,
so `from adk_redis.sessions.working_memory import ...` keeps working
until 0.1.0.
- Cover the legacy module path in tests/test_imports.py.
- Move the `warnings` import (and importlib/sys helpers) to module scope
in the test, per the no-inline-imports project standard.
- Note the module-path shim in the CHANGELOG Deprecated section.
Copy file name to clipboardExpand all lines: docs/concepts/sessions.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Sessions + Memory with Services
2
2
3
-
Use `RedisWorkingMemorySessionService` and `RedisLongTermMemoryService` when you want the ADK `Runner` to manage sessions and memory automatically. Plug them in and let the framework handle the rest.
3
+
Use `RedisSessionMemoryService` and `RedisLongTermMemoryService` when you want the ADK `Runner` to manage sessions and memory automatically. Plug them in and let the framework handle the rest.
4
4
5
5
## Quick Reference
6
6
@@ -54,12 +54,12 @@ from google.adk.runners import Runner
Copy file name to clipboardExpand all lines: docs/examples/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ directory and explains what it demonstrates.
11
11
12
12
| Example | What it shows |
13
13
|---------|---------------|
14
-
|[**Simple Redis memory**](https://github.com/redis-developer/adk-redis/tree/main/examples/simple_redis_memory)| Minimal agent with `RedisWorkingMemorySessionService` and `RedisLongTermMemoryService`. |
14
+
|[**Simple Redis memory**](https://github.com/redis-developer/adk-redis/tree/main/examples/simple_redis_memory)| Minimal agent with `RedisSessionMemoryService` and `RedisLongTermMemoryService`. |
15
15
|[**Fitness coach (MCP)**](https://github.com/redis-developer/adk-redis/tree/main/examples/fitness_coach_mcp)| MCP-based memory with `McpToolset` and Agent Memory Server. |
16
16
|[**Travel agent (hybrid)**](https://github.com/redis-developer/adk-redis/tree/main/examples/travel_agent_memory_hybrid)| Framework-managed sessions + memory with vector search over travel docs. |
17
17
|[**Travel agent (tools)**](https://github.com/redis-developer/adk-redis/tree/main/examples/travel_agent_memory_tools)| Same travel agent using LLM-controlled memory tools instead of framework services. |
0 commit comments