Skip to content

Commit 19e671f

Browse files
committed
Fix put_working_memory() call signature
The agent-memory-client API requires session_id as first parameter, then memory object. Updated the call to match the correct signature.
1 parent cff357a commit 19e671f

File tree

1 file changed

+6
-1
lines changed
  • python-recipes/context-engineering/reference-agent/redis_context_course

1 file changed

+6
-1
lines changed

python-recipes/context-engineering/reference-agent/redis_context_course/memory_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,12 @@ async def save_working_memory(
138138
model_name=model_name
139139
)
140140

141-
return await self.client.put_working_memory(working_memory)
141+
return await self.client.put_working_memory(
142+
session_id=session_id,
143+
memory=working_memory,
144+
user_id=self.user_id,
145+
model_name=model_name
146+
)
142147

143148
async def add_message_to_working_memory(
144149
self,

0 commit comments

Comments
 (0)