File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import os
44from typing import Any
55
6+ from botocore .config import Config
67from strands import Agent
78from strands .models import BedrockModel
89from mcp_clients import (
@@ -64,10 +65,17 @@ def main() -> None:
6465 )
6566
6667 # Create Bedrock model
68+ retry_config = Config (
69+ retries = {
70+ "max_attempts" : 10 ,
71+ "mode" : "standard" ,
72+ }
73+ )
6774 bedrock_model = BedrockModel (
6875 model_id = "us.anthropic.claude-3-7-sonnet-20250219-v1:0" ,
6976 region_name = "us-west-2" ,
7077 streaming = False ,
78+ boto_client_config = retry_config ,
7179 )
7280
7381 # Create agent with MCP tools
Original file line number Diff line number Diff line change 33import os
44from typing import Any
55
6+ from botocore .config import Config
67from strands import Agent
78from strands .models import BedrockModel
89from mcp_clients import (
@@ -63,10 +64,17 @@ def main() -> None:
6364 )
6465
6566 # Create Bedrock model
67+ retry_config = Config (
68+ retries = {
69+ "max_attempts" : 10 ,
70+ "mode" : "standard" ,
71+ }
72+ )
6673 bedrock_model = BedrockModel (
6774 model_id = "us.anthropic.claude-3-7-sonnet-20250219-v1:0" ,
6875 region_name = "us-west-2" ,
6976 streaming = False ,
77+ boto_client_config = retry_config ,
7078 )
7179
7280 # Create agent with MCP tools
You can’t perform that action at this time.
0 commit comments