Feat: record user_id in memory (#13585)

### What problem does this PR solve?

Get user_id from canvas and record it.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Lynn
2026-03-13 15:38:35 +08:00
committed by GitHub
parent 5c955a31cc
commit 02070bab2a
5 changed files with 15 additions and 7 deletions

View File

@@ -433,7 +433,7 @@ class Message(ComponentBase):
return True, "No memory selected."
message_dict = {
"user_id": self._canvas._tenant_id,
"user_id": self._param.user_id if hasattr(self._param, "user_id") else "",
"agent_id": self._canvas._id,
"session_id": self._canvas.task_id,
"user_input": self._canvas.get_sys_query(),