Agentic AI Design Patterns Introduction and walkthrough | Amazon Web Services

Amazon Web Services · Beginner ·🤖 AI Agents & Automation ·1y ago

Key Takeaways

The video introduces four foundational design patterns in agentic AI systems, including reflection, tool use, planning, and multi-agent collaboration, using tools such as Amazon Bedrock and LLM power tools.

Full Transcript

Hi everyone, welcome to the session. Agentic AI is a rapidly evolving space and it will fundamentally reshape how we work across processes, team dynamics and entire industries. I'm Romeshalla joined by my colleague Praep Sridtheran. We are both solutions architects working at AWS and in this session we will learn more about the foundational design patterns for agentic AI systems. Let's start by understanding what agentic AI means and where does it fit in the generative AI landscape. The evolution of generative AI has followed a clear progression with each phase bringing new priorities and challenges for businesses. In the past, AI models used to be trained on specific data sets to solve specific problems. That required a lot more human oversight to see if the AI was getting it right. As we continue to evolve towards a fully realized agentic world, intelligent multi- aent systems will make complex decisions and coordinate effortlessly with less human oversight, completely transforming the way we work and innovate. AI agents are autonomous software systems that have the ability to think iteratively, to evaluate results, adjust their approach, and continue working towards a defined goal. They don't just answer questions. They solve problems through a process of exploration and refinement. At its core, agentic AI refers to AI systems leveraging distributed intelligent agents that not only act independently but also collaborate to solve highly complex real world problems. Agentic AI workflows represent a significant leap forward and a paradigm shift in AI systems design with features including autonomy, adaptability, and decision making. At the core of agentic AI workflows are key design patterns that enable large language models to exhibit more autonomous and intelligent behavior. These key design patterns are reflection, tool use, planning, and multi-agent. Reflection enhances AI's ability to evaluate and improve its own outputs. Through this, AI can provide more accurate and reliable results. The tool use pattern enables AI to expand its capabilities by utilizing external tools and resources. Planning pattern is particularly useful for managing long-term projects and solving complex problems. In multi- aent pattern, multiple AI agents collaborate to perform complex tasks. Each agent takes on specific roles to contribute to achieving the overall objective. Let's now dive deeper into each of these design patterns. Reflection is a technique where AI models self-evaluate and refine their own outputs. This pattern enables AI models to become more autonomous, creative, and reliable by mimicking human-like feedback and revision loops. It is particularly useful for large language models, allowing them to catch mistakes, clarify ambiguities, and improve over multiple iterations. This pattern involves generation where the AI model generates an initial response to a given prompt or task. Self-reflection where the model scrutinizes its output identifying potential errors, inconsistencies or areas for improvement. Iterative refinement where based on the self assessment, the model iteratively refineses its output making adjustments to enhance its quality and accuracy. Let's look at an example implementation of the reflection pattern using Amazon Bedrock. Amazon Bedrock is a fully managed service that offers a choice of high-erforming foundation models, making it easy to build and scale generative AI applications. In this architecture diagram, you can see the two core steps of the reflection pattern, initial generation and self-evaluation. The first AI model solves the initial problem and provides the output and the second AI model validates the solution demonstrating how AI can self-evaluate its results. Moving on to the tool use pattern. This pattern enables large language models to transcend their natural limitations by interacting with external functions to gather information, perform actions, or manipulate data through tool use. Large language models are not just confined to producing text responses from their pre-trained knowledge. They can now access external sources and functions to gather latest information, process data or update systems. The diagram depicts a conceptual agentic AI tool use pattern where AI system uses multiple specialized tools to process user queries by accessing various information sources. Let's look at an example implementation of the tool use pattern using Amazon Bedrock. In this architecture diagram, the tool use pattern enables fetching data from various internal and external sources and enables real-time lookup of contextual information to solve complex and realistic problems. Thanks. I'll now hand it over to Praep to continue diving into the remaining design patterns. Hello all, my name is Praep Sridan, senior solutions architect at AWS and today I'll continue from Romesh on the next two foundational AI patterns. The pattern number three is called planning pattern. Now planning pattern is an approach that allows large language models to break down complex multi-step task into smaller manageable chunks instead of attacking the problem randomly. The LM first creates a structured road map and then efficiently executes the road map adapting as it emerges. To give an example, this would be like when coding the LLM would create the overall structure of the final result instead of writing individual functions. This method ensures clarity, prevents confusion and keeps the system focused on the broader goal through execution. We can systematically think of planning as four steps. The first step is task decomposition. In task decomposition, the LLM takes a task and breaks down into manageable subtasks. And once this is done, then we do what is called a strategic structuring where systematically organizes steps for goal achievement. Then efficient execution executes a task and monitors the progress and flexible adjustments and modifies and adapts plans as needed. So by breaking large tasks into smaller task the able to provide more clarity and stay focused on the broader goal instead of getting mired into details. This is another view of the same pattern. So would first generate task and then execute to through tool use methodology then compile and provide the results back. Let's look at the multi- aent collaboration. Now this is a fairly popular and well understood pattern now but it's also probably one of the most powerful patterns available. The idea with MAC pattern or multi-agent collaboration pattern is to build the concept of delegation. You can within an organization build specialized agents. For example, as mentioned here, you can build a new modage agent and a mortgage domain knowledge base and have a supervisor agent then delegate some of the tasks to this sub agents and then get the task executed. The sub agents can operate independently but also communicate with each other to collaborate to achieve a unified goal. This pattern is especially powerful for complex use cases requiring diverse expertise, parallel processing, brainstorming such as research projects. There are several types of multi-agent patterns, right? There are collaborative agents. Each agents work on different task as part of sharing progress towards unified results. Supervised agents. A central supervisor manages and coordinates the agents verifying the outputs and supervisor tool calling. Here the supervisory agent uses LLM power tools deciding which agent to call and what argument to pass. So there are quite a few hybrid models available with multi- aent collaboration but generally speaking you know when you start constructing an agent you want to kind of think in terms of a coarse grain micros service right and look at carve out individual functionality that could be a standalone agent and then see how you can delegate it across by using a supervisor agent. If you look at some of the steps involved, we can talk about task division which is essentially the supervisor agent takes care of decomposing the complex problem into smaller task and then specialization. It identifies which agent to call for the particular task. Collaboration agents can exchange information and share results and this can happen in federally among the agents or through the supervisor and the supervisor can then combine the results to provide the final output to the user. And this is another view. You can have a finance analyzer agent a portfolio architect. And this one shows more like a collaboration pattern more than a supervised pattern because all of them are at the same level. But you get the idea having multi- aents kind of collaborating and providing a useful result to the end user. As we are building applications with generative AI, it's important to follow patterns because pattern gives you a foundational element and then how we can reuse. Thanks for listening to this video. Have a good day.

