WeKnora/internal/application/service/llmcontext
wizardchen a8924e301e feat(agent): enhance message consolidation and context management
- Improved the message consolidation logic to preserve the current turn's user query and all subsequent assistant/tool messages, ensuring better context retention.
- Updated the CompressContext function to reflect the new consolidation strategy, maintaining the system prompt and relevant recent messages.
- Refactored the context manager to support optional message repository for improved context rebuilding from persistent storage.
- Added comprehensive tests to validate the new consolidation behavior and ensure correct message handling across various scenarios.
2026-03-25 22:08:29 +08:00
..
context_manager.go feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
context_manager_factory.go feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
memory_storage.go feat: Enhance chat and knowledge base functionalities with multi-KB support 2025-11-06 21:12:26 +08:00
redis_storage.go feat: Enhance chat and knowledge base functionalities with multi-KB support 2025-11-06 21:12:26 +08:00
storage.go feat: Enhance chat and knowledge base functionalities with multi-KB support 2025-11-06 21:12:26 +08:00