We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5855a63 commit 1d5d769Copy full SHA for 1d5d769
1 file changed
src/backend/sql_agents/helpers/comms_manager.py
@@ -166,8 +166,8 @@ async def async_invoke(self) -> AsyncIterable[ChatMessageContent]:
166
while attempt < self.max_retries:
167
try:
168
# Grab a snapshot of the history of the group chat
169
- # Using copy to avoid getting a reference to the original list
170
- history_snap = copy.deepcopy(self.group_chat.history)
+ # Using "SHALLOW" copy to avoid getting a reference to the original list
+ history_snap = copy.copy(self.group_chat.history)
171
172
self.logger.debug(
173
"History before invoke: %s",
0 commit comments