addmanagedlong-termmemorytolanggraphagentswithlangmem
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "addmanagedlong-termmemorytolanggraphagentswithlangmem" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-36d145f08fd925ffb1be3656374325d47d801eb7b4b36a9327acf17a19f9fc38. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/add-managed-long-term-memory-to-langgraph-agents-with-langmem before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Provide memory management and retrieval tools for LangGraph agents so agents can store, retrieve, and update persistent facts (long-term memory) across sessions.
Introduction source: third_party · user_3c6cb52e · 1.1.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "Add managed long-term memory to LangGraph agents with LangMem"
slug: "add-managed-long-term-memory-to-langgraph-agents-with-langmem"
version: "1.1.0"
displayName: "使用 LangMem 为 LangGraph 代理添加托管长期记忆"
summary: "为LangGraph代理提供内存管理和搜索工具,使其能够在会话间存储、检索和更新持久性事实。"
license: "MIT"
description: "为LangGraph代理提供内存管理和搜索工具,使其能够在会话间存储、检索和更新持久性事实。"
github_stars: 1502
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Developer Tools"
framework: "Custom Agents"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 1502使用LangMem为LangGraph代理添加受管理的长期内存
为LangGraph代理提供内存管理和搜索工具,使其能够在会话间存储、检索和更新持久性事实。
先决条件
Python,langmem,LangGraph或LangChain代理运行时,用于生产的持久化存储如Postgres,LLM提供商API密钥
安装
使用与您的环境匹配的上游安装或设置路径:
- pip install -U langmem
上游的要求和注意事项:
- python
基本用法或入门笔记:
-
用您喜欢的LLM提供商的API密钥配置您的环境:
-
export ANTHROPIC_API_KEY="sk-..." # 或其他支持的LLM提供商
-
这是如何仅用几行代码创建一个能够主动管理自身长期内存的代理:
-
Extracted from upstream docs: https://raw.githubusercontent.com/langchain-ai/langmem/HEAD/README.md
文档
Current listing version
1.1.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 为 LangGraph 代理提供长期记忆管理能力,解决会话间持久化事实存储与检索的实际痛点
- 面向开发者工具领域,具有明确的技术集成价值和实用场景
Areas to improve
-
description 内容不完整 Reported severity: Minor
frontmatter 中 description 字段仅重复 summary,未提供详细的触发关键词(如“长期记忆”、“记忆管理”、“LangGraph 代理”等)
Recommendation: 在 frontmatter 的 description 字段中添加具体的触发词和场景描述,以便用户精准触发
Areas to improve
-
缺少清晰的步骤划分与端到端示例 Reported severity: Minor
文档未按 Phase 或步骤清晰划分执行流程,缺少完整的端到端代码示例和明确的出口条件
Recommendation: 补充 Phase 1: 安装配置,Phase 2: 初始化记忆管理器,Phase 3: 集成到代理等步骤,并提供完整可运行的示例代码
Highlights
- frontmatter 完整,包含必要的元数据(版本、作者、许可证等)
- 提供了先决条件、安装和文档链接,结构基本完整
Areas to improve
-
异常处理与确认机制缺失 Reported severity: Minor
未覆盖主要异常情况(如网络错误、API 密钥无效、数据库连接失败),也未提及不可逆操作(如记忆删除)的确认机制
Recommendation: 补充常见异常的处理建议,并为不可逆操作添加确认提示机制
Highlights
- 工具来源明确(langmem),安装命令正确
- 提到了 LLM API 密钥配置,具备基本的执行指导
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 32 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 27, 38
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- langchain-ai.github.io
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.