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:
matevip 2026-06-30 09:25:15 +08:00
parent dcc8c9aed3
commit 0c7ea8d563

View File

@ -51,7 +51,8 @@ public class SessionSearchTool {
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 = "";
if (toolContext != null) {
String fromOrigin = ChatOrigin.from(toolContext).conversationId();