XenonStack Recommends

Autonomous Agents

AI Agents for Autonomous Operations

Dr. Jagreet Kaur Gill | 11 August 2024

AI Agents for Autonomous Operations
9:00
Generative AI Agents - Xenonstack

Definition of AI Agents

To start from a very basic definition, think of an AI agent as your assistant or as Software Agent

When you ask your assistant to write an email, it works on it taking it as a goal. When you ask it to write an email, it will write an email for you, it does not play music for you or does not do something else. 

Hence the first thing that can be said about these agents is that they are intelligent and know what goals they are given and correspondingly what actions they need to take to get that work done. 

Purpose of AI Agents

Currently, the AI agents can do a wide variety of tasks and that too extremely well. Some of those tasks are: 

  • Browsing Web

  • Write and Execute Code

  • Book a meeting 

  • Make a payment,

  • Analyse and Query Data, etc. 

At this point of time where every day we see a new advancement in this field of Artificial Intelligence hence the current limitations on the list of things that an AI agent cannot do may become doable the very next day. 

Every new advancement that we see around Artificial Intelligence, Agents in particular, is taking us a step closer to AGI (Artificial General Intelligence). 

Types of AI Agents 

There are broadly 6 types of AI Agents

1. Simple Reflex Agents

It is more like hardcoding the agent’s behaviour. It works on the condition-action rule meaning it acts after perceiving the current condition. They can neither plan their next move nor can they learn and improve their reasoning by learning from past experiences.  

Although it is easy to implement and run but is very inflexible to changes. Also, since this category of agents is not equipped with memory do not store any state, they have very limited or no intelligence of their own. 

One of example of this type of agent can be the rule-based chatbots which have a pre-planned set of responses to the queries of the user. 

2. Model-based Reflex Agents

It is similar to Simple Reflex AI Agents, but it also uses some intelligence of its own during the decision-making.  This agent type works in a four-step process: 

  • Sense: Here the agents get to know the current state it is in before taking an action. 

  • Model: In this step, it makes a view for itself after sensing the current environment. 

  • Reason: Based on the above created model it now decides how to act before actually taking any action. 

  • Act: Here the agent acts. 

An example of this type of agent is AWS Bedrock as it uses various foundational models for making decisions based on user prompts. 

Although these types of models are quick and better in decision making they are computationally expensive. 

3. Goal-based Agents

Goal Based Agents are different from the above two as they perceive information from their environment to achieve specific goals.  

They have three parameters that they take into consideration when they work: 

  • Current state  

  • The end goal to obtain 

  • Set of actions needed to take to reach the goal 

These types of agents are very effective when deployed to attain a specific goal, but it may fail for a complex task. 

4. Utility-based Agents

Utility AI Agents are quite advanced as they can assign utility scores to different paths they need to take in scenarios when there is more than one possible path to complete a certain task. 

Consider a scenario when there is an agent designed to do research. But for a certain task it has both options – search the web or go through the vector store to complete a sub-process. In this scenario, this agent will be able to add utilities to these separate paths and then can decide which one to take to complete that particular task. 

The main advantage of these types of agents is that they can perform well in a wide variety of scenarios involving decision-making. It also learns from previous experiences and accordingly adjusts its decision-making strategy. 

5. Learning agents

Types of AI Agents that can learn from past interactions and with time improve their performance are called Learning Agents. These AI  agents here learn from complex data patterns and may also receive feedback from humans in the loop to adapt accordingly. 

6. Hierarchical Agents

Hierarchical AI agents are similar to how things are hierarchically executed in an organisation.  

The agents in the lower-level hierarchy execute the tasks and their supervision is done by the agents present higher above them in the hierarchy. 

This AI agent type is very good when it comes to prioritising different tasks by assigning the right set of tasks to the right agent. 

Types-of-AI-Agents

Use Cases of AI Agents

1. Personal Virtual Assistants

It is a very popular use case involving AI Agents. They can assist us in various tasks like reminding us of an important event of the day, planning our day, writing emails for us, planning meetings, etc.  

2. AI agents for Healthcare

AI agents in the healthcare industry can make a significant impact. From basic tasks of helping people with their medical queries to remarkable tasks of helping in drug discoveries are all possible through the use of AI Agents. 

There are already many pharmaceutical companies like Gilead Sciences and more that have already witnessed the potential of AI Agents.  When it used to take years for research now, they have accelerated the whole process making it all possible within months or even days.  

3. AI agents for Finance as Finance Analyst

Financial institutions can also leverage the power of AI agents to help them in fraud detection by learning the transaction patterns from the previous data. 

Also, they can utilise agents to build customer-friendly chatbots which will not only be fast with responses to users’ questions but will also be more accurate. 

4. AI tutor and Researchers in Education and Research

Here agents can help in research by making almost the entire World Wide Web accessible by the means of prompts in Natural Language. This has not only reduced the time required of manually going through the research papers but has also made the best content accessible required for any research. 

Best Open Source Agents

1. AutoGPT

This is one of the first and highly capable open-source AI agents available. For a given goal, it first creates a set of sub-tasks. It then goes through each of those sub-tasks to get the work done. In this process, it may even divide the sub-task into further sub-tasks based on the complexity of the task. 

It is the Agent dividing a complex task into sub-tasks and iterating through those sub-tasks to get the work done.

2. AutoGen

It is another of those remarkable releases in the field of Autonomous Agents. It allows you to build a Multi-Agent Conversational Framework inside of your application for enhanced accuracy and better inference from the LLMs. 

For example, say you need to build an agent that can query your structured database. Here using AutoGen you can pass on the results of the initial query through various other agents in the middle before finally producing the output to the user. Each agent has a defined task and a role assigned to it. If at any step an agent finds the responses not satisfactory, it sends it back to the previous agent for re-evaluation. 

Current Limitations of AI Agents

1. Data Dependent

The backbone of any AI agent is the Large Language Model. Hence for an AI Agent the accuracy in response and intelligent behaviour of the overall agent is directly dependent on the richness of the data that the LLM was trained on.  

The Agents may become highly biased if the LLM in the backend is not trained on the right set of data. 

2. Limited Understanding of Context

Taking about the currently available open-source AI agents like AutoGPT and others, they have a short-term memory making it hard for them to hold on to the context in a longer conversation. 

3. Security Concerns

Since these AI Agents lack common sense and ethical perspective, they can easily be made to work on goals with malicious intents. 

The Future of AI Agents 

1. Better and more capable AI Agents

With much better LLMs in days to come, the AI agents are bound to improve as they will have more contextual understanding and more human-like responses. 

Also, if humans are bought into this loop of the working of AI Agents, it will further pave the way for AI Agents to augment human-like capabilities in various fields.  

2. Responsible AI Agents

With Artificial Intelligence becoming more and more integrated with our day-to-day tasks, there is already a rising concern about various factors such as safety, privacy ethical considerations, etc. Hence in days to come, we can expect equal priority given to the performance and security concerns when it comes to AI Agents.