Chapter 2
Chapter 2
AI Agents
Agents in Artificial
Intelligence
An agent can be anything that perceive its environment
through sensors and act upon that environment through
actuators. An Agent runs in the cycle of perceiving, thinking,
and acting. An agent can be:
Static vs Dynamic
Discrete vs Continuous
Deterministic vs Stochastic
Single-agent vs Multi-agent
Episodic vs sequential
Agent-Environment
Examples:
Simple examples include a thermostat
(agent) interacting with room temperature
(environment) to maintain a set
temperature, or a chatbot (agent)
responding to user messages (environment).
stochastic
Features of Agent
Environment
3. Episodic vs Sequential:
In an episodic environment, there is a series of one-shot
actions, and
only the current percept is required for the action.
However, in Sequential environment, an agent requires
memory of past
actions to determine the next best actions.
For example, an agent that must spot defective parts on
an assembly line bases each decision on the current part,
regardless of previous decisions; moreover, the current
decision doesn't affect whether the next part is defective.
In sequential environments, on the other hand, the
current decision could affect all future decisions. Chess
and taxi driving are sequential: in both cases, short-term
actions can have long-term consequences. Episodic
4. Single-agent vs Multi-agent
If only one agent is involved in an environment, and
operating by itself then such an environment is called
single agent environment.
However, if multiple agents are operating in an
environment, then such an environment is called a
multi-agent environment.
The agent design problems in the multi-agent
environment are
different from single agent environment.
For example, an agent solving a crossword puzzle by
itself is clearly in a single-agent environment,
whereas an agent playing chess is in a two-agent
environment.
Features of Agent
5. StaticEnvironment
vs Dynamic:
If the environment can change itself while an agent is
deliberating, then such environment is called a dynamic
environment.
Static environments are easy to deal because an agent does
not need to
continue looking at the world while deciding for an action.
However, for dynamic environment, agents need to keep
looking at the
world at each action.
Taxi driving is an example of a dynamic environment
whereas Crossword puzzles are an example of a static
environment.
6. Discrete vs Continuous:
If in an environment there are a finite number of percepts and
actions that can be performed within it, then such an
PEAS
PEAS is Representation
a type of model on which an AI agent works upon. When
we define an AI agent or rational agent, then we can group its
properties under PEAS representationmodel. It is made up of
four words:
P: Performance measure
E: Environment
A: Actuators
S: Sensors
Here performance measure is the objective for the success of
an agent's
behavior.
PEAS for self-driving
cars: