generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 605
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Checks
- I have updated to the lastest minor and patch version of Strands
- I have checked the documentation and this is not expected behavior
- I have searched ./issues and there are no duplicates of my issue
Strands Version
1.21
Python Version
3.13
Operating System
macOS 12.6
Installation Method
pip
Steps to Reproduce
A customer's service use Swarm with strands agent in their package When using Strands SDK's BedrockModel for streaming responses, chunks arrive in batches rather than as individual stream events. This breaks the natural streaming experience and causes poor user experience in applications expecting real-time streaming.
We might need to look into this line of
sdk-python/src/strands/models/bedrock.py
Line 660 in 63e58aa
| loop.call_soon_threadsafe(queue.put_nowait, event) |
Expected Behavior
- Chunks should arrive individually with natural pacing, similar to direct Bedrock API calls
- Streaming should feel smooth and real-time to end users
Actual Behavior
- Multiple chunks arrive simultaneously in batches
- Streaming appears "bursty" rather than smooth
- Poor user experience compared to direct Bedrock converse_stream calls
Additional Context
No response
Possible Solution
No response
Related Issues
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working