Hi Team,
We are using queue_text_chunk to stream responses. It works as expected in Teams, but in Copilot the entire response is returned at once instead of streaming.
We are using the same codebase for both channels, and streaming behaves correctly in Teams but not in Copilot.
Python Agent SDK version: 0.9.0
Code snippet -
sr = context.streaming_response
sr.queue_informative_update("Gathering relevant data…")
await asyncio.sleep(1.5)
sr.queue_informative_update("Compiling insights…")
await asyncio.sleep(1.5)
sr.queue_informative_update("Preparing your response…")
await asyncio.sleep(1.5)
for chunk in chunks:
sr.queue_text_chunk(chunk)
await asyncio.sleep(1.5)
Hi Team,
We are using
queue_text_chunkto stream responses. It works as expected in Teams, but in Copilot the entire response is returned at once instead of streaming.We are using the same codebase for both channels, and streaming behaves correctly in Teams but not in Copilot.
Python Agent SDK version: 0.9.0
Code snippet -