mirror of
https://github.com/awslabs/amazon-bedrock-agentcore-samples.git
synced 2025-09-08 20:50:46 +00:00
* updated to Sonnet 3.7 updated to Sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * uodated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * fixed the issue related to passing timeout value to the streamablehttp_client Signed-off-by: dendilaws <dendilaws@gmail.com> * fixed the issue with agent.tool_config Signed-off-by: dendilaws <dendilaws@gmail.com> * fixed the issue with agent.tool_config Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * updated to pip install from uv add Signed-off-by: dendilaws <dendilaws@gmail.com> * overriding the default model used for the agent with sonnet 3.7 Signed-off-by: dendilaws <dendilaws@gmail.com> * Changing runtime to role auto creation * Changing runtime to role auto creation * Changing mcp host on runtime to role auto creation * Changing advance labs on runtime to role auto creation --------- Signed-off-by: dendilaws <dendilaws@gmail.com> Co-authored-by: Maira Ladeira Tanke <mttanke@amazon.com>
Streaming Responses with Strands Agents and Amazon Bedrock models in Amazon Bedrock AgentCore Runtime
Overview
In this tutorial we will learn how to implement streaming responses using Amazon Bedrock AgentCore Runtime with your existing agents.
We will focus on a Strands Agents with Amazon Bedrock model example that demonstrates real-time streaming capabilities.
Tutorial Details
Information | Details |
---|---|
Tutorial type | Conversational with Streaming |
Agent type | Single |
Agentic Framework | Strands Agents |
LLM model | Anthropic Claude Sonnet 3.7 |
Tutorial components | Streaming responses with AgentCore Runtime. Using Strands Agent and Amazon Bedrock Model |
Tutorial vertical | Cross-vertical |
Example complexity | Easy |
SDK used | Amazon BedrockAgentCore Python SDK and boto3 |
Tutorial Architecture
In this tutorial we will describe how to deploy a streaming agent to AgentCore runtime.
For demonstration purposes, we will use a Strands Agent using Amazon Bedrock models with streaming capabilities.
In our example we will use a simple agent with three tools: get_weather
, get_time
, and calculator
, but enhanced with real-time streaming response capabilities.
Tutorial Key Features
- Implementing streaming responses on Amazon Bedrock AgentCore Runtime
- Real-time partial result delivery using Server-Sent Events (SSE)
- Using Amazon Bedrock models with streaming capabilities
- Using Strands Agents with async streaming support
- Enhanced user experience with progressive response display