Skip to content

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 invoke the AWS CLI

Notifications You must be signed in to change notification settings

thecodebeneath/bedrock-strands-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple AWS Bedrock Agents

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.

Ref: https://strandsagents.com/latest/documentation/docs/user-guide/concepts/model-providers/amazon-bedrock/

I'm using VS Code with the AWS and Python extensions to keep things easy.

Prereqs:

  1. AWS Console
    1. Request specific Bedrock model access. Be aware that most models are in us-east-1 region currently.
    2. Get the "Model ID" string from the Bedrock "Model catalog"
  2. VS Code environment
    1. Create a python venv in the VS code workspace and activate it
    2. Install Strands Agents SDK and tools
      pip install strands-agents strands-agents-tools
      
    3. Install the required model dependency
      pip install 'strands-agents[anthropic]'
      

Run the Agents from VS Code

Open the Python scripts and click the button "Run Python File". Agent output will be sent to the local terminal.

About

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 invoke the AWS CLI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages