Skip to content

Commit e43dbc7

Browse files
committed
fix: ChatAgent clone stream accumulate passing
1 parent bce5f78 commit e43dbc7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

camel/agents/chat_agent.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6148,7 +6148,11 @@ def clone(self, with_memory: bool = False) -> ChatAgent:
61486148
pause_event=self.pause_event,
61496149
prune_tool_calls_from_memory=self.prune_tool_calls_from_memory,
61506150
on_request_usage=self.on_request_usage,
6151-
stream_accumulate=self.stream_accumulate,
6151+
stream_accumulate=(
6152+
self.stream_accumulate
6153+
if self._stream_accumulate_explicit
6154+
else None
6155+
),
61526156
summarize_threshold=self.summarize_threshold,
61536157
mask_tool_output=self.mask_tool_output,
61546158
enable_snapshot_clean=self._enable_snapshot_clean,

0 commit comments

Comments
 (0)