@botbotgo/memory
v1.0.64
Published
Unified memory layer for LangChain / LangGraph / DeepAgents
Downloads
886
Maintainers
Readme
@botbotgo/memory
介绍
@botbotgo/memory 提供智能体记忆模块,覆盖 thread、cross_thread、knowledge 三类记忆,并可接入运行时上下文。
如何使用
cd framework/memory
npm install
npm run buildimport { createAgentMemory } from "@botbotgo/memory";
const memory = await createAgentMemory({ configPath: "./config/memory.yaml" });
await memory.memorize("user:demo", "cross_thread", "User prefers concise answers.");如何设置
配置文件:config/memory.yaml
核心配置项:
spec.types.threadspec.types.cross_threadspec.types.knowledgespec.classification
未指定模型时会回退使用 config/model.yaml 中的默认模型。
暴露 API
createAgentMemory(options)CreateAgentMemoryOptionsAgentMemoryStoreAdapterAgentMemoryStoreAdapterOptions
