1.1 · What is AI, exactly?
Artificial Intelligence is the engineering discipline of building systems that perform tasks normally associated with human cognition — perception, reasoning, learning, planning, and decision-making — and that improve at those tasks with data, experience, or feedback.
Three test questions help you decide whether something deserves the label "AI":
- Is there an objective? If the system optimizes nothing, it’s automation, not AI.
- Is the behavior learned? A hand-written if/else tree is not AI just because it makes decisions.
- Does it generalize? If it only works on inputs it has seen, it’s memorization, not intelligence.
1.2 · The AI hierarchy — nested sets
The single most useful diagram in this entire book is the nested-circle view of AI’s sub-fields.
| Layer | What it adds | Example |
|---|---|---|
| AI | Any system that exhibits intelligent behaviour | Chess engine, route planner |
| Machine Learning | Systems that learn from data | Spam filter, fraud scorer |
| Deep Learning | ML using multi-layer neural networks | Image classifier, speech-to-text |
| Generative AI | DL that produces new content | Image diffusion, text generation |
| LLMs | Generative models specialized for language | GPT, Claude, Llama, Gemini |
| Agents | LLMs given tools, memory, goals | Coding agent, research agent |
1.3 · Types of AI — three useful axes
The capability axis
| Class | Description | Status (2026) |
|---|---|---|
| Narrow AI (ANI) | Excellent at one task. All deployed AI today. | Mature |
| General AI (AGI) | Matches or exceeds humans across most cognitive tasks. | Active research |
| Superintelligence (ASI) | Strongly exceeds the best humans at all cognitive work. | Speculative |
The functional axis (Arend Hintze, 2016)
- Reactive machines — no memory, pure stimulus → response. Deep Blue.
- Limited memory — uses recent history. Self-driving cars, most LLMs in a chat.
- Theory of mind — models other agents’ beliefs. Research only.
- Self-aware — has internal states it can reason about. Hypothetical.
The autonomy axis — six levels (this book’s scale)
| Level | Name | Human role |
|---|---|---|
| L0 | Suggestion | Human does everything. AI ranks options. |
| L1 | Co-pilot | Human drives. AI completes lines / drafts. |
| L2 | Assistant | AI takes one full subtask under supervision. |
| L3 | Agent | AI plans + executes; human reviews artefacts. |
| L4 | Autonomous worker | AI runs end-to-end; human audits weekly. |
| L5 | Autonomous organization | Multi-agent system with internal supervisors. |
1.4 · The 75-year timeline
You don’t need every date — you need the five turning points that explain the present.
The Symbolic Era · 1956 – 1986
Wins: theorem provers, expert systems (MYCIN, XCON), Lisp ecosystem.
Why it stalled: the world is messy; rules don’t scale, and knowledge engineering is expensive.
Legacy alive today: tool schemas, planners, formal verification.
The Statistical Era · 1986 – 2012
The Deep Learning Era · 2012 – 2017
The Transformer Era · 2017 – 2022
The Agentic Era · 2022 → today
1.5 · Three learning paradigms
Learn from labels
Given (x, y) pairs, learn a function f so that f(x) ≈ y.
Used by: classifiers, regressors, language model fine-tuning (SFT).
Learn from structure
Given only x, find structure — clusters, manifolds, factorizations, density.
Used by: embeddings, clustering, pre-training (next-token prediction is self-supervised).
Learn from reward
An agent acts in an environment, receives reward, and updates its policy to maximise long-run reward.
Used by: game-playing, robotics, RLHF/DPO for LLM alignment.
Today’s LLMs use all three: self-supervised pre-training, supervised fine-tuning, and reinforcement-from-human-feedback. We unpack each in Chapter 6.
1.6 · Why agents — and why now?
For 50 years, AI research had three blocking constraints:
- Knowledge bottleneck — hand-coded rules cannot capture the world.
- Compute bottleneck — even good algorithms needed GPUs that didn’t exist.
- Interface bottleneck — every new task required a new model and a new API.
LLMs broke all three at once:
- They compress the world into weights — a single model carries broadly useful knowledge.
- They read natural language — instructions, schemas, and outputs use the same medium.
- They plan and call tools — turning one model into a workforce for many tasks.
The minimum agent loop
Repeat until the goal is met or a budget is exhausted.
1.7 · Vocabulary you’ll see everywhere
Click any card to flip.
1.8 · Five myths to drop before Chapter 2
- “LLMs understand language.” They model statistical regularities of language. Useful, not the same.
- “Bigger is always better.” Bigger models help; great data, great prompts, and great tools help more.
- “Agents will replace engineers.” They replace tasks, not engineers. Engineers wield agents.
- “You need a PhD to build agents.” You need patience, system design, and product taste.
- “Frameworks are the moat.” Patterns are the moat. Frameworks change every six months.