Original Description

The video explores four foundational design patterns in agentic AI systems: reflection, tool use, planning, and multi-agent collaboration. These patterns represent the evolution of AI from basic problem-solving to sophisticated autonomous systems capable of making complex decisions with minimal human oversight. Through practical examples using Amazon Bedrock, the video demonstrates how AI agents can self-evaluate, utilize external tools, break down complex tasks, and collaborate effectively. The presentation emphasizes how these patterns enable AI systems to work independently and cooperatively while adapting to various challenges, ultimately transforming traditional work processes and industry operations through enhanced decision-making capabilities. Subscribe to AWS: https://go.aws/subscribe Sign up for AWS: https://go.aws/signup AWS free tier: https://go.aws/free Explore more: https://go.aws/more Contact AWS: https://go.aws/contact Next steps: Explore on AWS in Analyst Research: https://go.aws/reports Discover, deploy, and manage software that runs on AWS: https://go.aws/marketplace Join the AWS Partner Network: https://go.aws/partners Learn more on how Amazon builds and operates software: https://go.aws/library Do you have technical AWS questions? Ask the community of experts on AWS re:Post: https://go.aws/3lPaoPb Why AWS? Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud. Millions of customers—including the fastest-growing startups, largest enterprises, and leading government agencies—use AWS to be more agile, lower costs, and innovate faster. #AWS #AmazonWebServices #CloudComputing
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Amazon Web Services · Amazon Web Services · 1 of 60

