Skip to content

Commit 6804da9

Browse files
committed
Fix method name: set_working_memory -> put_working_memory
The agent-memory-client API uses put_working_memory, not set_working_memory. Updated memory_client.py to use the correct method name.
1 parent 65ae681 commit 6804da9

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ async def save_working_memory(
137137
data=data or {},
138138
model_name=model_name
139139
)
140-
141-
return await self.client.set_working_memory(working_memory)
140+
141+
return await self.client.put_working_memory(working_memory)
142142

143143
async def add_message_to_working_memory(
144144
self,

0 commit comments

Comments
 (0)