mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
fix(core): update version and enhance compactor execution with service context
This commit is contained in:
parent
5584a5c239
commit
58ca1f4fac
3 changed files with 11 additions and 5 deletions
|
|
@ -77,7 +77,11 @@ dev = [
|
|||
]
|
||||
|
||||
full = [
|
||||
"reme_ai[dev,ray]"
|
||||
"reme_ai[dev,ray]",
|
||||
]
|
||||
|
||||
as = [
|
||||
"agentscope",
|
||||
]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue