{"id":51022899,"url":"https://github.com/dynamiclu/ce-mem","last_synced_at":"2026-06-21T17:02:05.139Z","repository":{"id":357289056,"uuid":"1236243708","full_name":"dynamiclu/ce-mem","owner":"dynamiclu","description":"Dify CE Memory Plugin","archived":false,"fork":false,"pushed_at":"2026-05-12T06:11:25.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"v20260512","last_synced_at":"2026-05-12T07:28:21.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dynamiclu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T04:33:28.000Z","updated_at":"2026-05-12T06:11:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dynamiclu/ce-mem","commit_stats":null,"previous_names":["dynamiclu/ce-mem"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dynamiclu/ce-mem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2Fce-mem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2Fce-mem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2Fce-mem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2Fce-mem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynamiclu","download_url":"https://codeload.github.com/dynamiclu/ce-mem/tar.gz/refs/heads/v20260512","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamiclu%2Fce-mem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34618484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T17:02:04.476Z","updated_at":"2026-06-21T17:02:05.130Z","avatar_url":"https://github.com/dynamiclu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dify CE Memory Plugin\n\n用于 Dify Workflow 的多轮对话记忆插件。\n\n## 功能\n\n- **存储对话**: 将 user/assistant 消息存入记忆\n- **查询记忆**: 按时间倒序获取历史对话\n- **自动压缩**: 超过100条对话时压缩旧记忆\n- **毫秒级响应**: LRU内存缓存加速查询\n\n## 使用方式\n\n```python\nfrom ce_memory.api import store_memory, query_memory\n\n# 存储对话\nstore_memory(key=\"session_123\", query_content=\"用户输入\", llm_response=\"助手回复\")\n\n# 查询记忆\nresult = query_memory(key=\"session_123\", size=10)\n```\n\n## 文件结构\n\n```\nce_memory/\n├── manifest.yaml      # 插件元数据\n├── provider/          # Dify Provider 实现\n│   ├── provider.yaml  # Provider 定义\n│   └── provider.py    # Provider 代码\n├── memory_store.py    # 核心存储引擎\n├── api.py             # API 封装\n└── test.py            # 测试\n```\n\n## 安装\n\n```bash\npip install ce_memory\n```\n\n## Dify Workflow 集成\n\n在 Dify Workflow 中通过 HTTP Request 节点调用：\n\n- 存储节点: `POST /memory/store`\n- 查询节点: `GET /memory/query?key=xxx\u0026size=10`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamiclu%2Fce-mem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamiclu%2Fce-mem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamiclu%2Fce-mem/lists"}