You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explore easy-to-use examples to get started with Strands Agents.
The examples in this repository are for demonstration and educational purposes only. They demonstrate concepts and techniques but are not intended for direct use in production. Always apply proper security and testing procedures before using in production environments.
Quick Start
Python
Prerequisites:
Python 3.10 or higher
pip package manager
Verify with: pip --version or pip3 --version
Usually comes bundled with Python 3.4+ installers from python.org
If pip is missing, install using one of these methods:
# Method 1 - Use Python's built-in module
python -m ensurepip --upgrade
# Method 2 - Download and run the official installer
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Step 1: Create Virtual Environment
# Create virtual environment
python -m venv venv
# Activate virtual environment# On macOS/Linux:source venv/bin/activate
# On Windows:
venv\Scripts\activate
Step 2: Install
pip install strands-agents strands-agents-tools
Your First Agent:
fromstrandsimportAgentagent=Agent()
response=agent("Hello! Tell me a joke.")
print(response)
import{Agent}from"@strands-agents/sdk";asyncfunctionmain(){constagent=newAgent({systemPrompt: "You are a helpful assistant."});constresponse=awaitagent.invoke("Hello! Tell me a joke.");console.log(response.toString());}main();