This guide will help you understand the basic concepts of Strands Agents and get you up and running with your first agent.
- Python 3.10 or later
- AWS account configured with appropriate permissions
- Basic understanding of Python programming
Install Strands Agents and the tools package using pip:
pip install strands-agents strands-agents-toolsStrands Agents is a framework for building AI agents that can interact with AWS services and perform complex tasks. The key components are:
- Agent: The core component that manages the conversation and orchestrates tools
- Model: The underlying LLM (Large Language Model) that powers the agent
- Tools: Functions that the agent can use to perform specific tasks
- Sessions and State: Mechanisms for maintaining conversation history and agent state across interactions
- Agent Loop: The process flow of how agents receive input, process it, and generate responses
- Context Management: How agents maintain and manage conversation context, including memory and retrieval
The 01-first-agent.ipynb notebook in this directory provides a comprehensive guide with code examples for:
- Creating a Simple Agent: Learn how to initialize a basic agent with a system prompt
- Adding Tools: Discover how to enhance your agent with built-in and custom tools
- Configuring Logging: Set up proper logging for debugging and monitoring
- Customizing the Agent: Choose different models and configure their parameters
This folder contains a getting-started notebook and a simple usecase to help you get started:
- 01-first-agent.ipynb: A Jupyter notebook with a comprehensive quickstart guide and a usecase.
Here we'll build:

and a Recipe Agent:
- 02-simple-interactive-usecase/: A directory containing a simple interactive cooking/Recipe agent to be run via the CLI.
To run the interactive agent:
- Navigate to the directory:
cd 02-simple-interactive-usecase - Install the requirements:
pip install -r requirements.txt - Run the script:
python recipe_bot.py
- Explore the Strands documentation for more detailed guides
- Learn more about Sessions and State
- Understand the Agent Loop
- Dive into Context Management
- Check out the strands-agents-tools repository for pre-implemented tools
- Try building your own task-specific agent by customizing the system prompt and adding relevant tools
Happy building with Strands Agents! 🚀
