ReMe/reme/memory/file_based/components
jinliyl ff49a77f18
feat(memory): improve skills tool result truncation (#182)
* fix(memory): correct line numbering and improve tool result truncation

- Changed default start_line from 0 to 1 in truncate_text_output function
- Refactored _truncate method to be a standalone method in ToolResultCompactor
- Improved tool result compaction logic to handle text blocks more efficiently
- Added detection of skill-related tool calls for special handling
- Implemented conditional byte limits based on tool type for better memory management
- Updated version number from 0.3.1.4 to 0.3.1.5

* feat(file_utils): add encoding parameter to truncate_text_output function

- Added encoding parameter with default value "utf-8" to truncate_text_output function
- Updated all encode/decode calls to use the specified encoding parameter
- Modified ToolResultCompactor to pass encoding parameter when calling truncate_text_output
- Added error handling for skill tool ID detection in message processing loop
- Fixed potential AttributeError when accessing raw_input field that might be None

* fix(file-store): handle corrupted ChromaDB initialization and improve tool result truncation

- Add shutil import for directory removal operations
- Extract ChromaDB client creation into separate _create_chroma_client method
- Implement retry mechanism with database wipe on ChromaDB initialization failure
- Add proper exception handling in tool result compaction to prevent truncation errors
- Move file writing logic outside of exception handling scope for better error management
- Add warning log when truncation fails and return original content as fallback
2026-03-27 21:14:44 +08:00
..
__init__.py refactor(cli): using AgentScope components to reimplement the reme_cli logic (#153) 2026-03-12 11:23:36 +08:00
cli.py refactor(file_io): update file I/O operations and truncation logic (#177) 2026-03-25 20:21:37 +08:00
cli.yaml refactor(cli): using AgentScope components to reimplement the reme_cli logic (#153) 2026-03-12 11:23:36 +08:00
compactor.py style(memory): update message formatting and improve logging (#175) 2026-03-24 00:20:15 +08:00
compactor.yaml style(memory): update message formatting and improve logging (#175) 2026-03-24 00:20:15 +08:00
context_checker.py Dev/token (#159) 2026-03-17 11:07:31 +08:00
summarizer.py style(memory): update message formatting and improve logging (#175) 2026-03-24 00:20:15 +08:00
summarizer.yaml refactor(file_io): update file I/O operations and truncation logic (#177) 2026-03-25 20:21:37 +08:00
tool_result_compactor.py feat(memory): improve skills tool result truncation (#182) 2026-03-27 21:14:44 +08:00