mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-07 03:00:27 +00:00
fix(core): update version and improve compactor message handling
This commit is contained in:
parent
58ca1f4fac
commit
70282d4110
2 changed files with 2 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ from . import memory
|
|||
from .reme import ReMe
|
||||
from .reme_cli import ReMeCli
|
||||
|
||||
__version__ = "0.3.0.4"
|
||||
__version__ = "0.3.0.5"
|
||||
|
||||
__all__ = [
|
||||
"config",
|
||||
|
|
|
|||
|
|
@ -411,11 +411,9 @@ class ReMeCopaw(Application):
|
|||
tool_result_threshold=self.tool_result_threshold,
|
||||
retention_days=self.retention_days,
|
||||
)
|
||||
# Set the messages context for the compactor to process
|
||||
compactor.context["messages"] = messages
|
||||
|
||||
# Execute compaction and get processed messages
|
||||
result = await compactor.call(service_context=self.service_context)
|
||||
result = await compactor.call(messages=messages, service_context=self.service_context)
|
||||
|
||||
# Clean up any expired tool result files during compaction
|
||||
compactor.cleanup_expired_files()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue