Articles / AI · Part 7

Types and Structure of Intelligent Agents

Explore the five major types of intelligent agents: Simple Reflex, Model-Based, Goal-Based, Utility-Based, and Learning Agents. Understand their decision-making methods and internal structure.

Types and Structure of Intelligent Agents

In the previous article, we learned that an AI agent perceives its environment through sensors and acts upon it through actuators.

But not all agents make decisions in the same way.

A simple cleaning robot may follow fixed condition-action rules, while a self-driving car needs to consider its surroundings and choose actions carefully. A more advanced agent may also learn from experience and improve its performance over time.

These differences lead to several types of intelligent agents.

In this article, we will explore the major types of intelligent agents, understand how they make decisions, and examine the internal structure that allows them to operate.

1. What Is an Intelligent Agent?

An intelligent agent is an agent that perceives its environment and selects actions to achieve its objectives.

It uses the information it receives to decide what to do next. Depending on its design, it may follow predefined rules, maintain information about the environment, work towards specific goals, evaluate possible outcomes, or learn from experience.

For example, a navigation system receives information about a user’s location and road conditions. It evaluates possible routes and recommends one that suits the user’s requirements.

The level of intelligence of an agent depends on how effectively it selects actions in its environment.

2. Types of Intelligent Agents

Intelligent agents are commonly classified according to how they select their actions.

The main types are:

  1. Simple Reflex Agents
  2. Model-Based Reflex Agents
  3. Goal-Based Agents
  4. Utility-Based Agents
  5. Learning Agents

Each type uses a different approach to making decisions.

2.1 Simple Reflex Agents

A Simple Reflex Agent selects actions based only on the current percept. It does not consider the history of previous percepts when making its decision.

It follows condition-action rules, often written in the form:

IF condition, THEN action.

For example, consider a simple automatic cleaning system:

  • IF the current location is dirty, THEN clean it.
  • IF the current location is clean, THEN move to another location.

The agent checks the current situation and performs the action associated with it.

How it works:

  1. The agent receives a percept from its environment.
  2. It checks the condition that matches the percept.
  3. It selects the corresponding action.
  4. It performs that action.

Advantages:

  • Simple to design and implement.
  • Requires relatively little computational effort.
  • Works well in predictable environments.

Limitations:

  • Does not consider past experiences.
  • Cannot maintain an internal model of the environment.
  • May fail when the current percept does not provide enough information.

A simple reflex agent is suitable when the environment is sufficiently observable and the correct action can be selected using the current situation alone.

2.2 Model-Based Reflex Agents

A Model-Based Reflex Agent improves upon a simple reflex agent by maintaining an internal state.

An internal state is information the agent keeps about the environment based on its previous percepts and actions.

This is useful when the agent cannot observe everything in its environment at once.

For example, a robot moving through a room may temporarily lose sight of an obstacle. By using information from previous observations, it can maintain an estimate of where the obstacle might be.

A model-based agent uses an internal model to understand:

  • How the environment changes.
  • How its actions affect the environment.
  • What the current situation may be, based on available information.

How it works:

  1. The agent receives a new percept.
  2. It updates its internal state using the new percept and previous information.
  3. It evaluates the current situation.
  4. It selects an action using its condition-action rules.
  5. It performs the action.

Advantages:

  • Can work in partially observable environments.
  • Maintains information from previous observations.
  • Makes decisions using more than the current percept.

Limitations:

  • Requires an internal model of the environment.
  • The model may be incomplete or inaccurate.
  • Maintaining and updating internal state requires additional computation.

The main difference is that a simple reflex agent reacts only to the current percept, while a model-based reflex agent also uses an internal state.

2.3 Goal-Based Agents

A Goal-Based Agent selects actions by considering the goals it wants to achieve.

Instead of simply responding to a condition, it evaluates possible actions and considers whether they will help it reach a desired state.

For example, a navigation agent may have the goal of reaching a particular destination.

It can consider different routes and select actions that move it closer to that destination.

How it works:

  1. The agent receives information about its environment.
  2. It identifies its current state.
  3. It considers the goal it needs to achieve.
  4. It evaluates possible actions or action sequences.
  5. It selects an action that helps achieve the goal.

Goal-based agents often use search and planning techniques to find suitable sequences of actions.

Advantages:

  • Can consider different possible actions.
  • Supports planning and problem-solving.
  • Can adapt its actions when the goal or situation changes.

Limitations:

  • Searching for suitable action sequences may require significant computation.
  • Reaching a goal does not always mean the chosen solution is the best one.
  • Complex environments may contain many possible paths to a goal.

For example, a route-planning system may find several ways to reach a destination. A goal-based agent focuses on reaching the destination, but it may need additional criteria to decide which route is preferable.

2.4 Utility-Based Agents

A Utility-Based Agent selects actions by considering how desirable their possible outcomes are.

A goal-based agent tries to achieve a goal. However, there may be several ways to achieve that goal, and some may be better than others.

A utility-based agent uses a utility function to assign a value to possible outcomes. It then selects an action expected to produce a more desirable result.

For example, imagine a navigation system that must take a user to a destination.

Several routes may reach the same destination, but they may differ in:

  • Travel time.
  • Distance.
  • Traffic conditions.
  • Toll charges.
  • Road safety.

A utility-based agent can evaluate these factors and recommend a route according to the user’s preferences.

How it works:

  1. The agent receives information about its environment.
  2. It identifies possible actions.
  3. It estimates the outcomes of those actions.
  4. It evaluates the outcomes using a utility function.
  5. It selects the action with the most desirable expected outcome.

Advantages:

  • Can compare different possible outcomes.
  • Helps balance competing requirements.
  • Supports decision-making when several choices can achieve a goal.

