Skip to content

opok-ops/AgentMemorySystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Memory System

?? 开源的 Agent 记忆系统

为 AI Agent 赋能持久记忆能力

功能特性

  • ?? 快速集成 - 几行代码即可开始使用
  • ?? 持久化存储 - 基于 SQLite 的高效存储
  • ?? 智能检索 - 多维度搜索算法
  • ?? 可视化分析 - 直观的统计图表
  • ?? RESTful API - 完善的 API 接口

快速开始

安装依赖

pip install -r requirements.txt

启动服务

python main.py

访问

使用示例

from src.memory_manager import MemoryManager

manager = MemoryManager()
memory_id = manager.add_memory(
    content='用户喜欢喝咖啡',
    category='user_preference',
    tags=['喜好', '饮品'],
    importance=3
)
results = manager.search_memories('咖啡')
print(results)

API 端点

  • POST /memories - 创建新记忆
  • GET /memories - 获取记忆列表
  • GET /memories/search - 搜索记忆
  • GET /statistics - 获取统计信息

许可证

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages