Skip to content

Commit 0f19481

Browse files
committed
Fix remaining API issues in section-3-memory notebooks
- Fixed search_memories() -> search_long_term_memory() in 01_working_memory - Fixed enumerate(extracted_memories) -> enumerate(extracted_memories.memories) All section-3 notebooks should now use correct API.
1 parent 07ac032 commit 0f19481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
"print(\"=\" * 50)\n",
333333
"\n",
334334
"if extracted_memories.memories:\n",
335-
" for i, memory in enumerate(extracted_memories, 1):\n",
335+
" for i, memory in enumerate(extracted_memories.memories, 1):\n",
336336
" print(f\"{i}. {memory.text}\")\n",
337337
" print(f\" Type: {memory.memory_type} | Topics: {', '.join(memory.topics)}\")\n",
338338
" print()\n",

0 commit comments

Comments
 (0)