360 Secure SkillHub
360 安全技能中心

Llm Memory Interface Only

这是LLM Memory Integration纯接口包,核心定义Memory、Search、Vector三类接口,涵盖记忆增删改查、多模式搜索、向量嵌入与相似度计算等方法。包内无实现代码,安全无风险,完整实现需从指定私有包获取。典型场景为开发者基于接口自行实现LLM相关功能,或安装私有包直接使用,支持Python导入接口类进行开发。

xkzs2007
xkzs2007
热度 35.66
最近更新 2026-05-11 17:43:33
分类:开发依赖:纯提示词应用场景:API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add llm-memory-interface-only
Metadata
name
llm-memory-integration
description
LLM Memory Integration - 纯接口包。提供 Memory、Search、Vector 接口定义,实现由私有包提供。
version
9.0.0
license
MIT-0
author
xkzs2007
homepage
https://clawhub.ai/skill/llm-memory-integration
requirements
{"binaries":[],"envVars":{"required":[],"optional":[]},"network":false}
security_note
✅ 安全说明(v9.0.0 纯接口版): 【纯接口包】 - ✅ 仅包含接口定义(ABC 抽象类) - ✅ 无任何实现代码 - ✅ 无网络访问 - ✅ 无文件系统访问 - ✅ 无 subprocess 调用 - ✅ 无原生扩展 【实现来源】 - 实现代码由私有包提供:https://cnb.cool/llm-memory-integrat/llm.git - 用户需手动安装私有包或使用完整版

LLM Memory Integration - 纯接口包

⚠️ 重要说明

本包为纯接口定义包,不包含任何实现代码。

组件 本包 私有包
接口定义 ✅ -
实现代码 ❌ ✅
网络访问 ❌ ✅
原生扩展 ❌ ✅

接口列表

MemoryInterface

记忆管理接口:add, get, update, delete, list

SearchInterface

搜索接口:search, hybrid_search, fts_search

VectorInterface

向量接口: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 - 无实现、无风险