mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 03:55:09 +08:00
docs(memory): clarify session_search conversation-id source in English
Translate the inline comment on the ToolContext-derived conversation id to English per code style; no behavior change.
This commit is contained in:
parent
dcc8c9aed3
commit
0c7ea8d563
@ -51,7 +51,8 @@ public class SessionSearchTool {
|
|||||||
mode = "recent";
|
mode = "recent";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 从 ToolContext 强制读取当前会话 ID(替代 LLM 自传,防止并发会话记忆混乱)
|
// Read the current conversation id from the ToolContext rather than trusting
|
||||||
|
// the LLM to pass it, so concurrent sessions of the same agent stay isolated.
|
||||||
String currentConversationId = "";
|
String currentConversationId = "";
|
||||||
if (toolContext != null) {
|
if (toolContext != null) {
|
||||||
String fromOrigin = ChatOrigin.from(toolContext).conversationId();
|
String fromOrigin = ChatOrigin.from(toolContext).conversationId();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user