mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-06 02:48:22 +00:00
feat(agent): integrate batch file writing with context offload
This commit is contained in:
parent
b5b3e61ced
commit
dc1ebec174
2 changed files with 2 additions and 2 deletions
|
|
@ -105,8 +105,9 @@ class AgenticRetrieveOp(ReactAgentOp):
|
|||
async def before_chat(self, messages: List[Message]):
|
||||
"""Run context offload to trim prior messages before invoking the agent."""
|
||||
from reme_ai.context.offload import ContextOffloadOp
|
||||
from reme_ai.context.file_tool import BatchWriteFileOp
|
||||
|
||||
op = ContextOffloadOp()
|
||||
op = ContextOffloadOp() >> BatchWriteFileOp()
|
||||
await op.async_call(**self.input_dict)
|
||||
messages = op.context.response.answer
|
||||
messages = [Message(**x) for x in messages]
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ which extends FlowLLM with specialized memory management capabilities including:
|
|||
- Task Memory: Store and retrieve task execution histories
|
||||
- Tool Memory: Track tool usage patterns and experiences
|
||||
- Personal Memory: Manage user preferences and personal information
|
||||
- SOP Memory: Standard Operating Procedures for recurring workflows
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue