PEAS in AI — AI Technical Interview Questions & Answers

PEAS in AI

PEAS in AI

  • PEAS is how you write an agent’s job on the board. P Performance (what “good” means). E Environment (where it lives). A Actuators (what it can do). S Sensors (what it can see). Vacuum: P = dirt collected / energy; E = room tiles; A = move, suck; S = dirt, bump.
  • Self-drive sketch: P = safety + time; E = roads; A = steer, brake; S = cameras, lidar, GPS. If you skip PEAS, the agent discussion is just slogans.
  • PEAS in AI — output: four PEAS lines for a vacuum. Fill all four in the viva.
P  performance  (clean tiles)
  E  environment  (room)
  A  actuators    (move / suck)
  S  sensors      (dirt / bump)

Technical Interview Tip: PEAS for vacuum or taxi. All four letters.

Code Examples for PEAS in AI

Example

# PEAS — vacuum
print("P: tiles cleaned / energy used")
print("E: two-room grid")
print("A: move, suck")
print("S: dirt sensor, bump sensor")

PEAS in AI — output: four PEAS lines for a vacuum. Fill all four in the viva.

How to Explain PEAS in AI to an Interviewer

Expand PEAS.

Performance Environment Actuators Sensors

PEAS for a vacuum?

P clean/energy E room A wheels+suck S dirt+bump