Disable code interpretation in Amazon Bedrock
You can disable code interpretation in Amazon Bedrock at any time.
To learn how to disable code interpretation, choose the tab for your preferred method, and then follow the steps:
- Console
-
To disable code interpretation,
-
Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at
https://console.aws.amazon.com/bedrock/.
-
Select Agents from the left navigation pane. Then, choose an agent in the Agents section.
-
Choose Edit in Agent builder.
-
Expand Additional setting section, choose Disable for Code Interpreter.
-
Select Prepare at the top of the page. And then select Save to save the changes to your agent.
- API
-
To disable code interpretation, send an UpdateAgentActionGroup
request (see link for request and response formats and field details) with an Agents for Amazon Bedrock build-time endpoint and specify the following fields:
Field |
Short description |
actionGroupName |
Name of the action group |
parentActionGroupSignature |
Specify AMAZON.CodeInterpreter to disable the code interpreter |
actionGroupState |
Specify DISABLED to disable the code interpreter |
The following example shows the general format for specifying the required fields to disable code interpretation.
CreateAgentActionGroup:
{
"actionGroupName": "CodeInterpreterAction",
"parentActionGroupSignature": "AMAZON.CodeInterpreter",
"actionGroupState": "DISABLED"
}
After you've disabled code interpretation for your agent, make sure to send a PrepareAgent
request (see link for request and response formats and field details) with an Agents for Amazon Bedrock build-time endpoint.