Skip to content
Open
Changes from 1 commit
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
0d58062
Add context engineering course with Redis University Class Agent
abrookins Sep 25, 2025
2064e61
Temporarily ignore context engineering notebooks in CI
abrookins Sep 25, 2025
6be84e5
Fix notebooks to work in CI environments
abrookins Sep 26, 2025
73c9161
Fix final import issue in 03_project_overview notebook
abrookins Sep 26, 2025
065e91a
Fix real issues: Install package in CI and use real classes
abrookins Sep 26, 2025
2f014d5
Fix RedisVL API compatibility issue in memory retrieval
abrookins Sep 26, 2025
3011f52
Fix RedisVL API format change - handle both dict and object results
abrookins Sep 26, 2025
7b5059f
Clean up notebook 01: Remove installation guards and update memory te…
abrookins Sep 29, 2025
8f53551
Implement working memory with long-term extraction strategy awareness
abrookins Sep 29, 2025
4c80a28
Complete Context Engineering course with all 15 notebooks and referen…
abrookins Sep 30, 2025
8cb9c10
Temporarily ignore context engineering notebooks in CI
abrookins Sep 30, 2025
8722b48
Revert: Remove context engineering notebooks from ignore list
abrookins Sep 30, 2025
e7ce2ba
Fix notebook imports: MemoryManager -> MemoryClient
abrookins Sep 30, 2025
db78b54
Add agent-memory-client to dependencies
abrookins Sep 30, 2025
8abb21d
Fix working memory notebook to use actual MemoryClient API
abrookins Sep 30, 2025
3f7ed02
Fix notebook cell dependencies for independent execution
abrookins Sep 30, 2025
65ae681
Fix MemoryAPIClient initialization to use MemoryClientConfig
abrookins Sep 30, 2025
6804da9
Fix method name: set_working_memory -> put_working_memory
abrookins Sep 30, 2025
a07e72c
Comment out memory_manager calls in notebooks
abrookins Sep 30, 2025
b68536e
Convert memory_manager cells to markdown in 02_role_of_context_engine
abrookins Sep 30, 2025
64ee02c
Fix memory_type -> memory_types parameter in notebooks
abrookins Sep 30, 2025
cff357a
Fix count_tokens function dependencies in context window notebook
abrookins Sep 30, 2025
19e671f
Fix put_working_memory() call signature
abrookins Sep 30, 2025
0e71885
Fix MemoryRecord creation to include required id field
abrookins Sep 30, 2025
7efbe57
Add Docker Compose setup for Agent Memory Server
abrookins Sep 30, 2025
20ec0d1
Fix Agent Memory Server Docker image path
abrookins Sep 30, 2025
e3111a8
Fix MemoryRecord creation in save_working_memory
abrookins Oct 1, 2025
8ff0982
Add get_or_create_working_memory and update notebooks
abrookins Oct 1, 2025
80a71f6
Improve OpenAI API key handling and CI debugging
abrookins Oct 1, 2025
0fbbc06
Make Agent Memory Server startup more lenient in CI
abrookins Oct 1, 2025
5cd45eb
Fix LOG_LEVEL environment variable for Agent Memory Server
abrookins Oct 1, 2025
b1a051c
Fix get_or_create_working_memory to unpack tuple return value
abrookins Oct 1, 2025
71f93c0
Fix create_memory to handle tuple return from create_long_term_memories
abrookins Oct 1, 2025
ad8de72
Remove memory_client wrapper and use MemoryAPIClient directly
abrookins Oct 1, 2025
0482676
Fix agent.py to use actual MemoryAPIClient API
abrookins Oct 1, 2025
93a3559
Fix tools.py to use actual MemoryAPIClient API
abrookins Oct 1, 2025
4e1c4c2
Update notebooks to use MemoryAPIClient directly (partial)
abrookins Oct 1, 2025
39290e6
Add comprehensive memory client migration documentation
abrookins Oct 1, 2025
ff2c4ac
Fix all save_working_memory calls to use put_working_memory
abrookins Oct 1, 2025
bd66460
Fix remaining import issues in notebooks
abrookins Oct 1, 2025
07ac032
Fix section-3-memory/02_long_term_memory.ipynb API calls
abrookins Oct 1, 2025
0f19481
Fix remaining API issues in section-3-memory notebooks
abrookins Oct 1, 2025
30ea09e
Fix ClientMemoryRecord import - use agent_memory_client.models
abrookins Oct 1, 2025
01b693a
Fix remaining query= to text= in 02_long_term_memory.ipynb
abrookins Oct 1, 2025
7780258
Fix memory_type parameter to use MemoryType filter object
abrookins Oct 1, 2025
d6b36b0
Fix ClientMemoryRecord memory_type - use string not MemoryType filter
abrookins Oct 1, 2025
6f67685
Fix ALL remaining query= to text= in notebooks
abrookins Oct 1, 2025
61a6c3a
Fix missing MemoryClientConfig import in 01_working_memory notebook
abrookins Oct 1, 2025
da51403
Add missing user_id parameter to get_or_create_working_memory calls
abrookins Oct 1, 2025
2675d88
Fix missing comma in get_or_create_working_memory call
abrookins Oct 1, 2025
85cbe9e
Fix user_id consistency in 01_working_memory notebook
abrookins Oct 1, 2025
015c4e3
Fix syntax errors and API usage in section-3 notebooks
abrookins Oct 1, 2025
e5f5b79
Fix tool invocation in 04_memory_tools notebook
abrookins Oct 1, 2025
55e19d2
Fix list comprehension in 03_memory_integration notebook
abrookins Oct 1, 2025
8da9cc7
Add missing user_id to all get_or_create_working_memory calls in 03_m…
abrookins Oct 1, 2025
288f858
Fix all API usage issues in 03_memory_integration notebook
abrookins Oct 1, 2025
5c77fd9
Fix get_or_create_working_memory issue in 03_memory_integration
abrookins Oct 1, 2025
bc37b82
Upgrade agent-memory-client to 0.12.3
abrookins Oct 1, 2025
1677e59
Fix redisvl API compatibility in course_manager
abrookins Oct 1, 2025
1ee634b
Add get_all_courses method to CourseManager
abrookins Oct 1, 2025
45353bf
Add missing MemoryClientConfig import to section-4 notebooks
abrookins Oct 1, 2025
46bf6bc
Fix remaining issues in section-4 notebooks
abrookins Oct 1, 2025
1168b32
Fix final issues in section-4 notebooks
abrookins Oct 1, 2025
a92fe1e
Fix Redis get() calls in 05_crafting_data_for_llms
abrookins Oct 1, 2025
2092f1c
Fix KeyError in 05_crafting_data_for_llms
abrookins Oct 1, 2025
0a81a94
Fix len(memories) in 05_crafting_data_for_llms
abrookins Oct 1, 2025
9aae1c1
Fix memories slicing in 05_crafting_data_for_llms
abrookins Oct 1, 2025
f91263b
Update Redis version to 8.2 in GitHub Actions workflows
abrookins Oct 1, 2025
e113888
Remove OpenAI API key check and logging from workflow
abrookins Oct 1, 2025
3cc032a
Use redis:8.2 image in test.yml workflow
abrookins Oct 1, 2025
b3bec17
Add search_courses_tool to demonstrate catalog view + RAG pattern
abrookins Oct 1, 2025
a0680f1
Change to get_course_details tool that retrieves by course code
abrookins Oct 1, 2025
ffc8389
Add detailed explanation of data integration challenges
abrookins Oct 1, 2025
fe4149f
Fix JSON syntax error in 05_crafting_data_for_llms.ipynb
abrookins Oct 1, 2025
a0cf9a0
Clarify LLM control statement in automatic extraction section
abrookins Oct 1, 2025
53fb3ef
Clarify that it's the application's LLM that has control in tool-base…
abrookins Oct 1, 2025
0de2ddb
Add performance tradeoffs to memory extraction comparison
abrookins Oct 1, 2025
7637eff
Update 04_memory_tools to use built-in memory client tool schemas
abrookins Oct 1, 2025
c4c7501
Keep LangChain/LangGraph pattern while using memory client tools
abrookins Oct 1, 2025
036ff05
Use memory client's built-in LangChain/LangGraph integration
abrookins Oct 2, 2025
af26356
Update reference agent to use memory client's LangChain integration
abrookins Oct 2, 2025
6bc85d4
Add schema printing to memory tools notebook for debugging
abrookins Oct 2, 2025
5396372
Add schema printing to memory tools notebook
abrookins Oct 2, 2025
22ceafa
Catch and return tool validation errors to LLM
abrookins Oct 2, 2025
8c10741
Fix create_memory_tools call in working memory notebook
abrookins Oct 2, 2025
bab8f38
Simplify setup and clean up notebooks
abrookins Oct 3, 2025
07c1e91
Bump agent-memory-client to 0.12.6
abrookins Oct 3, 2025
a9b8a7a
Reorganize notebook setup and update agent-memory-server to 0.12.3
abrookins Oct 5, 2025
96a1e2a
Fix notebook failures: remove non-existent memory_index_name and meta…
abrookins Oct 5, 2025
bf0c001
Notebook cleanups: replace print-based informational cells with Markd…
abrookins Oct 21, 2025
1cec8b3
Fix malformed JSON in 02_project_overview.ipynb to unblock nbval coll…
abrookins Oct 21, 2025
a0d7f33
context-engineering: use Redis 8, fix 8088 refs, add tests
abrookins Oct 21, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix get_or_create_working_memory to unpack tuple return value
The agent-memory-client returns a tuple (WorkingMemory, bool) where the bool indicates if the memory was newly created. Our wrapper was returning the tuple directly, causing AttributeError when notebooks tried to access working_memory.messages. Now we unpack the tuple and return just the WorkingMemory object.
  • Loading branch information
abrookins committed Oct 1, 2025
commit b1a051cb842af5c08d99d8a77b3b51e1d2aacfef
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ async def get_or_create_working_memory(
Returns:
WorkingMemory object (existing or newly created)
"""
return await self.client.get_or_create_working_memory(
# The client returns a tuple (WorkingMemory, bool) where bool indicates if it was created
working_memory, _ = await self.client.get_or_create_working_memory(
session_id=session_id,
user_id=self.user_id,
namespace=self.namespace,
model_name=model_name
)
return working_memory

async def save_working_memory(
self,
Expand Down
Loading