z43460018724
z43460018724
@hexly666 Thanks for your input! Just to confirm, is this the intended design approach? **Core approach**: Create a separate Mem0LongTermMemory instance and ReActAgent instance for each (userId, sessionId) combination. ##...
@hexly666 Thanks for confirming! **Conclusion confirmed:** - `ReActAgent` is NOT thread-safe → cannot be shared across sessions - Creating separate `ReActAgent` + `Mem0LongTermMemory` per `(userId, sessionId)` is the intended design...
Here is a working prototype diff for reference. It touches 2 files, ~60 lines: ```diff diff --git a/agentscope-harness/src/main/java/io/agentscope/harness/agent/HarnessAgent.java b/agentscope-harness/src/main/java/io/agentscope/harness/agent/HarnessAgent.java index e7afb9b5..a5dfc3f1 100644 --- a/agentscope-harness/src/main/java/io/agentscope/harness/agent/HarnessAgent.java +++ b/agentscope-harness/src/main/java/io/agentscope/harness/agent/HarnessAgent.java @@ -1252,6 +1252,7 @@...
Update: PR #3275 (the in-flight context pipeline refactor that was blocking this issue) has been **closed without merging** on Sep 24 due to merge conflicts with main. The blocker no...