2.1 Agents and Environments (BT104CO)
1. Defining the Agent
An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators.
The Mathematical Model
The behavior of an agent is described by the Agent Function, which maps any given percept sequence to an action:
- $P^*$: The percept sequence (everything the agent has perceived to date).
- $A$: The action to be performed.
2. Sensors and Actuators
To interact with the world, an agent must have "hardware" or "software interfaces" for input and output.
Sensors
The inputs the agent uses to perceive the environment.
- Human: Eyes, ears, skin.
- Robotic: Cameras, infrared, GPS.
- Software: Key presses, network packets.
Actuators
The mechanisms through which the agent performs actions.
- Human: Hands, legs, vocal cords.
- Robotic: Wheels, motors, screens.
- Software: File writing, data packets.
3. The Concept of "Percepts"
A percept is the agent’s perceptual inputs at any given instant. An agent’s choice of action can depend on its percept sequence—the entire history of everything the agent has perceived so far.
4. The Environment
The environment is the world in which the agent lives and operates. It is everything "outside" the agent. The nature of the environment directly dictates the design of the agent.
Friendly & Static
Like a crossword puzzle. Agent can be simple.
Hostile & Dynamic
Like a battlefield. Agent must be sophisticated.
5. Agent Architecture
- Architecture: The physical device (PC, robotic chassis, cloud server) that makes percepts available and executes actions.
- Program: The software that implements the agent function.
Summary of Agent Types
| Agent Type | Percepts | Actions |
|---|---|---|
| Medical System | Symptoms, lab results | Diagnosis, treatment plan |
| Satellite Controller | Altitude, signal strength | Adjust thrusters, aim antenna |
| Email Filter | Words, sender, attachments | Mark as Spam, Move to Inbox |
| Vacuum Cleaner | Dust levels, bump sensor | Move, turn, suck up dirt |