
Building AI Agents with Strands: A Hands-On Tutorial Series
Follow this hands-on journey and learn how to build AI agents using the open source Strands Agents SDK.
Dennis Traub
Amazon Employee
Published May 21, 2025
Last Modified May 27, 2025
Welcome to this hands-on tutorial series on building AI agents with the Strands Agents SDK!
Artificial Intelligence is rapidly evolving, and AI Agents are at the forefront of this revolution. These intelligent systems can understand context, make decisions, use tools, and collaborate to perform complex tasks, moving beyond simple question-answering systems.
If you're a developer interested in creating intelligent agents powered by foundation models like Claude, GPT, or Llama, you've come to the right place.
Throughout this series, we'll progressively build an Integrated Learning Lab ā a practical application that demonstrates key Strands Agents concepts and features in a cohesive project.
I'll be using Amazon Bedrock as our primary foundation model provider, though one of the strengths of Strands Agents is its flexibility to work with various providers including Anthropic, LiteLLM, Ollama, and Llama API. We'll explore some of these alternatives in later tutorials.
š§āš» No time for explanations? Want to jump right in? Here are the parts that I've already published:
- And there's more to come!
The Strands Agents SDK is a lightweight, code-first framework that simplifies the process of building intelligent agents. It provides:
- A straightforward agent loop that handles complex interactions
- Support for Amazon Bedrock, Anthropic, Llama, Ollama, and custom providers
- A robust system for building and integrating tools to extend agent capabilities
- Native support for Model Context Protocol (MCP) servers, enabling access to thousands of pre-built tools
- Advanced patterns like multi-agent systems and autonomous workflows
- Built-in security capabilities for responsible AI development
This last point is particularly important ā as AI systems become more powerful, ensuring they operate safely and responsibly is increasingly critical. The Strands Agents SDK includes features for guardrails, prompt security, and responsible tool design that we'll explore throughout this series.
While I have a general roadmap for this series, it may evolve as I continue experimenting with the SDK. Here's my current plan for the topics we'll cover:
š Foundations: Creating Your First Agent
Setting up the SDK and building a simple agent that will be a subject expert for our learning lab.
Setting up the SDK and building a simple agent that will be a subject expert for our learning lab.
āļø Tool Integration: Enhancing Agent Capabilities
Creating custom tools that extend our agent's abilities beyond just simple conversation.
Creating custom tools that extend our agent's abilities beyond just simple conversation.
š Model Context Protocol: Integrate Your Agent with MCP
Exploring the Model Context Protocol (MCP) to connect our agent with external capabilities.
Exploring the Model Context Protocol (MCP) to connect our agent with external capabilities.
š„ļø Alternative Model Providers and Local Development with Ollama
Setting up local model deployment for development and testing environments.
Setting up local model deployment for development and testing environments.
š§ Conversation Management & Memory (upcoming)
Implementing state tracking and persistence for contextual awareness.
Implementing state tracking and persistence for contextual awareness.
š”ļø Security Deep Dive (upcoming)
Exploring core security principles for AI agents, including guardrails and prompt security.
Exploring core security principles for AI agents, including guardrails and prompt security.
š Simple Multi-Agent Patterns: Agents as Tools (upcoming)
Creating a multi-agent system with an orchestrator coordinating specialized agents.
Creating a multi-agent system with an orchestrator coordinating specialized agents.
š Advanced Multi-Agent Systems: Swarms and Graphs (upcoming)
Diving into agent swarms and graphs for more sophisticated applications.
Diving into agent swarms and graphs for more sophisticated applications.
š Observability, Testing & Evaluation (upcoming)
Adding logging, tracing, metrics, and testing to understand and improve performance.
Adding logging, tracing, metrics, and testing to understand and improve performance.
āļø Deployment Options (upcoming)
Deploying agents to production using AWS Lambda, Fargate, or other environments.
Deploying agents to production using AWS Lambda, Fargate, or other environments.
š„ Human-in-the-Loop Integration (upcoming)
Implementing review mechanisms and feedback loops combining AI with human oversight.
Implementing review mechanisms and feedback loops combining AI with human oversight.
This series is designed for developers who:
- Have basic familiarity with Python programming
- Are interested in practical applications of LLMs and generative AI
- Want to learn through hands-on, code-focused examples
- Prefer building real systems over theoretical discussions
In our first tutorial, we'll set up the Strands Agents SDK and create a simple Subject Expert agent. You'll see how quickly we can go from zero to a functional AI agent with remarkably few lines of code.
Ready to get started? Continue to Part 1: Creating Your First Agent.
Note: This series focuses on practical implementation. If you're interested in the theoretical concepts behind LLMs and agent systems, I'll include suggested resources at the end of each post.
Ā
Ā
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.