Skip to content

Commit 8da9cc7

Browse files
committed
Add missing user_id to all get_or_create_working_memory calls in 03_memory_integration
All three get_or_create_working_memory calls were missing user_id parameter.
1 parent 55e19d2 commit 8da9cc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python-recipes/context-engineering/notebooks/section-3-memory/03_memory_integration.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
"print(\"\\n1. Loading working memory...\")\n",
164164
"_, working_memory = await memory_client.get_or_create_working_memory(\n",
165165
" session_id=session_id_1,\n",
166+
" user_id=\"demo_user\",\n",
166167
" model_name=\"gpt-4o\"\n",
167168
")\n",
168169
"print(f\" Messages in working memory: {len(working_memory.messages) if working_memory else 0}\")\n",
@@ -235,6 +236,7 @@
235236
"print(\"\\n1. Loading working memory...\")\n",
236237
"_, working_memory = await memory_client.get_or_create_working_memory(\n",
237238
" session_id=session_id_1,\n",
239+
" user_id=\"demo_user\",\n",
238240
" model_name=\"gpt-4o\"\n",
239241
")\n",
240242
"print(f\" Messages in working memory: {len(working_memory.messages)}\")\n",
@@ -363,6 +365,7 @@
363365
"print(\"\\n1. Loading working memory...\")\n",
364366
"_, working_memory = await memory_client.get_or_create_working_memory(\n",
365367
" session_id=session_id_2,\n",
368+
" user_id=\"demo_user\",\n",
366369
" model_name=\"gpt-4o\"\n",
367370
")\n",
368371
"print(f\" Messages in working memory: {len(working_memory.messages) if working_memory else 0}\")\n",

0 commit comments

Comments
 (0)