← Previous Next →
Agentic AI Design Patterns Introduction and walkthrough | Amazon Web Services
Agentic AI Design Patterns Introduction and walkthrough | Amazon Web Services
Amazon Web Services
2 Galileo on modernizing on banking infrastructure | Amazon Web Services
Galileo on modernizing on banking infrastructure | Amazon Web Services
Amazon Web Services
3 Alliander Speeds Innovation and Energy Transition Using AWS | Amazon Web Services
Alliander Speeds Innovation and Energy Transition Using AWS | Amazon Web Services
Amazon Web Services
4 AWS and Scuderia Ferrari HP streamline F1 power unit assembly | Amazon Web Services
AWS and Scuderia Ferrari HP streamline F1 power unit assembly | Amazon Web Services
Amazon Web Services
5 How AWS machine learning supports Scuderia Ferrari HP pit stops | Amazon Web Services
How AWS machine learning supports Scuderia Ferrari HP pit stops | Amazon Web Services
Amazon Web Services
6 Nasdaq Builds Market Infrastructure of the Future with AWS | Amazon Web Services
Nasdaq Builds Market Infrastructure of the Future with AWS | Amazon Web Services
Amazon Web Services
7 AWS Security Hub Exposure Findings | Amazon Web Services
AWS Security Hub Exposure Findings | Amazon Web Services
Amazon Web Services
8 How do I use Session Manager port forwarding to connect to my EC2 instance through RDP?
How do I use Session Manager port forwarding to connect to my EC2 instance through RDP?
Amazon Web Services
9 How do I extend an EBS volume with LVM partitions?
How do I extend an EBS volume with LVM partitions?
Amazon Web Services
10 AWS Graviton makes it easy to optimize performance, cost, and sustainability | Amazon Web Services
AWS Graviton makes it easy to optimize performance, cost, and sustainability | Amazon Web Services
Amazon Web Services
11 Run Cloud Adoption Framework workshops with Miro | Amazon Web Services
Run Cloud Adoption Framework workshops with Miro | Amazon Web Services
Amazon Web Services
12 Getting Started with AWS Cost Optimization Hub | Amazon Web Services
Getting Started with AWS Cost Optimization Hub | Amazon Web Services
Amazon Web Services
13 Why did my Amazon SQS messages get sent to a dead-letter queue?
Why did my Amazon SQS messages get sent to a dead-letter queue?
Amazon Web Services
14 Declarative Policies for EC2 | Amazon Web Services
Declarative Policies for EC2 | Amazon Web Services
Amazon Web Services
15 How do I troubleshoot IAM permission issues for the Billing and Cost Management console?
How do I troubleshoot IAM permission issues for the Billing and Cost Management console?
Amazon Web Services
16 Integrity at Scale: Inside the Flo Health Mission | Amazon Web Services
Integrity at Scale: Inside the Flo Health Mission | Amazon Web Services
Amazon Web Services
17 Fueling Success: Small shifts, powerful performance | Amazon Web Services
Fueling Success: Small shifts, powerful performance | Amazon Web Services
Amazon Web Services
18 WEX enhances customer experience with AI-powered chatbot | Amazon Web Services
WEX enhances customer experience with AI-powered chatbot | Amazon Web Services
Amazon Web Services
19 Accelerate troubleshooting with Amazon CloudWatch investigations | Amazon Web Services
Accelerate troubleshooting with Amazon CloudWatch investigations | Amazon Web Services
Amazon Web Services
20 Why is my Windows WorkSpace stuck in the starting, rebooting, or stopping status?
Why is my Windows WorkSpace stuck in the starting, rebooting, or stopping status?
Amazon Web Services
21 Telemetry Pipelines for AI | Amazon Web Services
Telemetry Pipelines for AI | Amazon Web Services
Amazon Web Services
22 Getting Control over Security and Observability Data | Amazon Web Services
Getting Control over Security and Observability Data | Amazon Web Services
Amazon Web Services
23 The Problem with Telemetry Data Volume | Amazon Web Services
The Problem with Telemetry Data Volume | Amazon Web Services
Amazon Web Services
24 Telemetry Pipelines on AWS | Amazon Web Services
Telemetry Pipelines on AWS | Amazon Web Services
Amazon Web Services
25 What are Telemetry Pipelines? | Amazon Web Services
What are Telemetry Pipelines? | Amazon Web Services
Amazon Web Services
26 Using AI for RegEx on Telemetry Pipelines | Amazon Web Services
Using AI for RegEx on Telemetry Pipelines | Amazon Web Services
Amazon Web Services
27 Multi-Session Support in the AWS Console | Amazon Web Services
Multi-Session Support in the AWS Console | Amazon Web Services
Amazon Web Services
28 How CloudHedge delivers assessment with AWS ISV Tooling Program at no cost?
How CloudHedge delivers assessment with AWS ISV Tooling Program at no cost?
Amazon Web Services
29 How customers speed up migration and modernization to AWS with CloudHedge | Amazon Web Services
How customers speed up migration and modernization to AWS with CloudHedge | Amazon Web Services
Amazon Web Services
30 Chaos Experiment with Amazon ElastiCache | Amazon Web Services
Chaos Experiment with Amazon ElastiCache | Amazon Web Services
Amazon Web Services
31 Amazon S3 Access Points: Easily manage access for shared datasets on S3 | Amazon Web Services
Amazon S3 Access Points: Easily manage access for shared datasets on S3 | Amazon Web Services
Amazon Web Services
32 ElastiCache Valkey 8.0 - Savings and Efficiency | Amazon Web Services
ElastiCache Valkey 8.0 - Savings and Efficiency | Amazon Web Services
Amazon Web Services
33 Pennymac scales document processing with AWS | Amazon Web Services
Pennymac scales document processing with AWS | Amazon Web Services
Amazon Web Services
34 AWS | Next Level Innovation | Amazon Web Services
AWS | Next Level Innovation | Amazon Web Services
Amazon Web Services
35 Driving Cloud Innovation: Mindtickle's Partnership with AWS Enterprise Support | Amazon Web Services
Driving Cloud Innovation: Mindtickle's Partnership with AWS Enterprise Support | Amazon Web Services
Amazon Web Services
36 A Leader's Edge from Executive Insights | Amazon Web Services
A Leader's Edge from Executive Insights | Amazon Web Services
Amazon Web Services
37 How do I create a custom Amazon WorkSpaces image?
How do I create a custom Amazon WorkSpaces image?
Amazon Web Services
38 Charles Leclerc tests his AI-generated race track | Amazon Web Services
Charles Leclerc tests his AI-generated race track | Amazon Web Services
Amazon Web Services
39 Redington Scales India’s Cloud Access with AWS Partnership | Amazon Web Services
Redington Scales India’s Cloud Access with AWS Partnership | Amazon Web Services
Amazon Web Services
40 How do I prevent the resources in my CloudFormation stack from getting deleted or updated?
How do I prevent the resources in my CloudFormation stack from getting deleted or updated?
Amazon Web Services
41 How do I troubleshoot authentication errors when I use RDP to connect to an EC2 Windows instance?
How do I troubleshoot authentication errors when I use RDP to connect to an EC2 Windows instance?
Amazon Web Services
42 Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Amazon Web Services
43 Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Exploring the Possibilities of Digital Twin & AI at the Edge | Amazon Web Services
Amazon Web Services
44 AWS at the FORMULA 1 AWS GRAN PREMIO DELL'EMILIA-ROMAGNA 2025 | Amazon Web Services
AWS at the FORMULA 1 AWS GRAN PREMIO DELL'EMILIA-ROMAGNA 2025 | Amazon Web Services
Amazon Web Services
45 What's new in RCPs | Amazon Web Services
What's new in RCPs | Amazon Web Services
Amazon Web Services
46 API Caching using Amazon ElastiCache | Amazon Web Services
API Caching using Amazon ElastiCache | Amazon Web Services
Amazon Web Services
47 Pendula: Amazon Nova Customer Testimonial | Amazon Web Services
Pendula: Amazon Nova Customer Testimonial | Amazon Web Services
Amazon Web Services
48 InDebted : Amazon Nova Customer Testimonial | Amazon Web Services
InDebted : Amazon Nova Customer Testimonial | Amazon Web Services
Amazon Web Services
49 Amazon DynamoDB global tables with multi-Region strong consistency | Amazon Web Services
Amazon DynamoDB global tables with multi-Region strong consistency | Amazon Web Services
Amazon Web Services
50 Siemens Mobility uses AWS to operate securely, efficiently on a global scale | Amazon Web Services
Siemens Mobility uses AWS to operate securely, efficiently on a global scale | Amazon Web Services
Amazon Web Services
51 How do I reuse a knowledge base session in Amazon Bedrock?
How do I reuse a knowledge base session in Amazon Bedrock?
Amazon Web Services
52 EP5: MBZUAI, CMU : Causal AI, Answering The “Why“ and “What if“ Questions | AWS for AI Podcast
EP5: MBZUAI, CMU : Causal AI, Answering The “Why“ and “What if“ Questions | AWS for AI Podcast
Amazon Web Services
53 Hema scales time to market developing a data mesh on AWS (Technical) - Cloud Adventures
Hema scales time to market developing a data mesh on AWS (Technical) - Cloud Adventures
Amazon Web Services
54 Hema scales time to market developing a data mesh on AWS (Business) - Cloud Adventures
Hema scales time to market developing a data mesh on AWS (Business) - Cloud Adventures
Amazon Web Services
55 How Langfuse Scaled Their AI Platform with AWS: From Open-Source to Enterprise | Amazon Web Services
How Langfuse Scaled Their AI Platform with AWS: From Open-Source to Enterprise | Amazon Web Services
Amazon Web Services
56 SLMs and LLMs: What’s the Difference? | Amazon Web Services
SLMs and LLMs: What’s the Difference? | Amazon Web Services
Amazon Web Services
57 SLMs and LLMs: When to use them? | Amazon Web Services
SLMs and LLMs: When to use them? | Amazon Web Services
Amazon Web Services
58 SLMs on CPU | Amazon Web Services
SLMs on CPU | Amazon Web Services
Amazon Web Services
59 Intelligent Model Routing | Amazon Web Services
Intelligent Model Routing | Amazon Web Services
Amazon Web Services
60 SLMs, LLMs, and Model Routing in Agents | Amazon Web Services
SLMs, LLMs, and Model Routing in Agents | Amazon Web Services
Amazon Web Services

