qwen_agent/utils
朱潮 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
..
log_util sqlite pool and change agent cache to tools cache 2025-12-23 22:18:18 +08:00
__init__.py 批量保存聊天记录 2026-01-19 09:44:57 +08:00
agent_pool.py 日志优化 2025-11-27 21:50:03 +08:00
api_models.py 批量保存聊天记录 2026-01-19 09:44:57 +08:00
async_file_ops.py 日志优化 2025-11-27 21:50:03 +08:00
data_merger.py 日志优化 2025-11-27 21:50:03 +08:00
dataset_manager.py 日志优化 2025-11-27 21:50:03 +08:00
excel_csv_processor.py 日志优化 2025-11-27 21:50:03 +08:00
fastapi_utils.py 修复符号链接的问题,和deep_agent提示词 2026-01-13 14:22:44 +08:00
file_manager.py 日志优化 2025-11-27 21:50:03 +08:00
file_utils.py add symlink 2025-12-23 17:36:45 +08:00
multi_project_manager.py fix(skills): improve skill extraction and handling logic 2026-01-07 14:56:10 +08:00
project_manager.py add deep_agent 2025-12-12 18:41:52 +08:00
settings.py feat: integrate Memori long-term memory system 2026-01-20 00:12:43 +08:00
single_file_processor.py 日志优化 2025-11-27 21:50:03 +08:00
system_optimizer.py 日志优化 2025-11-27 21:50:03 +08:00