Appearance
Bottom-Up Agent Architecture & Mechanics, Generative AI
A large language model cannot act by itself. You give it a context, it works over that context, and it returns text. Building an agent on top of such a model, one that can plan, call tools, keep state, and act safely, is an engineering problem. That is what this course covers.
This manual is the architecture reference for the course. It is organized bottom-up: it starts with the model engine and moves up through the layers that shape agent behavior, ending with the practices that keep agents reliable in production. Each layer is presented as the solution to the problem of the layer above it, with its own details hidden, so you can read the architecture cleanly from the bottom.
I give this course at ESISAR (Grenoble INP UGA) in the fall of 2026. The chapters below are the supporting material for it.
Use it in three ways:
- First read: read it top to bottom to build the full mental model.
- Design reference: use the layer chapters as a reference when you design an agent.
- Debugging reference: use the failure-mode and observability chapters when an agent misbehaves.
When you implement, look at mature frameworks such as LangGraph and smolagents to see how these ideas show up in real systems. This manual intentionally leaves out implementation code. The goal is to understand the architecture first.
Chapters
- Objectives
- Core Mental Model
- Layered Architecture Map
- What Is an Agent?
- Layer 0: Model Engine
- Layer 1: Context & Messages
- Layer 2: Structured Output
- Layer 3: Tools & Actions
- Layer 4: Control Loop
- Layer 5: Memory & State
- Layer 6: Guardrails & Safety
- Layer 7: Observability & Evaluation
- Building a Simple Agent: Architecture Procedure
- How Performance Is Determined
- From One Agent to Many
- Production Deployment Checklist