- Newest
- Most votes
- Most comments
Change the additionalModelRequestFields with using thinking parameter
"additionalModelRequestFields": {
"thinking": {
"type": "enabled",
"budget_tokens": 1024
}
}
Please refer this blog for additional implementation details
To enable reasoning for Claude Sonnet 4 in your InlineAgent configuration, there are a few issues with your current setup that need to be addressed:
-
The reasoning configuration should be placed in the
additionalModelRequestFieldsparameter, but it needs to be structured correctly. For Claude Sonnet 4, reasoning can be enabled or disabled using a configurable token budget. -
The
basePromptTemplatevalue of '100000' appears incorrect - this should typically contain your prompt template, not a numeric value. -
Reasoning is only applied during the generation step, not during the orchestration step. Your current configuration is targeting the "ORCHESTRATION" prompt type.
Here's how you should modify your configuration:
prompt_override_configuration={
'promptConfigurations': [
{
# "foundationModel": model_id,
"parserMode": "DEFAULT",
"promptCreationMode": "DEFAULT",
"promptState": "ENABLED",
"promptType": "GENERATION", # Change from ORCHESTRATION to GENERATION
"additionalModelRequestFields": {
"anthropic_version": "bedrock-2023-05-31",
"reasoning_config": {
"enable_reasoning": True,
"reasoning_token_budget": 1024
}
},
"inferenceConfiguration": {
"maximumLength": 8000,
"temperature": 1,
"topP": 1
},
}
]
}
Key changes:
- Changed
promptTypefrom "ORCHESTRATION" to "GENERATION" since reasoning is only enabled during the generation step - Updated the reasoning configuration format to match what Claude models expect
- Added the required "anthropic_version" parameter
Note that when using reasoning models, there's a five-minute timeout limit, and the models can use up to 8192 tokens to respond to queries (including both output and thinking tokens). Also, enabling reasoning will increase latency, but it will provide more detailed step-by-step thinking for complex tasks.
Sources
Enhance model responses with model reasoning - Amazon Bedrock
Configure response generation for reasoning models and considerations - Amazon Bedrock
Introducing Claude 4 in Amazon Bedrock, the most powerful models for coding from Anthropic | AWS News Blog
answered a year ago
Relevant content
- AWS OFFICIALUpdated a year ago

Hi Ganesh,
Thank you for your response.
We reviewed the link you shared, but it appears that the solution is specific to the Converse. However, in our case, we are using the InlineAgent for our workflow, and we're currently unable to enable the Thinking Mode in this setup.
Could you please assist us with enabling this feature in InlineAgent, if you have any insights or experience with it?
Your help would be greatly appreciated.