From f322cf82b9a6fa76bacc424fbf0b964f88c468d6 Mon Sep 17 00:00:00 2001 From: Kartik Date: Sat, 13 Jun 2026 18:25:50 +0530 Subject: [PATCH] chore: consolidate cookbooks/ into an indexed examples/ directory (#5517) --- AGENTS.md | 3 +-- LLM.md | 3 ++- .../notebooks}/customer-support-chatbot.ipynb | 0 {cookbooks => examples/notebooks}/helper/__init__.py | 0 {cookbooks => examples/notebooks}/helper/mem0_teachability.py | 0 {cookbooks => examples/notebooks}/mem0-autogen.ipynb | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) rename {cookbooks => examples/notebooks}/customer-support-chatbot.ipynb (100%) rename {cookbooks => examples/notebooks}/helper/__init__.py (100%) rename {cookbooks => examples/notebooks}/helper/mem0_teachability.py (100%) rename {cookbooks => examples/notebooks}/mem0-autogen.ipynb (99%) diff --git a/AGENTS.md b/AGENTS.md index 73aee9d54..b585d3245 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -33,8 +33,7 @@ This is a **polyglot monorepo** containing Python and TypeScript packages, CLIs, | `docs/` | Documentation site (Mintlify) | | `tests/` | Python SDK tests (pytest) | | `evaluation/` | Benchmarking framework — LOCOMO evals, experiment runner, score generation | -| `examples/` | Sample projects — demo apps, Chrome extension, multi-agent patterns | -| `cookbooks/` | Jupyter notebooks — customer support chatbot, AutoGen integration | +| `examples/` | Sample projects & runnable demos — apps, Chrome extension, multi-agent patterns, and Jupyter notebooks (`notebooks/`) | | `pr-reviews/` | Pull request review materials | | `scripts/` | Repo-wide utility scripts (e.g., `check-llms-txt-coverage.py` for docs/llms.txt sync) | diff --git a/LLM.md b/LLM.md index f0304257f..d8b07b34e 100644 --- a/LLM.md +++ b/LLM.md @@ -1026,7 +1026,8 @@ def get_user_preferences(user_id: str): ### AutoGen Integration ```python -from cookbooks.helper.mem0_teachability import Mem0Teachability +# Mem0Teachability lives in examples/notebooks/helper/ — see examples/notebooks/mem0-autogen.ipynb +from helper.mem0_teachability import Mem0Teachability from mem0 import Memory # Add memory capability to AutoGen agents diff --git a/cookbooks/customer-support-chatbot.ipynb b/examples/notebooks/customer-support-chatbot.ipynb similarity index 100% rename from cookbooks/customer-support-chatbot.ipynb rename to examples/notebooks/customer-support-chatbot.ipynb diff --git a/cookbooks/helper/__init__.py b/examples/notebooks/helper/__init__.py similarity index 100% rename from cookbooks/helper/__init__.py rename to examples/notebooks/helper/__init__.py diff --git a/cookbooks/helper/mem0_teachability.py b/examples/notebooks/helper/mem0_teachability.py similarity index 100% rename from cookbooks/helper/mem0_teachability.py rename to examples/notebooks/helper/mem0_teachability.py diff --git a/cookbooks/mem0-autogen.ipynb b/examples/notebooks/mem0-autogen.ipynb similarity index 99% rename from cookbooks/mem0-autogen.ipynb rename to examples/notebooks/mem0-autogen.ipynb index 6e9adb0fe..50498c979 100644 --- a/cookbooks/mem0-autogen.ipynb +++ b/examples/notebooks/mem0-autogen.ipynb @@ -555,7 +555,7 @@ "# - Enables creation of AI agents with long-term memory and learning abilities.\n", "# - Improves consistency and reduces repetition in user-agent interactions.\n", "\n", - "from cookbooks.helper.mem0_teachability import Mem0Teachability\n", + "from helper.mem0_teachability import Mem0Teachability\n", "\n", "teachability = Mem0Teachability(\n", " verbosity=2, # for visibility of what's happening\n",