I have this agent that creates new code. This code usually involves using boto3. And sometimes, the agent decides to run the code on its code interpreter sandbox. When it does, it fails because boto3 is not installed and tries another approach, but the code it created might be good, so I want it to be able to run the code.
I would like to know how I can solve this. Maybe there is a way to customize the managed code interpreter. Maybe I need to use a Bedrock flow. Or something else.
Please, does anyone know how to solve this issue?
Thanks!
Roger