refactor: improve message source tagging in GatewayRunner
- Renamed variable `source` to `mirror_src` for clarity in the message tagging logic within the GatewayRunner class, enhancing code readability while maintaining functionality.
This commit is contained in:
parent
224c900532
commit
79f8831738
1 changed files with 2 additions and 2 deletions
|
|
@ -1329,8 +1329,8 @@ class GatewayRunner:
|
|||
if content:
|
||||
# Tag cross-platform mirror messages so the agent knows their origin
|
||||
if msg.get("mirror"):
|
||||
source = msg.get("mirror_source", "another session")
|
||||
content = f"[Delivered from {source}] {content}"
|
||||
mirror_src = msg.get("mirror_source", "another session")
|
||||
content = f"[Delivered from {mirror_src}] {content}"
|
||||
agent_history.append({"role": role, "content": content})
|
||||
|
||||
result = agent.run_conversation(message, conversation_history=agent_history)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue