Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix: ChatAgent clone stream accumulate passing (#3970)

Wendong-Fanb547bc49f5cc
diff --git a/camel/agents/chat_agent.py b/camel/agents/chat_agent.py
index 7689fd46c..475584915 100644
--- a/camel/agents/chat_agent.py
+++ b/camel/agents/chat_agent.py
@@ -6148,7 +6148,11 @@ class ChatAgent(BaseAgent):
pause_event=self.pause_event,
prune_tool_calls_from_memory=self.prune_tool_calls_from_memory,
on_request_usage=self.on_request_usage,
- stream_accumulate=self.stream_accumulate,
+ stream_accumulate=(
+ self.stream_accumulate
+ if self._stream_accumulate_explicit
+ else None
+ ),
summarize_threshold=self.summarize_threshold,
mask_tool_output=self.mask_tool_output,
enable_snapshot_clean=self._enable_snapshot_clean,