Optional durable memory backend for Lagent

Abierto
#376 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python
Área
ai

Línea de trabajo

Review Lagent’s existing per-agent and in-session memory behavior and identify the extension points for a durable provider. Compare the proposed native backend with an MCP/toolkit-based example, then confirm the preferred architecture with maintainers. Done should preserve current memory by default and define scoped, opt-in persistence with graceful service failure behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi @braisedpork1964 and @Harold-lkk
I’m Vivek Gupta, Founder & CEO at Memcode (https://memcode.in). I noticed Lagent already has per-agent, in-session memory. Would you be open to an optional durable memory integration so users can carry selected, user-approved context across runs without replacing Lagent’s current session state?

A possible shape, subject to your preferred architecture:

  • Keep Lagent’s existing agent/thread memory authoritative and unchanged by default.
  • Offer an opt-in Memcode adapter/provider or toolkit example that retrieves only relevant context before a run and stores only explicitly opted-in, finalized conversation turns afterward.
  • Use an OAuth/PKCE-based connection where supported rather than putting a long-lived API key in examples; we can coordinate the exact client and integration registration with you.
  • Preserve user control: scoped read/write access, disconnect support, graceful behavior when the service is unavailable, and no automatic upload of system prompts, secrets, tool traces, or full transcripts.

Would a native memory backend or an MCP/toolkit-based example fit Lagent better? If the direction is useful, we’d be happy to prepare a focused implementation and docs PR around the extension point you recommend. Thanks!

Lenguaje dominante
Python
Estrellas
2.3k
Forks
249
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de InternLM/lagent

Todos los issues de InternLM/lagent

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.