Optional durable memory backend for Lagent

未关闭
#376 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

InternLM/lagent 的其他 Issue

查看 InternLM/lagent 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。