AI Agent PDF
AI Agent PDF
An agent can be anything that perceives 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:
● Human-Agent: A human agent has eyes, ears, and other organs that work for sensors and
hand, legs, vocal tract work for actuators.
● Robotic Agent: A robotic agent can have cameras, infrared range finder, NLP for sensors
and various motors for actuators.
● Software Agent: Software agent can have keystrokes, file contents as sensory input and
act on those inputs and display output on the screen.
Intelligent Agents:
An intelligent agent is an autonomous entity which act upon an environment using sensors and
actuators for achieving goals. An intelligent agent may learn from the environment to achieve
their goals. A thermostat is an example of an intelligent agent.
Rationality:
The rationality of an agent is measured by its performance measure. Rationality can be judged on
the basis of following points:
Rational Agent:
A rational agent is an agent that has clear preference, models uncertainty, and acts in a way to
maximize its performance measure with all possible actions.
A rational agent is said to perform the right things. AI is about creating rational agents to use for
game theory and decision theory for various real-world scenarios.
For an AI agent, the rational action is most important because in AI reinforcement learning
algorithm, for each best possible action, agent gets the positive reward and for each wrong
action, an agent gets a negative reward.
A rational agent always performs right action, where the right action means the action
that causes the agent to be most successful in the given percept sequence. The
problem the agent solves is characterized by Performance Measure, Environment,
Actuators, and Sensors (PEAS).
1.
● ● ● Keyboard
Healthy Patient Tests
Medical
patient
Diagnose ● Hospital ● Treatm (Entry of
● Minimized ents symptoms)
● Staff
cost
2.
● ● ● ●
Cleanness Room Wheels Camera
Vacuum
Cleaner ● Efficiency ● Table ● Brushes ● Dirt
detection
● Battery ● Wood ● Vacuum
sensor
life floor Extract
or ● Cliff sensor
● Security ● Carpet
● Bump
● Various
Sensor
obstacle
s ● Infrared Wall
Sensor
3.
● ● ● ●
Percentag Conveyo Jointed Camera
Part-picki
e of parts r belt Arms
ng Robot
in correct with
● Hand
bins. parts,
● Bins ● Joint angle
sensors.
This type of model considers the perception history along with the current perception to
decide the action. The environment here is not fully observable.
They use a model of the world to choose their actions. They maintain an internal state.
3. Goal-Based Agents
They choose their actions in order to achieve goals. A goal-based approach is more
flexible than a reflex agent since the knowledge supporting a decision is explicitly
modeled, thereby allowing for modifications.
● There are conflicting goals, out of which only few can be achieved.
● Goals have some uncertainty of being achieved and you need to weigh likelihood
of success against the importance of a goal.
Environments:
Some programs operate in an entirely artificial environment c onfined to keyboard input,
database, computer file systems, and character output on a screen. The most famous
artificial environment is the Turing Test environment, in which one real and other
artificial agents are tested on equal ground. This is a very challenging environment as it
is highly difficult for a software agent to perform as well as a human.
Properties of Environment:
2. Deterministic vs Stochastic:
● If an agent's current state and selected action can completely determine the next
state of the environment, then such environment is called a deterministic
environment.
● A stochastic environment is random in nature and cannot be determined
completely by an agent.
● In a deterministic, fully observable environment, agent does not need to worry
about uncertainty.
●
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.
5. Static vs Dynamic:
● If the environment can change itself while an agent is deliberating then such an
environment is called a dynamic environment else it is called a static
environment.
● Static environments are easy to deal with 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 environment is called a discrete environment
else it is called a continuous environment.
● A chess game comes under a discrete environment as there is a finite number of
moves that can be performed.
● A self-driving car is an example of a continuous environment.
7. Known vs Unknown
8. Accessible vs Inaccessible
● If an agent can obtain complete and accurate information about the state's
environment, then such an environment is called an Accessible environment else
it is called inaccessible.
● An empty room whose state can be defined by its temperature is an example of
an accessible environment.
● Information about an event on earth is an example of an Inaccessible
environment.