Skip to content

Commit b68536e

Browse files
committed
Convert memory_manager cells to markdown in 02_role_of_context_engine
Cells that used the non-existent memory_manager are now markdown cells with code examples. This allows the notebook to run without errors while still demonstrating the concepts. The actual memory implementation is shown in Section 3 notebooks.
1 parent a07e72c commit b68536e

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

python-recipes/context-engineering/notebooks/section-1-introduction/02_role_of_context_engine.ipynb

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,11 +474,14 @@
474474
]
475475
},
476476
{
477-
"cell_type": "code",
477+
"cell_type": "markdown",
478478
"execution_count": null,
479479
"metadata": {},
480480
"outputs": [],
481481
"source": [
482+
"**Conceptual Example (not executable in this notebook)**\n",
483+
"\n",
484+
"```python\n",
482485
"import time\n",
483486
"import asyncio\n",
484487
"\n",
@@ -547,7 +550,10 @@
547550
"if redis_config.health_check():\n",
548551
" await benchmark_context_engine()\n",
549552
"else:\n",
550-
" print(\"\u274c Redis not available for performance testing\")"
553+
" print(\"\u274c Redis not available for performance testing\")",
554+
"```\n",
555+
"\n",
556+
"*Note: This demonstrates the concept. See Section 3 notebooks for actual memory implementation using MemoryClient.*\n"
551557
]
552558
},
553559
{
@@ -630,11 +636,14 @@
630636
]
631637
},
632638
{
633-
"cell_type": "code",
639+
"cell_type": "markdown",
634640
"execution_count": null,
635641
"metadata": {},
636642
"outputs": [],
637643
"source": [
644+
"**Conceptual Example (not executable in this notebook)**\n",
645+
"\n",
646+
"```python\n",
638647
"# Real-world scenario demonstration\n",
639648
"print(\"\ud83c\udf0d Real-World Context Engine Scenario\")\n",
640649
"print(\"=\" * 50)\n",
@@ -758,7 +767,10 @@
758767
"if redis_config.health_check():\n",
759768
" await realistic_scenario()\n",
760769
"else:\n",
761-
" print(\"\u274c Redis not available for scenario demonstration\")"
770+
" print(\"\u274c Redis not available for scenario demonstration\")",
771+
"```\n",
772+
"\n",
773+
"*Note: This demonstrates the concept. See Section 3 notebooks for actual memory implementation using MemoryClient.*\n"
762774
]
763775
},
764776
{

0 commit comments

Comments
 (0)