Lesson 1.3~15 min

Key Components of an AI Agent

Module 1: Introduction to AI Agents

Key Components of an AI Agent

Every AI agent, regardless of complexity, is built from four fundamental components.

1. Sensors (Perception)

How the agent observes its environment.

  • Physical sensors: Cameras, microphones, LIDAR, temperature sensors
  • Digital sensors: API inputs, text input, database queries, web scraping
  • Perception pipeline: Raw data → processed information the agent can reason about

2. Actuators (Actions)

How the agent affects its environment.

  • Physical actuators: Motors, speakers, displays, robotic arms
  • Digital actuators: Sending messages, API calls, writing files, executing code
  • The set of all possible actions is called the action space

3. Environment

The world in which the agent operates. Environments are classified by:

PropertyOptionsExample
ObservabilityFully / Partially observableChess (full) vs. Poker (partial)
DeterminismDeterministic / StochasticCalculator (det.) vs. Stock market (stoch.)
DynamicsStatic / DynamicCrossword (static) vs. Traffic (dynamic)
AgentsSingle / Multi-agentSolitaire (single) vs. Auction (multi)
ContinuityDiscrete / ContinuousBoard game (discrete) vs. Driving (continuous)

4. Performance Measure

How we evaluate whether the agent is doing a good job.

  • Must be defined externally (not by the agent itself)
  • Should capture what we actually want, not just a proxy
  • Examples: accuracy, response time, user satisfaction, profit

The PEAS Framework

A useful framework for describing any agent:

ComponentQuestion
PerformanceHow do we measure success?
EnvironmentWhere does the agent operate?
ActuatorsWhat actions can it take?
SensorsWhat can it perceive?

Example — Self-driving car:

  • P: Safety, arrival time, comfort, fuel efficiency
  • E: Roads, traffic, pedestrians, weather
  • A: Steering, acceleration, braking, signaling
  • S: Cameras, LIDAR, GPS, speedometer

Key Takeaways

  • All agents share the same four components: sensors, actuators, environment, performance measure
  • The PEAS framework helps systematically design agents
  • Environment properties determine which agent architecture is appropriate

Test Your Knowledge

5 randomized questions from a pool of 10. Pass with 60% to unlock the next lesson.