Day 3 – Core Components Of An AI Agent | @swati_goyal_911 | QuizMaker

Big Picture First: An Agent Is Not a Single ThingBefore we dive into components, let’s reset the mental model.πŸ‘‰ An AI Agent is a system of coordinated par

Read
4m
Type
Blog
By
@swati_goyal

Series or course

Agentic AI

Big Picture First: An Agent Is Not a Single Thing

Before we dive into components, let’s reset the mental model.

πŸ‘‰ An AI Agent is a system of coordinated parts, not a single model, prompt, or API call.

Think of it like a smartphone:

It’s the combination that creates intelligence.

Agentic AI works the same way.

The 5 Core Components of an AI Agent (High-Level View)

Here’s the canonical breakdown used in real production systems:

#ComponentRole
1️⃣LLM (Brain)Reasoning & language understanding
2️⃣PlannerDecides what to do next
3️⃣ToolsEnables actions in the real world
4️⃣MemoryRemembers past & context
5️⃣Control LoopOrchestrates perception β†’ action

We’ll walk through eachβ€”with examples you can immediately relate to.

🧠 Component 1: The LLM (The Brain)

What It Does

The LLM is responsible for:

It is not responsible for:

πŸ”‘ LLMs think. Agents act.

Real-World Analogy

πŸ§‘β€πŸ’Ό LLM = Subject-Matter Expert

But someone else still needs to run the process.

Common Mistake ❌

Putting everything into the prompt:

This leads to:

🧭 Component 2: The Planner (The Decision Maker)

This is where agents truly differ from chatbots.

What the Planner Does

The Planner:

Planner in Action (Mini Example)

🎯 Goal: β€œResolve a customer refund issue”

Planner output:

  1. Identify transaction

  2. Check refund policy

  3. Validate eligibility

  4. Initiate refund

  5. Notify customer

If step 3 fails β†’ revise plan or escalate.

Types of Planners (You’ll See These Again)

Planner TypeBehavior
ReActThink β†’ Act β†’ Observe
Plan-and-ExecutePlan first, then run
HierarchicalGoals β†’ sub-goals
Manager–WorkerDelegates to sub-agents

πŸ’‘ Planning is what gives agents autonomy.

πŸ›  Component 3: Tools (Hands & Legs)

An agent without tools is like a brain in a jar πŸ§ πŸ«™.

What Counts as a Tool?

Anything that lets the agent do something:

Tool Selection Flow

User Goal
   ↓
Planner decides action
   ↓
LLM selects tool + arguments
   ↓
Tool executes
   ↓
Result returned to agent

This separation is critical for safety.

Example: Research Agent πŸ”

StepTool
Search topicWeb search API
Fetch sourcesBrowser tool
SummarizeLLM
Save notesDatabase

Anti-Pattern ❌

Hardcoding tool usage inside prompts.

βœ… Tools should be externally controlled and auditable.

🧠 Component 4: Memory (Short-Term vs Long-Term)

Memory is what turns agents from clever into useful.

Two Types of Memory

TypePurposeExample
Short-termCurrent task contextSteps completed
Long-termCross-session learningPast failures, preferences

Memory Architecture Diagram

Observation
   ↓
Short-Term Memory (Task State)
   ↓
Relevant Recall
   ↓
LLM Reasoning
   ↓
Optional Long-Term Write

Example: DevOps Agent βš™οΈ

Long-term memory stores:

Result: Faster resolution over time.

Common Pitfall ❌

Dumping everything into vector memory.

πŸ”΄ Memory must be curated, not infinite.

πŸ” Component 5: Control Loop (The Conductor)

This is the most underestimated component.

What the Control Loop Does

It:

The Agent Loop (Visual)

Perceive β†’ Reason β†’ Plan β†’ Act β†’ Observe
      ↑_______________________________↓

This loop continues until a stop condition is met.

Safety Hooks πŸ”

A good control loop includes:

Putting It All Together: Full Agent Architecture 🧩

           Goal
            ↓
        Planner 🧭
            ↓
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚     LLM 🧠     β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      ↓          ↓
 Tools πŸ›      Memory 🧠
      ↓          ↑
   Environment / Systems

        ↑
   Control Loop πŸ”

Each component has clear responsibility boundaries.

Interactive Exercise πŸ“ (Do This!)

Pick a real task you do weekly.

Fill this table:

QuestionYour Answer
Goal?
Decisions needed?
Tools used?
What must be remembered??
Failure scenarios?

If you can fill this outβ€”you can design an agent.

Common Architecture Mistakes 🚨

MistakeConsequence
No plannerRandom behaviour
No memoryRepeated failures
No control loopInfinite runs πŸ’Έ
LLM does everythingUnstable system

Key Takeaways 🎯

If you design these components explicitly, your agents will be:
βœ… Predictable
βœ… Scalable
βœ… Safe

Open on QuizMaker