From 4cbf1a886ec15234e270a483d6a89b5bae9902c7 Mon Sep 17 00:00:00 2001 From: PKC278 <52959804+PKC278@users.noreply.github.com> Date: Mon, 23 Mar 2026 22:16:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4AI=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E4=BD=93=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=AD=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84await?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/agent/__init__.py b/app/agent/__init__.py index 34ef8aa1..d7eec9f3 100644 --- a/app/agent/__init__.py +++ b/app/agent/__init__.py @@ -245,7 +245,7 @@ class AgentManager: """ 初始化管理器 """ - await memory_manager.initialize() + memory_manager.initialize() async def close(self): """ @@ -300,7 +300,7 @@ class AgentManager: agent = self.active_agents[session_id] await agent.cleanup() del self.active_agents[session_id] - await memory_manager.clear_memory(session_id, user_id) + memory_manager.clear_memory(session_id, user_id) logger.info(f"会话 {session_id} 的记忆已清空")