@@ -189,6 +189,7 @@ async def test_host_google(echo_tool_stdio_config: dict[str, ServerConfig]) -> N
189
189
@pytest .mark .asyncio
190
190
async def test_bedrock (echo_tool_stdio_config : dict [str , ServerConfig ]) -> None :
191
191
"""Test the host context initialization."""
192
+ # claude-3-7-sonnet
192
193
if (key_id := environ .get ("BEDROCK_ACCESS_KEY_ID" )) and (
193
194
access_key := environ .get ("BEDROCK_SECRET_ACCESS_KEY" )
194
195
):
@@ -214,6 +215,32 @@ async def test_bedrock(echo_tool_stdio_config: dict[str, ServerConfig]) -> None:
214
215
215
216
await _run_the_test (config )
216
217
218
+ # claude-sonnet-4
219
+ if (key_id := environ .get ("BEDROCK_ACCESS_KEY_ID" )) and (
220
+ access_key := environ .get ("BEDROCK_SECRET_ACCESS_KEY" )
221
+ ):
222
+ token = environ .get ("BEDROCK_SESSION_TOKEN" )
223
+ config = HostConfig (
224
+ llm = LLMBedrockConfig (
225
+ model = "us.anthropic.claude-sonnet-4-20250514-v1:0" ,
226
+ model_provider = "bedrock" ,
227
+ credentials = Credentials (
228
+ access_key_id = SecretStr (key_id ),
229
+ secret_access_key = SecretStr (access_key ),
230
+ session_token = SecretStr (token or "" ),
231
+ ),
232
+ region = "us-east-1" ,
233
+ ),
234
+ mcp_servers = echo_tool_stdio_config ,
235
+ )
236
+ else :
237
+ pytest .skip (
238
+ "need environment variable BEDROCK_ACCESS_KEY_ID,"
239
+ " BEDROCK_SECRET_ACCESS_KEY, BEDROCK_SESSION_TOKEN to run this test"
240
+ )
241
+
242
+ await _run_the_test (config )
243
+
217
244
218
245
@pytest .mark .asyncio
219
246
async def test_mistralai (echo_tool_stdio_config : dict [str , ServerConfig ]) -> None :
0 commit comments