- 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. |
||
|---|---|---|
| .. | ||
| memory | ||
| skills | ||
| token | ||
| tools | ||
| act.go | ||
| const.go | ||
| engine.go | ||
| engine_image_test.go | ||
| finalize.go | ||
| observe.go | ||
| prompts.go | ||
| think.go | ||