From 58ca1f4fac98d766350898f17db6fb02c5adea17 Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Wed, 4 Mar 2026 13:51:55 +0800 Subject: [PATCH] fix(core): update version and enhance compactor execution with service context --- pyproject.toml | 6 +++++- reme/__init__.py | 2 +- reme/reme_copaw.py | 8 +++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 19df32d9..a3f99fbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,11 @@ dev = [ ] full = [ - "reme_ai[dev,ray]" + "reme_ai[dev,ray]", +] + +as = [ + "agentscope", ] [tool.setuptools.packages.find] diff --git a/reme/__init__.py b/reme/__init__.py index 733448bd..b05e3226 100644 --- a/reme/__init__.py +++ b/reme/__init__.py @@ -7,7 +7,7 @@ from . import memory from .reme import ReMe from .reme_cli import ReMeCli -__version__ = "0.3.0.3" +__version__ = "0.3.0.4" __all__ = [ "config", diff --git a/reme/reme_copaw.py b/reme/reme_copaw.py index 480fda62..ebb4f5c9 100644 --- a/reme/reme_copaw.py +++ b/reme/reme_copaw.py @@ -415,7 +415,7 @@ class ReMeCopaw(Application): compactor.context["messages"] = messages # Execute compaction and get processed messages - result = await compactor.execute() + result = await compactor.call(service_context=self.service_context) # Clean up any expired tool result files during compaction compactor.cleanup_expired_files() @@ -459,7 +459,9 @@ class ReMeCopaw(Application): ) # Execute compaction with optional previous summary context - return await compactor.call(messages=messages, previous_summary=previous_summary) + return await compactor.call( + messages=messages, previous_summary=previous_summary, service_context=self.service_context + ) except Exception as e: # Log error and return empty string to indicate failure @@ -500,7 +502,7 @@ class ReMeCopaw(Application): ) # Execute summarization on the provided messages - return await compactor.call(messages=messages) + return await compactor.call(messages=messages, service_context=self.service_context) except Exception as e: # Log error and return empty string to indicate failure