Commit c37ce5be by sunqi02 Committed by 胡悦

refactor: adapt MessageGate mem.add() to new name parameter

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0d595970
...@@ -261,7 +261,7 @@ class MessageGate: ...@@ -261,7 +261,7 @@ class MessageGate:
) )
mem = SessionMemory(session_id, store) mem = SessionMemory(session_id, store)
mem.add("user", merged_text) mem.add("user", merged_text)
mem.add("assistant", decision.reply, agent_code=self.main_agent_key) mem.add("assistant", decision.reply, name=self.main_agent_key)
# 清空 intent_session # 清空 intent_session
data = store.get(session_id) or {} data = store.get(session_id) or {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!