ReMe/reme/core
jinliyl 6dd987a1d2
refactor(core): update text truncation utilities and tool result handling (#168)
* refactor(memory): remove mark filtering parameters and simplify get_memory logic

* feat(core): bump version to 0.3.1.0

* refactor(memory): update comment to clarify dialog storage persistence

* refactor(core): update text truncation utilities and tool result handling

- Add new truncate_text_head function for head-based truncation
- Introduce TRUNCATION_MARKER_START constant for truncation detection
- Replace tail-based truncation with head-based truncation in tool result compaction
- Remove tool_result_threshold and retention_days parameters from RemeLight initialization
- Update ToolResultCompactor to use configurable thresholds for recent vs old messages
- Modify compact_tool_result method to accept multiple threshold parameters
- Adjust cleanup logic to use default compactor configuration
- Simplify is_truncated function to check only start marker

* ```
feat(memory): add long line splitting in tool result compaction

- Added _split_long_lines function to break oversized lines at 10000 characters
- Implemented line splitting before saving tool results to files
- Prevents extremely long lines from breaking file-based storage
- Maintains compatibility with existing tool result format
- Preserves original content integrity through chunked processing
```
2026-03-19 19:53:32 +08:00
..
as_llm refactor(core): update registry registration syntax and improve code formatting 2026-03-06 01:57:29 +08:00
as_llm_formatter Dev/token (#159) 2026-03-17 11:07:31 +08:00
as_token_counter feat(core): update version and enhance configuration management (#164) 2026-03-18 15:16:10 +08:00
embedding feat(core): update version and enhance configuration management (#164) 2026-03-18 15:16:10 +08:00
enumeration refactor(core): replace memory stores with file stores and update architecture 2026-02-26 14:18:12 +08:00
file_store fin(emb_dim) (#150) 2026-03-10 18:19:00 +08:00
file_watcher feat(file-watcher): add clear-on-start option and remove redundant clears (#161) 2026-03-17 20:13:19 +08:00
flow refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
llm feat(core): update version and enhance configuration management (#164) 2026-03-18 15:16:10 +08:00
op Dev/token (#159) 2026-03-17 11:07:31 +08:00
schema refactor(cli): using AgentScope components to reimplement the reme_cli logic (#153) 2026-03-12 11:23:36 +08:00
service refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
token_counter refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
tools refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
utils refactor(core): update text truncation utilities and tool result handling (#168) 2026-03-19 19:53:32 +08:00
vector_store refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
__init__.py refactor(cli): using AgentScope components to reimplement the reme_cli logic (#153) 2026-03-12 11:23:36 +08:00
application.py feat(core): add application restart capability with enhanced configuration options (#166) 2026-03-19 11:06:11 +08:00
base_dict.py refactor(core): replace memory stores with file stores and update architecture 2026-02-26 14:18:12 +08:00
prompt_handler.py refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
registry_factory.py refactor(cli): using AgentScope components to reimplement the reme_cli logic (#153) 2026-03-12 11:23:36 +08:00
runtime_context.py refactor(core): restructure application initialization and service context 2026-02-26 17:56:59 +08:00
service_context.py feat(core): update version and enhance configuration management (#164) 2026-03-18 15:16:10 +08:00