Agentic AI - My take
Raja Saurabh Tiwari
Vice President @ Citi | Java , Cloud, ML Solutions | Gen AI enthusiast | Wildlife Photography
Introduction
In recent months, Agentic AI has emerged as a focal point in the technology sector, captivating both industry leaders and innovators. This paradigm shift moves beyond traditional AI's reactive nature, introducing systems capable of autonomous decision-making and proactive task execution.
Several major companies are at the forefront of developing and implementing Agentic AI solutions like OpenAI ,Microsoft, NVIDIA Corporation, GitLab Inc. to name a few.
So let's talk about -
What is Agentic AI :
The world is witnessing a rapid evolution of artificial intelligence (AI), with a key player emerging: AI Agents. These sophisticated software programs are not mere tools; they are intelligent entities capable of autonomous action, learning, and adaptation. From automating mundane tasks to revolutionizing entire industries, AI Agents are poised to transform how we live and work.
At their core, AI Agents are designed to perceive their environment, make decisions, and take actions to achieve specific goals. Unlike traditional software, which relies on predefined rules, AI Agents leverage machine learning algorithms to learn from data, adapt to new situations, and continuously improve their performance.
How is it related to LLMs & Generative AI :
Large Language Models (LLMs) are a specific type of generative AI that specialize in understanding and generating human language. The LLMs are subset of Deep Learning.
You want to know more about LLMs. Read my article https://www.dhirubhai.net/pulse/large-language-models-vs-small-raja-saurabh-tiwari-kiljf/
Generative AI is a broad category encompassing AI systems that can create various forms of content, including text, images, music, and code.
LLMs are a subset of generative AI, focusing on text-based outputs, while generative AI encompasses a wider range of creative content generation capabilities.
Examples:
Agentic AI
Agentic AI goes beyond creation. It's about autonomous action and decision-making. These AI systems can operate independently, set goals, and take actions to achieve them. Imagine a self-driving car – it perceives its environment, makes decisions, and navigates accordingly.
Examples:
Generative AI is like a composer writing a symphony. Agentic AI is like a conductor leading an orchestra, orchestrating the performance and ensuring it achieves its desired effect.
Okay, so now you have understood the basics of the different terms. Let’s go little deeper into Agentic AI world.
The idea of Agents is not new, “Shakey” was the first mobile robot with the ability to perceive and reason about its surroundings. https://www.sri.com/hoi/shakey-the-robot/
Earlier it was more of static rule based systems which evolved to goal-driven intelligent agents which happened in 80's.
Okay so what are agents ?
“Agents” can be defined in several ways. Some define agents as fully autonomous systems or components that operate independently over extended periods, using various tools to accomplish complex tasks. Others use the term to describe more prescriptive? implementations that follow predefined workflows. So we need to understands the distinction between workflows and agents.
Workflows are systems where LLM and tools are orchestrated through predefined code paths.
Agents, on the other hand are systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks.
So there are basically 3 stages I would say
Automation, AI workflows and then Agentic Workflows
Automation is simple automation that we work day to day like automatically generating email triggers when finding an error in the log
AI workflows are a level up, where multiple such automation tasks are combined with ML and AI capabilities and orchestrated by some code.
Some examples could be,
Workflow:
Example: Writing a marketing email campaign.
Agentic AI Workflow (Focus: Autonomous Action)
Example: Self-driving car navigation.
Workflow:
Key Differences
AI Workflow: Primarily focuses on content creation, often requiring human oversight and refinement.
Agentic AI Workflow: Emphasizes autonomous decision-making and action within a dynamic environment.
The below diagram illustrates how the agentic workflow works. It depicts some key concepts of the Agentic workflow.
But how do I start, are there any rules, any patterns, templates which I need to follow to create agents? Let's take a look at the design patterns.
Agentic Design Patterns :
The agentic design patterns at its core talk about how the agents collaborate, use environment and make autonomous decisions. These are very key in writing scalable solutions.
Planner Agent: Generates high-level goals.
Execution Agent: Performs tasks based on plan instructions.
Critic Agent: Validates actions and suggests improvements.
Memory Agent: Retrieves past knowledge for context-aware responses.
Key Features:
Self-Evaluation: Agents assess their performance using metrics or goals.
Feedback Loops: They adjust their strategies based on the evaluation.
Scenario: A recommendation agent reflects on user feedback to improve its suggestions.
The agent logs its past experiences and outcomes. It uses feedback loops (e.g., reinforcement learning reward signals, heuristic evaluations). It performs meta-cognition (thinking about its own thinking) to optimize strategies.
Retrieval & Memory
Execution & Automation
It is evident that one of the first step of planning would be 'Goal decomposition'. Followed by path selection. These paths should be adjusted dynamically based on the each iteration's output.
These Agentic AI design patterns enable intelligent systems to become self-improving, collaborative, and goal-driven, making them more capable of autonomous problem-solving in real-world applications. By leveraging reflection, multi-agent coordination, planning, and external tools, developers can create AI solutions that continuously learn, adapt, and enhance decision-making capabilities.
Conclusion :
So in my view the agentic AI is another layer of automation. This takes it to the next level by having autonomous agents doing their job, challenging the response, improving the results and then finally giving their best results to the client.
Everyone is talking about creating AI agents in the market, there are lot of tools available for creating agents, but creating an agent which solves the real world problem is hard today.
Always remember to have simpler solution to solve the business problem than focusing on using a technology which might end up having complex solution. You should think if a given business problem can be solved by simple workflows. Then prefer that.
Having said that, while we are at the very early stages of the Agent realm, evaluation and tracking are essential for an accurate and responsible response.
In my next article, let's have a walkthrough of creating AI agents from scratch using python.
#naturallanguageprocessingnlphashtag#nlphashtag#machinelearninghashtag#artificialitellegencehashtag#datasciencehashtag#textanalytics
Thanks,
Raja Saurabh Tiwari
Java, Cloud, Microservices, Kafka
1 周Interesting
Pharma and Healthcare Client consulting and solutioning
1 周Fantastic read !! Thanks Raja for sharing ????
Technology Leadership | BU Management| Project Delivery
2 周Very insightful, Raja Saurabh Tiwari
Vice President at Citi
2 周Very detailed and helpful Raja.
Vice President @ Citi | Java , Cloud, ML Solutions | Gen AI enthusiast | Wildlife Photography
2 周Pandharinath thank you !!