/core/chat_engine/types.py
if not self._aqueue.empty() or not self._is_done: try: delta = await asyncio.wait_for(self._aqueue.get(), timeout=0.1) except asyncio.TimeoutError: if self._is_done: break continue self._unformatted_response += delta yield delta
self._unformatted_response += delta