Optional durable memory backend for Lagent

オープン
#376 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python
領域
ai

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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!

主要言語
Python
スター
2.3k
フォーク
249
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InternLM/lagent のほかの issue

InternLM/lagent の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。