You can enable code interpretation in the Amazon Bedrock console when you create or update your agent. If you are using API or SDKs, you can enable code interpretation when you create or update action group.
To learn how to enable code interpretation in Amazon Bedrock, choose the tab for your preferred method, and then follow the steps:
To enable code interpretation for your agent
-
If you're not already in the agent builder, do the following:
-
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
-
-
Go to Additional settings and expand the section.
-
For Code Interpreter, select Enable.
-
Make sure to first Save and then Prepare to apply the changes you have made to the agent before testing it.