[bot] Instrument Mem0 (470,878 weekly downloads)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 68/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- python
研究方向
Start by reading the existing files under py/src/braintrust/integrations/ and py/src/braintrust/wrappers/, then inspect py/noxfile.py and the [tool.braintrust.matrix] section of py/pyproject.toml. Trace the Mem0 Memory and AsyncMemory entry points named in the issue and identify how integrations are registered and tested. Done means add coverage for add, search, and get_all, including their internal LLM and embedding work, with the integration, cassette directory, nox session, and matrix entry described in the issue.
由索引模型根據 Issue 內容生成。
描述
Summary
mem0ai (import name mem0, by Mem0) is a widely used persistent-memory layer for LLM agents. Its core Memory class exposes .add(messages, user_id=...) and .search(query, filters={"user_id": ...}) as the primary execution surface. Critically, Memory().add() calls an LLM internally by default (OpenAI gpt-5-mini for fact extraction/updates, plus text-embedding-3-small for embeddings) to extract and consolidate facts from conversation messages before storing them — this is a genuine LLM-driven execution step, not just a database write, and it happens invisibly to Braintrust today.
This repository has zero instrumentation for Mem0 anywhere: no py/src/braintrust/integrations/mem0* directory, no wrapper, no nox session, no cassette directory, and no entry in py/pyproject.toml's [tool.braintrust.matrix].
What's missing
Memory.add()/AsyncMemory.add()— stores new memories from a message list; internally triggers an LLM call for fact extraction/update plus an embedding call, both currently untraced.Memory.search()/AsyncMemory.search()— retrieves relevant memories via vector search, filtered byuser_id/other filters; the core "memory retrieval" step in an agent's context-assembly loop.Memory.get_all()— full CRUD listing of stored memories for a given filter scope.
Weekly downloads
Weekly downloads: 470,878 (as of 2026-09-28; https://pypistats.org/api/packages/mem0ai/recent)
Braintrust docs status
not_found. Checked https://www.braintrust.dev/docs/guides/tracing and https://www.braintrust.dev/docs/guides/tracing/integrations (both checked 2026-09-28) — neither the tracing-integrations list nor the agent-framework list ("Agno, OpenAI Agents SDK, Claude Agent SDK, Pi Coding Agent SDK, Deep Agents, LangGraph, CrewAI, AutoGen, AgentScope, Google ADK, LiveKit Agents, Mastra, Pipecat, Pydantic AI, Strands Agents SDK, Cloudflare Agents, Cloudflare AI Chat") mentions Mem0.
Upstream sources
- PyPI: https://pypi.org/project/mem0ai/
- GitHub: https://github.com/mem0ai/mem0
- Docs (Python quickstart): https://docs.mem0.ai/open-source/python-quickstart
Braintrust docs sources checked
- https://www.braintrust.dev/docs/guides/tracing (checked 2026-09-28)
- https://www.braintrust.dev/docs/guides/tracing/integrations (checked 2026-09-28)
Local repo files inspected
py/src/braintrust/integrations/— nomem0/directorypy/src/braintrust/wrappers/— no Mem0 wrapperpy/pyproject.toml[tool.braintrust.matrix]— nomem0aientrypy/noxfile.py— notest_mem0session- Repo-wide case-insensitive grep for
import mem0/from mem0/mem0aiunderpy/src/braintrust/**/*.py— zero matches
- 主要語言
- Python
- 星號
- 22
- 分支
- 27
- 平均合併
- 14 小時 49 分鐘
- 30 天內合併 PR
- 126
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
braintrustdata/braintrust-sdk-python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 77/100
braintrustdata/braintrust-sdk-python#962 ·
維護者通常 1 天內回覆
-
Temporal: add `workflow.Info.original_execution_run_id` to workflow span metadata可能已有人在做 @Ehsan-hash 於 1 天前認領。 未關閉feature python
難度 2/5 1-3 小時 新手友好度 76/100
braintrustdata/braintrust-sdk-python#868 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 20/100
braintrustdata/braintrust-sdk-python#957 ·
維護者通常 1 天內回覆
-
python
難度 5/5 一週以上 新手友好度 35/100
braintrustdata/braintrust-sdk-python#956 ·
維護者通常 1 天內回覆
-
python
braintrustdata/braintrust-sdk-python#839 ·
維護者通常 1 天內回覆
查看 braintrustdata/braintrust-sdk-python 的全部 Issue
相似的 Issue
-
Examples say cnx未關閉documentation embedded
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
Alishahryar1/free-claude-code#2111 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
namespace operations
難度 2/5 1-3 小時 新手友好度 72/100
EclipseFdn/open-vsx.org#14373 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