Skip to content

Commit 8c10741

Browse files
committed
Fix create_memory_tools call in working memory notebook
Pass session_id and user_id to create_memory_tools() to match updated signature that uses memory client's LangChain integration.
1 parent 22ceafa commit 8c10741

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python-recipes/context-engineering/notebooks/section-3-memory/01_working_memory_with_extraction_strategies.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,14 @@
276276
" )\n",
277277
" memory_client = MemoryClient(config=config)\n",
278278
"\n",
279+
"# Ensure session_id and student_id are defined\n",
280+
"if 'session_id' not in globals():\n",
281+
" session_id = \"session_001\"\n",
282+
"if 'student_id' not in globals():\n",
283+
" student_id = \"demo_student_working_memory\"\n",
284+
"\n",
279285
"# Create memory tools for this user\n",
280-
"memory_tools = create_memory_tools(memory_client)\n",
286+
"memory_tools = create_memory_tools(memory_client, session_id=session_id, user_id=student_id)\n",
281287
"\n",
282288
"print(\"🛠️ Available Memory Tools\")\n",
283289
"print(\"=\" * 50)\n",

0 commit comments

Comments
 (0)