Professional Documents
Culture Documents
Structure of Intelligent Agents
Structure of Intelligent Agents
Intelligent agents are computational systems designed to perform tasks and make decisions
autonomously in order to achieve specific goals. These agents are commonly used in various
fields, including artificial intelligence, robotics, and computer science. The structure of
intelligent agents typically consists of several key components:
The structure of intelligent agents can vary significantly depending on their specific
applications and the technologies used. Some agents may be simple and rule-based, while
others may be complex and employ machine learning or deep learning techniques. The design
and architecture of an intelligent agent depend on the problem it aims to solve and the
available resources and technologies.
• Agent: Think of the agent as a smart computer program or system that can do things
on its own, like a robot or a virtual assistant. It can see, hear, think, and take actions.
• Program: The program is like the brain of the agent. It tells the agent what to do
based on what it "sees" and "hears" from its environment. For example, if the agent is
a vacuum cleaner and if it sees a dirt, the program tells it to stop and clean it.
• Architecture: The architecture is the physical or digital platform on which the agent
and its program run. It's like the computer or robot that the agent lives in. Sometimes,
this platform has special tools or hardware to help the agent do certain tasks, like
recognizing faces or voices.
Together, they make the agent work effectively to perform tasks like making decisions,
moving around, or helping you with information.
• The simplest kind of agent is the simple reflex agent. These agents select actions on
the basis of the current percept, ignoring the rest of the percept history. For example,
the vacuum agent whose agent function is a simple reflex agent, because its decision
is based only on the current location and on whether that location contains dirt.
• Simple reflex behaviours occur even in more complex environments. Imagine
yourself as the driver of the automated taxi. If the car in front brakes and its brake
lights come on, then you should notice this and initiate braking. In other words, some
processing is done on the visual input to establish the condition we call “The car in
front is braking.” Then, this triggers some established connection in the agent
program to the action “initiate braking.” We call CONDITION–ACTION RULE such
a connection a condition–action rule, written as ‘if car-in-front-is-braking then
initiate-braking’.
Model-based reflex agents:
Imagine you're playing chess as a simple reflex agent. In this scenario, you make moves
based solely on the current position of the chessboard, without considering past moves or
future consequences. Your decisions are purely reactive, and you might end up making
suboptimal moves because you're not thinking ahead.
Now, let's upgrade you to a model-based chess player:
Analogy: You, as a model-based chess player, are like a chess grandmaster who not only
observes the current state of the chessboard but also maintains a mental model of the entire
game. You remember past moves, anticipate your opponent's possible responses, and plan
your moves accordingly. Your mental model allows you to think several moves ahead,
considering potential future positions and strategies. You are not only reacting to the current
board but also proactively shaping the game according to your strategic vision.
In this analogy, the simple reflex agent corresponds to a beginner chess player who makes
moves without any long-term strategy, while the model-based agent represents a more
advanced player who uses their mental model of the game to make informed and strategic
decisions. The mental model in this context serves as an internal representation of the
chessboard and its dynamics, allowing for more thoughtful and forward-looking gameplay,
just as a model-based agent uses an internal model of the world to make better-informed
decisions based on past and future states.
Goal-based agents:
Think of a goal-based agent as a delivery driver with a specific destination in mind.
Imagine you are a delivery driver, and your goal is to deliver packages to various locations
efficiently. You have a clear destination for each package, and your objective is to reach each
destination as quickly as possible. To achieve this, you plan your route, consider traffic
conditions, and prioritize deliveries based on their urgency. Your primary focus is on
reaching your goals (the delivery destinations) in the most effective way, even if it means
making trade-offs or adjusting your plan along the route. You make decisions based on the
alignment of your actions with your defined goals.
In this analogy, the delivery destinations are analogous to the goals in a goal-based agent.
Just as the delivery driver prioritizes and plans their actions to reach destinations, a goal-
based agent prioritizes and plans its actions to achieve specific objectives or goals.
Utility-Based Agents:
Analogy: Think of a utility-based agent as a restaurant-goer making choices on a menu based
on personal preferences and values.
Suppose you are dining at a restaurant with a diverse menu. Instead of having a single fixed
goal like a goal-based agent, you assign a personal "utility" value to each dish based on your
taste, dietary preferences, and cost considerations. When deciding what to order, you evaluate
each dish's utility score, taking into account factors like taste, healthiness, and price. You aim
to maximize your overall satisfaction, so you might choose a dish that balances taste and
healthiness, even if it costs a bit more. In this way, you make decisions that maximize your
expected satisfaction, considering trade-offs and personal values.
In this analogy, the utility values assigned to the dishes correspond to the utility-based agent's
assessment of the desirability of different outcomes. The agent makes decisions that
maximize its overall satisfaction by evaluating the expected utility of various choices, just as
the restaurant-goer evaluates the utility of different menu options to maximize their dining
experience.