AI Agents path

🤖 Using AI & AI Agents

Chapter 2 of 24

📋 Chapter 2: Types of Agents & When to Use Them

Simple reflex to multi-agent; open-ended and multi-step use cases

Agents can be classified by how they decide and act: from simple rule-based reflexes to multi-agent systems. Choosing a type depends on whether the task is open-ended, multi-step, or should improve over time.

Types of agents (travel-booking examples)

TypeDescription
Simple ReflexImmediate actions from predefined rules.
Model-Based ReflexKeeps an internal picture of the world (e.g. past prices, inventory) and acts using that picture, not just the current snapshot.
Goal-BasedCreates plans to reach a specific goal.
Utility-BasedWeighs tradeoffs (e.g. cost vs convenience) numerically.
LearningImproves over time from feedback.
HierarchicalHigher-level agent breaks work into subtasks for lower-level agents.
Multi-Agent (MAS)Multiple agents work together or compete.

What does “model of the world” mean?

A simple reflex agent only looks at the current input (e.g. “user asked for flights”) and applies a rule. A model-based reflex agent keeps an internal picture of how things change over time (e.g. historical prices, yesterday’s inventory). It uses that picture to decide — for example, “this route dropped a lot in price, so surface it as a deal” or “this one is spiking, warn the user.” The “model” is that internal representation of the world, not just the latest snapshot.

When AI agents shine

1

Open-ended problems

Steps can't be hardcoded; the LLM decides what to do next.

2

Multi-step processes

Task needs tools or information over many turns, not a single shot.

3

Improvement over time

Agent gets feedback from environment or users and gets better.

Example: Travel agent by type

A simple reflex agent forwards complaints to customer service by rule. A model-based reflex uses past data to highlight price drops or spikes. A goal-based agent plans flights + hotel + car to reach a destination. A learning agent uses post-trip feedback to improve future recommendations.