mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-08 03:10:24 +00:00
fix(halumem): correct async context manager implementation
This commit is contained in:
parent
0163cb25ce
commit
5a4077e68c
1 changed files with 4 additions and 2 deletions
|
|
@ -567,11 +567,13 @@ class HaluMemEvaluator:
|
|||
|
||||
async def __aenter__(self):
|
||||
"""Async context manager entry."""
|
||||
return await self.reme.start()
|
||||
await self.reme.start()
|
||||
return self
|
||||
|
||||
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
||||
"""Async context manager exit with cleanup."""
|
||||
return await self.reme.close()
|
||||
await self.reme.close()
|
||||
return False
|
||||
|
||||
async def process_session(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue