{
"messages": [
{
"role": "user",
"content": []
}
],
"system": [
{
"text": "Your prompt",
}
],
"modelId": "us.anthropic.claude-sonnet-4-20250514-v1:0",
"inferenceConfig": {
"topP": 1,
"temperature": 0,
"maxTokens": 1024
}
}
region_name=function_kwargs.pop("aws_region", "us-east-1"),
aws_access_keyaws_secret_keyandaws_regionbeing expected by theamazon_bedrock_requestfunction inutils.py. if you look at thellm_kwargsfield of a template you getutils.pycannot completely take the configuration from your aws credentials file because region always defaults tous-east-1. If you have your bedrock in another region the sdk will never work. this is caused by the following line which defaults tous-east-1if region is not provided by the template