Use Python and the Strands library to create very low-code agents that interact with AWS Bedrock models and services. I'll also use the built-in Strands tools to give the agent more capabilities to: make HTTP calls, lookup the current time, and make AWS CLI calls.
I'm using VS Code with the AWS and Python extensions to keep things easy.
- AWS Console
- Request specific Bedrock model access. Be aware that most models are in
us-east-1
region currently. - Get the "Model ID" string from the Bedrock "Model catalog"
- Request specific Bedrock model access. Be aware that most models are in
- VS Code environment
- Create a python venv in the VS code workspace and activate it
- Install Strands Agents SDK and tools
pip install strands-agents strands-agents-tools
- Install the required model dependency
pip install 'strands-agents[anthropic]'
Open the Python scripts and click the button "Run Python File". Agent output will be sent to the local terminal.