Optional durable memory backend for Lagent

Aperta
#376 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ai

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Python
Stelle
2.3k
Fork
249
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di InternLM/lagent

Tutte le issue di InternLM/lagent

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.