ReMe/reme
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
..
config refactor(file_io): update file I/O operations and truncation logic (#177) 2026-03-25 20:21:37 +08:00
core feat(memory): improve skills tool result truncation (#182) 2026-03-27 21:14:44 +08:00
extension feat(memory): replace memory formatter with AsMsgHandler for enhanced message processing 2026-03-06 16:29:52 +08:00
memory feat(memory): improve skills tool result truncation (#182) 2026-03-27 21:14:44 +08:00
__init__.py feat(memory): improve skills tool result truncation (#182) 2026-03-27 21:14:44 +08:00
reme.py fix: surface summarize/retrieve failures instead of masking them (#160) 2026-03-27 12:22:29 +08:00
reme_cli.py refactor(cli): using AgentScope components to reimplement the reme_cli logic (#153) 2026-03-12 11:23:36 +08:00
reme_light.py feat(reme): add configurable file watcher support (#181) 2026-03-26 15:46:42 +08:00