This video introduces beginners to agentic AI design patterns, covering tool use, planning, and multi-agent collaboration, with a focus on autonomous systems and supervised learning. Viewers will learn how to apply these patterns to create sophisticated AI systems. The video uses Amazon Bedrock and LLM power tools to demonstrate key concepts.

Key Takeaways
  1. Break down complex tasks into smaller manageable chunks
  2. Create a structured road map
  3. Decompose tasks into subtasks
  4. Systematically organize steps for goal achievement
  5. Execute tasks and monitor progress
  6. Use LLM power tools for task division
  7. Implement supervised agent systems
💡 Agentic AI design patterns, such as tool use and multi-agent collaboration, can be used to create autonomous systems that make complex decisions with minimal human intervention.

Related Reads

📰
OpenAI tried to hack Hugging Face; It was SAVED by Chinese AI
Learn how a Chinese AI model saved Hugging Face from an OpenAI hack attempt during a benchmark test
Medium · AI
📰
Navigating AI’s Human-Centered Shift: Leadership and Career Plays for a Collaborative Future of…
Learn how to navigate AI's human-centered shift and discover leadership and career strategies for a collaborative future
Medium · AI
📰
Navigating AI’s Human-Centered Shift: Leadership and Career Plays for a Collaborative Future of…
Learn how to navigate AI's human-centered shift and thrive in a collaborative future
Medium · Data Science
📰
OpenAI tried to hack Hugging Face; It was SAVED by Chinese AI
Learn how a Chinese AI model saved Hugging Face from an OpenAI hack attempt during a benchmark test
Medium · LLM
Up next
This Rust AI Agent Is Insanely Fast #coding #ai
Silism
Watch →