feat(ai): implement AI memory system with context extraction and storage

Add comprehensive AI memory functionality including:
- Memory context preparation and caching
- Fact extraction from conversations
- Memory search and retrieval with category support
- JSON-based memory update operations (add/update/delete)
- Memory deduplication and normalization
- Integration with AI conversation flow

The system extracts relevant facts from conversations, stores them with
categories, and provides contextual memory to enhance AI responses.
This commit is contained in:
2025-12-27 12:41:39 +08:00
parent e0eb790346
commit 971675f6ea
7 changed files with 1169 additions and 3 deletions