<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abhinav Kantamaneni</title>
    <description>The latest articles on DEV Community by Abhinav Kantamaneni (@abhinav_2510).</description>
    <link>https://dev.to/abhinav_2510</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3567746%2F52cc1bdd-b8b1-4a8b-9755-f58d02bbd827.png</url>
      <title>DEV Community: Abhinav Kantamaneni</title>
      <link>https://dev.to/abhinav_2510</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhinav_2510"/>
    <language>en</language>
    <item>
      <title>Getting Started with Strands Agents: A Simple Guide to Building AI Agents the Easy Way</title>
      <dc:creator>Abhinav Kantamaneni</dc:creator>
      <pubDate>Wed, 15 Oct 2025 22:53:30 +0000</pubDate>
      <link>https://dev.to/abhinav_2510/getting-started-with-strands-agents-a-simple-guide-to-building-ai-agents-the-easy-way-976</link>
      <guid>https://dev.to/abhinav_2510/getting-started-with-strands-agents-a-simple-guide-to-building-ai-agents-the-easy-way-976</guid>
      <description>&lt;h1&gt;
  
  
  Getting Started with Strands Agents: A Beginner-Friendly Guide
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In May 2025, AWS released &lt;strong&gt;Strands Agents&lt;/strong&gt;, an open-source SDK that makes it easier to build autonomous AI agents. Instead of wiring up complex flows, Strands uses a &lt;strong&gt;model-first&lt;/strong&gt; approach: the language model plans, reasons, and calls tools. You focus on three things: a &lt;strong&gt;model&lt;/strong&gt;, a &lt;strong&gt;prompt&lt;/strong&gt;, and a &lt;strong&gt;set of tools&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This post explains what that means, when to use it, and how to spin up a simple chatbot.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Strands Agents Matter
&lt;/h2&gt;

&lt;h3&gt;
  
  
  From Workflow-Driven to Model-Driven
&lt;/h3&gt;

&lt;p&gt;Traditional agent frameworks (e.g., LangChain, Semantic Kernel) let you connect LLMs to tools but often require you to design the &lt;em&gt;workflow&lt;/em&gt; (chains/graphs, branching, retries).&lt;br&gt;
With Strands, you provide the essentials and the model handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;when to call a tool&lt;/li&gt;
&lt;li&gt;how to combine tools&lt;/li&gt;
&lt;li&gt;how many steps to take&lt;/li&gt;
&lt;li&gt;when to stop&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Multi-Model and Provider Flexibility
&lt;/h3&gt;

&lt;p&gt;Although built by AWS, Strands can run with multiple providers (e.g., Bedrock/Claude, Anthropic, Llama, Ollama, LiteLLM, custom backends). You can switch models without re-architecting.&lt;/p&gt;
&lt;h3&gt;
  
  
  Built-In Tools and MCP
&lt;/h3&gt;

&lt;p&gt;Define tools with a simple Python &lt;code&gt;@tool&lt;/code&gt; decorator. Strands also supports &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt; so you can plug in external tool servers without custom glue code.&lt;/p&gt;
&lt;h3&gt;
  
  
  Production-Ready by Design
&lt;/h3&gt;

&lt;p&gt;Strands includes tracing, metrics, structured logs, and robust error handling (rate limits, context overflows). The same code can run locally or on Lambda, Fargate, EC2, and on-prem.&lt;/p&gt;
&lt;h3&gt;
  
  
  Multi-Agent Patterns
&lt;/h3&gt;

&lt;p&gt;Use &lt;strong&gt;agent-as-tool&lt;/strong&gt; to let one agent call another. Build cooperative teams or autonomous loops that learn and adapt over time.&lt;/p&gt;


&lt;h2&gt;
  
  
  When to Use (and When Not To)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Use Strands Agents if you:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;prefer model-driven reasoning over hand-built orchestration&lt;/li&gt;
&lt;li&gt;are in the AWS ecosystem (Bedrock, Lambda, Step Functions, Fargate)&lt;/li&gt;
&lt;li&gt;want the freedom to switch model providers later&lt;/li&gt;
&lt;li&gt;need observability (tracing/logs/retries) out of the box&lt;/li&gt;
&lt;li&gt;plan to use tools/APIs or connect MCP servers&lt;/li&gt;
&lt;li&gt;are exploring multi-agent systems or autonomous loops&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Maybe skip Strands if you:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;have deterministic, fixed workflows (simple ETL, rule engines)&lt;/li&gt;
&lt;li&gt;don’t need planning/reasoning and a basic script would do&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Install
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install strands-agents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;em&gt;Or with UV:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uv add strands-agents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Configure AWS Credentials (for Bedrock by default)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws configure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Provide your &lt;strong&gt;Access Key&lt;/strong&gt;, &lt;strong&gt;Secret Key&lt;/strong&gt;, &lt;strong&gt;default region&lt;/strong&gt; (e.g., &lt;code&gt;us-east-1&lt;/code&gt;), and &lt;strong&gt;output&lt;/strong&gt; (&lt;code&gt;json&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Verify:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws sts get-caller-identity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;If you’re using Bedrock models (e.g., Claude), ensure model access is enabled in your AWS account.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Your First Strands Chatbot
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;strands&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Agent&lt;/span&gt;

&lt;span class="c1"&gt;# Choose a model you have access to in your account/region
&lt;/span&gt;&lt;span class="n"&gt;agent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;global.anthropic.claude-sonnet-4-5-20250929-v1:0&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Strands Chatbot — type &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;exit&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; to quit&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;user_input&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;input&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;You: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;user_input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;exit&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Goodbye!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;break&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;user_input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Please enter a message.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;

        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;Agent: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;flush&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;KeyboardInterrupt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;Goodbye!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  How It Works (In Plain English)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;You&lt;/strong&gt; provide the model, a prompt (system/user context), and optional tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The model&lt;/strong&gt; decides whether to call a tool, how to combine tools, and when to iterate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strands&lt;/strong&gt; captures traces/logs, handles retries, and passes outputs back to you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You&lt;/strong&gt; deploy the same code to local dev, Lambda, Fargate, or EC2.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Tools, MCP, and Extensions
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Define tools with a Python decorator (HTTP calls, DB queries, Python functions).&lt;/li&gt;
&lt;li&gt;Connect external capabilities using &lt;strong&gt;MCP&lt;/strong&gt; so agents can talk to standardized tool servers.&lt;/li&gt;
&lt;li&gt;Add guardrails, validation, and safety checks around tool IO as needed.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Deployment Options
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Local&lt;/strong&gt;: fastest iteration for prototypes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS Lambda&lt;/strong&gt;: event-driven, serverless&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS Fargate&lt;/strong&gt;: containerized long-running agents&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon EC2 / On-prem&lt;/strong&gt;: full control over runtime and networking&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  FAQs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do I need AWS?&lt;/strong&gt;&lt;br&gt;
No, Strands can work with other model providers. AWS Bedrock is just the default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I switch models later?&lt;/strong&gt;&lt;br&gt;
Yes. Change the &lt;code&gt;model&lt;/code&gt; string or provider settings; keep the rest of your agent code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it good for strict, step-by-step workflows?&lt;/strong&gt;&lt;br&gt;
If your flow is fixed and simple, a traditional orchestrator or script might be better.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Strands Agents simplify agent development by letting models &lt;strong&gt;orchestrate the logic&lt;/strong&gt;. You get multi-provider flexibility, production-grade observability, and powerful extensions (tools + MCP). If you want less boilerplate and more results, the model-first path is a strong default.&lt;/p&gt;




</description>
      <category>ai</category>
      <category>tutorial</category>
      <category>aws</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
