chore: consolidate cookbooks/ into an indexed examples/ directory (#5517)
This commit is contained in:
@@ -33,8 +33,7 @@ This is a **polyglot monorepo** containing Python and TypeScript packages, CLIs,
|
|||||||
| `docs/` | Documentation site (Mintlify) |
|
| `docs/` | Documentation site (Mintlify) |
|
||||||
| `tests/` | Python SDK tests (pytest) |
|
| `tests/` | Python SDK tests (pytest) |
|
||||||
| `evaluation/` | Benchmarking framework — LOCOMO evals, experiment runner, score generation |
|
| `evaluation/` | Benchmarking framework — LOCOMO evals, experiment runner, score generation |
|
||||||
| `examples/` | Sample projects — demo apps, Chrome extension, multi-agent patterns |
|
| `examples/` | Sample projects & runnable demos — apps, Chrome extension, multi-agent patterns, and Jupyter notebooks (`notebooks/`) |
|
||||||
| `cookbooks/` | Jupyter notebooks — customer support chatbot, AutoGen integration |
|
|
||||||
| `pr-reviews/` | Pull request review materials |
|
| `pr-reviews/` | Pull request review materials |
|
||||||
| `scripts/` | Repo-wide utility scripts (e.g., `check-llms-txt-coverage.py` for docs/llms.txt sync) |
|
| `scripts/` | Repo-wide utility scripts (e.g., `check-llms-txt-coverage.py` for docs/llms.txt sync) |
|
||||||
|
|
||||||
|
|||||||
@@ -1026,7 +1026,8 @@ def get_user_preferences(user_id: str):
|
|||||||
### AutoGen Integration
|
### AutoGen Integration
|
||||||
|
|
||||||
```python
|
```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
|
from mem0 import Memory
|
||||||
|
|
||||||
# Add memory capability to AutoGen agents
|
# Add memory capability to AutoGen agents
|
||||||
|
|||||||
@@ -555,7 +555,7 @@
|
|||||||
"# - Enables creation of AI agents with long-term memory and learning abilities.\n",
|
"# - Enables creation of AI agents with long-term memory and learning abilities.\n",
|
||||||
"# - Improves consistency and reduces repetition in user-agent interactions.\n",
|
"# - Improves consistency and reduces repetition in user-agent interactions.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"from cookbooks.helper.mem0_teachability import Mem0Teachability\n",
|
"from helper.mem0_teachability import Mem0Teachability\n",
|
||||||
"\n",
|
"\n",
|
||||||
"teachability = Mem0Teachability(\n",
|
"teachability = Mem0Teachability(\n",
|
||||||
" verbosity=2, # for visibility of what's happening\n",
|
" verbosity=2, # for visibility of what's happening\n",
|
||||||
Reference in New Issue
Block a user