朱潮
|
1d4e337fc3
|
update MEM0_ENABLED
|
2026-01-22 16:56:39 +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 |
|
朱潮
|
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 |
|
朱潮
|
b93c40d5a5
|
merge
|
2026-01-08 23:10:09 +08:00 |
|
朱潮
|
d45079ca55
|
feat: 将system_prompt解析从markdown代码块改为XML标签格式
- agent_config.py: enable_thinking判断从 ```guideline 改为 <guidelines>
- fastapi_utils.py:
- preamble解析从 ```preamble``` 改为 <preamble>
- guidelines/tools/scenarios/terms 块解析从 markdown 格式改为 XML 标签格式
- 移除不再使用的 parse_guidelines_text 函数
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-08 22:56:43 +08:00 |
|
朱潮
|
5a4aee91ab
|
merge
|
2026-01-08 22:28:10 +08:00 |
|
朱潮
|
43ca06f591
|
修复system_prompt
|
2026-01-08 22:24:58 +08:00 |
|
朱潮
|
c1bf679166
|
enable_thinking
|
2026-01-08 18:03:21 +08:00 |
|
朱潮
|
e00f99c5c5
|
catalog_agent 转换为deep_agent
|
2025-12-30 19:35:31 +08:00 |
|
朱潮
|
6bad1743b3
|
warm_up
|
2025-12-18 00:38:04 +08:00 |
|
朱潮
|
c1c51da77e
|
guildline messages
|
2025-12-17 23:21:15 +08:00 |
|
朱潮
|
47f1d1c7eb
|
cache
|
2025-12-17 23:05:42 +08:00 |
|
朱潮
|
b78b178c03
|
删除agent manager
|
2025-12-17 20:27:06 +08:00 |
|
朱潮
|
e36787fb63
|
修改agent_config
|
2025-12-16 21:26:20 +08:00 |
|