- 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. |
||
|---|---|---|
| .. | ||
| agent | ||
| application | ||
| common | ||
| config | ||
| container | ||
| database | ||
| errors | ||
| event | ||
| handler | ||
| im | ||
| infrastructure | ||
| logger | ||
| mcp | ||
| middleware | ||
| models | ||
| router | ||
| runtime | ||
| sandbox | ||
| searchutil | ||
| stream | ||
| tracing | ||
| types | ||
| utils | ||