feat: Add AgentMemory as memory_manager_backend option#3565
feat: Add AgentMemory as memory_manager_backend option#3565zhenai1314521 wants to merge 1 commit intoagentscope-ai:mainfrom
Conversation
…oryManager class implementing BaseMemoryManager - Add AgentMemoryMCPClient for MCP protocol communication - Support memory_recall, memory_save, memory_patterns, memory_relations - Add 'agentmemory' option to memory_manager_backend config - Enable high-precision triple retrieval (vector + BM25 + knowledge graph) Configuration: Set `memory_manager_backend: "agentmemory"` in config.json Requirements: - Node.js >= 18 - npm - npx @agentmemory/mcp
|
Hi @zhenai1314521, thank you for your first Pull Request! 🎉 📋 About PR TemplateTo help maintainers review your PR faster, please make sure to include:
Complete PR information helps speed up the review process. You can edit the PR description to add these details. 🙌 Join Developer CommunityThanks so much for your contribution! We'd love to invite you to join the official QwenPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page: We truly appreciate your enthusiasm—and look forward to your future contributions! 😊 We'll review your PR soon. |
|
@zhenai1314521 |

Summary This PR adds AgentMemory as an optional memory_manager_backend for QwenPaw, enabling high-precision triple retrieval (vector + BM25 + knowledge graph). ## Changes - Add `AgentMemoryManager` class implementing `BaseMemoryManager` - Add `AgentMemoryMCPClient` for MCP protocol communication - Support `memory_recall`, `memory_save`, `memory_patterns`, `memory_relations` - Add 'agentmemory' option to `memory_manager_backend` config - Enable high-precision triple retrieval (vector + BM25 + knowledge graph) ## Configuration To use AgentMemory as the memory backend, set in config.json: ```json { "memory_manager_backend": "agentmemory" } ``` ## Requirements - Node.js >= 18 - npm - npx @agentmemory/mcp ## Testing All tests passed: - MCP client connection: OK - memory_save: OK - memory_recall: OK - memory_patterns: OK - memory_relations: OK - AgentMemoryManager initialization: OK ## Files Changed | File | Change | |------|--------| | src/qwenpaw/agents/memory/init.py | Export new classes | | src/qwenpaw/agents/memory/agent_memory_manager.py | New file | | src/qwenpaw/agents/memory/agent_memory_mcp_client.py | New file | | src/qwenpaw/app/workspace/workspace.py | Add agentmemory backend | | src/qwenpaw/config/config.py | Add agentmemory option | ## Related - AgentMemory: https://github.com/agentmemory/agentmemory - MCP Protocol: https://modelcontextprotocol.io