Limitations:

  • Designing a suitable utility function can be difficult.
  • Different users may have different preferences.
  • Evaluating many possible outcomes can require significant computation.

A utility-based agent does not simply ask, “Can I achieve the goal?” It also asks, “Which available outcome is most desirable?”

2.5 Learning Agents

A Learning Agent improves its performance by learning from experience.

Unlike agents that rely entirely on fixed rules or predefined decision-making methods, a learning agent can adjust its behaviour based on feedback and observations.

For example, a recommendation system may initially make imperfect suggestions. As it receives information about which recommendations users select or ignore, it can improve its future suggestions.

A common learning-agent architecture contains four main components.

1. Learning Element

The learning element improves the agent’s performance by using experience and feedback.

2. Performance Element

The performance element selects actions based on the agent’s current knowledge and abilities.

3. Critic

The critic evaluates how well the agent is performing and provides feedback to the learning element.

4. Problem Generator

The problem generator suggests exploratory actions that may help the agent discover useful information and improve its future performance.

How it works:

  1. The agent interacts with its environment.
  2. The performance element selects actions.
  3. The critic evaluates the results.
  4. The learning element uses feedback to improve the agent.
  5. The problem generator may encourage exploration.
  6. The agent continues interacting with its environment.

Advantages:

  • Can improve performance over time.
  • Can adapt to changing situations.
  • Can discover patterns from experience.

Limitations:

  • Requires suitable experience or training information.
  • Learning may take time and computational resources.
  • Poor or biased feedback can lead to poor behaviour.

Learning agents are important in modern AI applications, including recommendation systems, robotics, game-playing systems, and machine learning.

3. Comparison of Intelligent Agents

The five types of agents differ mainly in the information they use and how they select their actions.

Agent type How it selects actions Main feature
Simple Reflex Current percept Condition-action rules
Model-Based Reflex Current percept and internal state Maintains an internal model
Goal-Based Actions that help achieve a goal Uses goals and planning
Utility-Based Desirability of possible outcomes Uses a utility function
Learning Agent Experience and feedback Improves performance over time

These categories describe different approaches to agent design. A real intelligent system may combine features from more than one approach.

4. Structure of an Intelligent Agent

An intelligent agent needs more than a decision-making rule. It requires a structure that allows it to receive information, process it, select actions, and interact with its environment.

A basic intelligent-agent structure contains:

  • Sensors.
  • Agent program.
  • Actuators.
  • Architecture.

The interaction can be represented as:

Environment → Sensors → Agent Program → Actuators → Environment

The agent program runs on an architecture that provides the computational or physical resources needed to operate.

4.1 Sensors

Sensors collect information from the environment.

Examples include cameras, microphones, GPS receivers, and distance sensors.

4.2 Agent Program

The agent program processes percepts and determines which actions should be performed.

Its design depends on the type of agent being implemented.

4.3 Actuators

Actuators allow the agent to perform actions in its environment.

In a robot, these may include motors and robotic arms. In a software agent, actions may include displaying information, sending a message, or updating a database.

4.4 Architecture

Architecture is the platform on which the agent program operates.

It may include hardware, processors, memory, sensors, actuators, or software components.

Together, the architecture and agent program form the complete agent.

5. Learning Agent Architecture in More Detail

The learning agent is particularly interesting because it can improve its behaviour through experience.

Its four components work together:

Component Main responsibility
Performance Element Selects actions
Learning Element Improves the agent
Critic Evaluates performance
Problem Generator Encourages useful exploration

For example, consider a game-playing agent.

The performance element selects a move. The critic evaluates the result of the move, according to the game’s outcome or a reward signal. The learning element uses this feedback to improve future decisions. The problem generator may encourage the agent to try less familiar strategies to discover better possibilities.

This creates a continuous process of action, evaluation, and improvement.

6. Choosing the Right Type of Agent

There is no single type of intelligent agent that is best for every problem.

The choice depends on the environment, the task, available information, and the desired outcome.

  • A simple reflex agent may be sufficient for a predictable task with clear condition-action rules.
  • A model-based agent is useful when the environment is only partially observable.
  • A goal-based agent is suitable when the system must plan actions to reach a target.
  • A utility-based agent is useful when several outcomes are possible and their desirability must be compared.
  • A learning agent is valuable when the system needs to improve through experience.

Understanding these differences helps AI developers choose an appropriate design for a particular problem.

Conclusion

Intelligent agents can be designed in different ways depending on how they perceive information and select actions.

Simple reflex agents use current percepts, model-based agents maintain internal states, goal-based agents work towards desired outcomes, utility-based agents compare the desirability of outcomes, and learning agents improve through experience.

We also explored the basic structure of an intelligent agent and the four components of a learning agent.

In the next article, we will study Rationality and the Concept of a Rational Agent, exploring how an agent chooses actions that are expected to produce the best possible results.

Quick quiz

5 questions
Which agent makes decisions using only its current percept?
What is the main purpose of the internal state in a Model-Based Reflex Agent?
What makes a Utility-Based Agent different from a Goal-Based Agent?
Which component of a Learning Agent evaluates its performance and provides feedback?
What are the two main elements that form an agent?

Keep a copy

Read offline as a printout or PDF.

farhanpaal.com

Keep reading

AI · Part 6

Agents and Environments.

Understand how AI agents interact with their environments through sensors and actuators. Learn about percepts, percept sequences, agent functions, agent programs, and…

9 min read
AI · Part 35

Fuzzy Sets and Fuzzification

Understand fuzzy sets, membership functions, and fuzzification in Artificial Intelligence. Explore triangular, trapezoidal, Gaussian, and sigmoidal membership functions, with practical temperature-control examples…

8 min read

Ask Farhan

Ask anything about Farhan