Building AI agents, atomically
response_stream is a generator and not an async generator
Jonathan Chun6b0a0dbbcc2c
diff --git a/atomic-agents/atomic_agents/agents/base_agent.py b/atomic-agents/atomic_agents/agents/base_agent.pyindex 98b68c9..a7509d1 100644--- a/atomic-agents/atomic_agents/agents/base_agent.py+++ b/atomic-agents/atomic_agents/agents/base_agent.py@@ -205,7 +205,7 @@ class BaseAgent:stream=True,)- async for partial_response in response_stream:+ for partial_response in response_stream:yield partial_responsefull_response_content = self.output_schema(**partial_response.model_dump())