feat: Add sender_id to LLM runtime context

This commit is contained in:
yorkhellen
2026-05-01 19:43:38 +08:00
committed by Xubin Ren
parent 1040124ede
commit c4170fa9ba
3 changed files with 8 additions and 2 deletions
+2
View File
@@ -929,6 +929,7 @@ class AgentLoop:
chat_id=chat_id,
session_summary=pending,
current_role=current_role,
sender_id=msg.sender_id,
)
final_content, _, all_msgs, stop_reason, _ = await self._run_agent_loop(
messages, session=session, channel=channel, chat_id=chat_id,
@@ -1024,6 +1025,7 @@ class AgentLoop:
media=msg.media if msg.media else None,
channel=msg.channel,
chat_id=self._runtime_chat_id(msg),
sender_id=msg.sender_id,
)
async def _bus_progress(