Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

[bot] Instrument Mem0 (470,878 weekly downloads)

Ouverte
#808 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
68/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
python
Domaine
observability

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

new-integration

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 by user_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

Braintrust docs sources checked

Local repo files inspected

  • py/src/braintrust/integrations/ — no mem0/ directory
  • py/src/braintrust/wrappers/ — no Mem0 wrapper
  • py/pyproject.toml [tool.braintrust.matrix] — no mem0ai entry
  • py/noxfile.py — no test_mem0 session
  • Repo-wide case-insensitive grep for import mem0/from mem0/mem0ai under py/src/braintrust/**/*.py — zero matches
Langage dominant
Python
Étoiles
22
Forks
24
Merge moyen
15 h 1 min
PR mergées (30 j)
109

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de braintrustdata/braintrust-sdk-python

Toutes les issues de braintrustdata/braintrust-sdk-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.