Commit Graph

19 Commits

Author SHA1 Message Date
朱潮
525801d7f5 update summary 2026-02-04 15:31:41 +08:00
朱潮
f694101747 refactor: migrate from Memori to Mem0 for long-term memory
Replace Memori with Mem0 for memory management:
- Delete memori_config.py, memori_manager.py, memori_middleware.py
- Add mem0_config.py, mem0_manager.py, mem0_middleware.py
- Update environment variables (MEMORI_* -> MEM0_*)
- Integrate Mem0 with LangGraph middleware
- Add sync connection pool for Mem0 in DBPoolManager
- Move checkpoint message prep to config creation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 21:15:30 +08:00
朱潮
5c041cdebe fix: add psycopg2-binary dependency for Memori
Memori requires synchronous database connection (psycopg2) to
create SQLAlchemy sessions. Added psycopg2-binary to dependencies.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 08:33:11 +08:00
朱潮
455a48409d feat: integrate Memori long-term memory system
Add Memori (https://github.com/MemoriLabs/Memori) integration for
persistent cross-session memory capabilities in both create_agent
and create_deep_agent.

## New Files

- agent/memori_config.py: MemoriConfig dataclass for configuration
- agent/memori_manager.py: MemoriManager for connection and instance management
- agent/memori_middleware.py: MemoriMiddleware for memory recall/storage
- tests/: Unit tests for Memori components

## Modified Files

- agent/agent_config.py: Added enable_memori, memori_semantic_search_top_k, etc.
- agent/deep_assistant.py: Integrated MemoriMiddleware into init_agent()
- utils/settings.py: Added MEMORI_* environment variables
- pyproject.toml: Added memori>=3.1.0 dependency

## Features

- Semantic memory search with configurable top-k and threshold
- Multi-tenant isolation (entity_id=user, process_id=bot, session_id)
- Memory injection into system prompt
- Background asynchronous memory augmentation
- Graceful degradation when Memori is unavailable

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 00:12:43 +08:00
朱潮
0e6b2f1511 add CHECKPOINT_DB_URL 2025-12-24 20:43:10 +08:00
朱潮
aaad9df20a add skills 2025-12-22 23:47:12 +08:00
朱潮
881845f284 use sqlite 2025-12-18 11:12:05 +08:00
朱潮
47f1d1c7eb cache 2025-12-17 23:05:42 +08:00
朱潮
720db80ae9 add deep_agent 2025-12-12 18:41:52 +08:00
朱潮
ed3c28174a 性能优化 2025-11-16 12:25:45 +08:00
朱潮
f62dbf0484 python version 2025-11-16 09:43:14 +08:00
朱潮
cf7499b743 修改依赖 2025-11-14 23:35:12 +08:00
朱潮
d5a989860c add public 2025-11-08 20:23:04 +08:00
朱潮
25dec10b67 add webdav 2025-11-07 14:06:54 +08:00
朱潮
d6965e1517 add csv operator 2025-10-20 12:51:36 +08:00
朱潮
1f81bef8c6 Squashed commits: various improvements and refactoring
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 22:02:25 +08:00
朱潮
8f0a5569e2 add task 2025-10-18 09:20:59 +08:00
朱潮
e21c3cb44e add file process 2025-10-17 16:16:41 +08:00
朱潮
d0e3e62291 add semantic search 2025-10-16 21:06:02 +08:00