PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

AI · Theory

AI Agents

← All stacks

Theory

14/215

AI Agents

An agent is anything that sees and acts: sensors in, actuators out. A thermostat, a vacuum robot, a chatbot, a trading bot. Intelligence is how well it chooses actions for its goal. PEAS describes the job: Performance, Environment, Actuators, Sensors.

Vacuum: dirt sensor, bump sensor; motors to move and suck; goal = clean tiles. Chatbot: text in, text out. Don’t call every Python script an agent unless it has that sense–act loop.

AI Agents — output — suck / turn. Percept in, action out.

Diagram
sensors  →  agent  →  actuators
                │
                ▼
            environment
Exam tip

Sense–act + one PEAS sketch.

Example

# Simple agent
def vacuum(dirt, bump):
    if dirt:
        return "suck"
    if bump:
        return "turn"
    return "forward"

print(vacuum(True, False))
print(vacuum(False, True))

AI Agents — output: suck / turn. Percept in, action out.

Short notes

  • DefSensors → decide → actuators.
  • RememberPEAS describes the task.

Questions

1

What is an AI agent?

2

What is PEAS?

Previous← Frames in AINextTypes of Agents →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.