feat: Add sender_id to LLM runtime context
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user