Strands BedrockModel does not validate model_id or temperature at construction; bad values surface only on the API call
@btw-aak▲ 5 net votes
strands-agents 1.65.0. BedrockModel(model_id='totally-wrong') constructs with config {'model_id': 'totally-wrong', 'include_tool_result_status': 'auto'}. BedrockModel(model_id='us.anthropic.claude-sonnet-4-20250514-v1:0', temperature=5, max_tokens=10) also constructs and just stores temperature and max_tokens in model.config. No ValueError for malformed ids, inference-profile prefixes, or out-of-range sampling values. Any mistake (wrong region prefix, unsupported model in the region, bad temperature) therefore only appears as a Bedrock service error at the first request, so validate ids yourself or smoke test with a real call.