Install
openclaw skills install llm-memory-interface-onlyLLM Memory Integration - 纯接口包。提供 Memory、Search、Vector 接口定义,实现由私有包提供。
openclaw skills install llm-memory-interface-only本包为纯接口定义包,不包含任何实现代码。
| 组件 | 本包 | 私有包 |
|---|---|---|
| 接口定义 | ✅ | - |
| 实现代码 | ❌ | ✅ |
| 网络访问 | ❌ | ✅ |
| 原生扩展 | ❌ | ✅ |
记忆管理接口:add, get, update, delete, list
搜索接口:search, hybrid_search, fts_search
向量接口:embed, embed_single, similarity, batch_embed
# 克隆私有包
git clone https://cnb.cool/llm-memory-integrat/llm.git
# 或查看私有包说明
# https://cnb.cool/llm-memory-integrat/llm
from src.interfaces import MemoryInterface, SearchInterface, VectorInterface
# 实现这些接口
class MyMemory(MemoryInterface):
def add(self, content, metadata=None):
# 你的实现
pass
# ... 其他方法
纯接口包 v9.0.0 - 无实现、无风险