🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
chore: Update chatagent_stream.py (#2811)
Tao Sun35b78f5b0e4e
diff --git a/examples/agents/chatagent_stream.py b/examples/agents/chatagent_stream.pyindex f020c5b44..2eea82f95 100644--- a/examples/agents/chatagent_stream.py+++ b/examples/agents/chatagent_stream.py@@ -115,7 +115,8 @@ async def test_async_tool_execution():previous_content = ""- async for response in agent.astep(query):+ streaming_response = await agent.astep(query)+ async for response in streaming_response:if response.msgs:current_content = response.msgs[0].content@@ -229,7 +230,8 @@ async def test_async_structured_output():previous_content = ""- async for response in agent.astep(query, response_format=Thinking):+ streaming_response = await agent.astep(query, response_format=Thinking)+ async for response in streaming_response:if response.msgs:current_content = response.msgs[0].content