Skip to content

Commit 61a6c3a

Browse files
committed
Fix missing MemoryClientConfig import in 01_working_memory notebook
Cell 4 and Cell 6 were using MemoryClientConfig without importing it, causing NameError. Added the import to both cells.
1 parent 6f67685 commit 61a6c3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
"metadata": {},
156156
"outputs": [],
157157
"source": [
158+
"from agent_memory_client import MemoryClientConfig\n",
158159
"# Initialize memory client for working memory\n",
159160
"student_id = \"demo_student_working_memory\"\n",
160161
"session_id = \"session_001\"\n",
@@ -266,6 +267,7 @@
266267
"# Ensure memory_client is defined (in case cells are run out of order)\n",
267268
"if 'memory_client' not in globals():\n",
268269
" # Initialize memory client with proper config\n",
270+
" from agent_memory_client import MemoryClientConfig\n",
269271
" import os\n",
270272
" config = MemoryClientConfig(\n",
271273
" base_url=os.getenv(\"AGENT_MEMORY_URL\", \"http://localhost:8000\"),\n",

0 commit comments

Comments
 (0)