Evolution¶
Historical Context¶
To understand why LLM-based agents work so well today, you need to know what didn't work before.
-
Classical AI: The Limitations¶
1. Expert Systems (1970s-1990s)¶
How they worked:
- Human experts encoded rules explicitly
- If-then-else logic trees
- Forward/backward chaining
Example:
IF patient has fever
AND patient has cough
AND patient has headache
THEN likely diagnosis = flu
CONFIDENCE = 0.85
```
**Why it failed**:
- Knowledge engineering bottleneck (slow to build, maintain)
- Brittle (unexpected situations crashed)
- Could not generalize beyond encoded rules
- Could not learn
### 2. STRIPS Planning (1970s-1990s)
**How it worked**:
- Formal world models with explicit state
- Operators with preconditions and effects
- Search for action sequence
**Example**:
```caddyfile
State: {robot_at(home), package_at(store)}
Goal: {robot_at(home), package_at(home)}
Operator move:
Precondition: robot_at(X)
Effect: robot_at(Y)
Operator pickup:
Precondition: package_at(X), robot_at(X)
Effect: holding(package)
```
**Why it failed**:
- State space explosion (too many states)
- Grounding problem (real world doesn't fit neat formal models)
- No uncertainty handling
- Breaks when world doesn't match model
### 3. Reinforcement Learning (1990s-2010s)
**How it worked**:
- Agent learns through trial and error
- Reward signals guide learning
- Markov Decision Processes (MDPs)
**Why it's limited**:
- Sample inefficient (needs millions of trials)
- Reward engineering is hard (what to optimize for?)
- Poor transfer (learning for one task doesn't help others)
- Doesn't scale to complex real-world tasks
---
## The Deep Learning Revolution (2010s)
### Neural Networks Succeed
**What changed**:
- Better algorithms (SGD, RMSprop, Adam)
- More data (ImageNet, etc.)
- Better hardware (GPUs)
**Breakthrough domains**:
- Computer vision (2012 ImageNet)
- Gameplay (2016 AlphaGo)
- Language understanding (2018 BERT)
**Why agents still failed**:
- Neural networks are black boxes (can't explain decisions)
- Hard to specify complex goals
- Poor at long-term planning and reasoning
- Limited tool use capabilities
---
## The Transformer Revolution (2017+)
### Large Language Models Emerge
**Key innovations**:
- Transformer architecture (Attention is All You Need)
- Scaling to billions of parameters
- Unsupervised pre-training at massive scale
- Emergence of in-context learning
**Why this matters for agents**:
- Language understanding enables goal specification
- Few-shot learning reduces need for task-specific training
- Chain-of-thought reasoning enables planning
- Instruction following enables tool use
---
## The Agentic AI Breakthrough (2023-2025)
### What Changed
**Three converging trends in 2024-2025**:
1. **Function Calling APIs**
- GPT-4 function calling (2023)
- Gemini function calling (2023)
- Claude 3.5 tool use (2024)
- Unified standard for tool invocation
1. **Production Frameworks**
- LangGraph reached 1.0 (stable, production-ready)
- CrewAI production checkpointing
- Microsoft AutoGen matured
- Anthropic Model Context Protocol
1. **Enterprise Adoption**
- Moved past proof-of-concept
- Real cost savings demonstrated
- Integration with existing systems
- 40% of enterprises with AI agents by 2026 (Gartner)
### Why LLM Agents Succeed
```
Advantages of LLM Agents vs Previous Approaches:
- ┌─────────────────┬─────────────┬────────────┬────────────┐
- Dimension │ Expert Sys. │ RL Agents │ LLM Agents │
- ┼─────────────┼────────────┼────────────┤
- Knowledge │ Manual │ From data │ Pre-trained│
- Reasoning │ Brittle │ Implicit │ Explicit │
- Generalization │ Poor │ Limited │ Excellent │
- Language handle │ None │ Weak │ Native │
- Tool use │ Limited │ Weak │ Excellent │
- Learning │ No │ Slow │ In-context │
- Explainability │ High │ Low │ Medium-High│
- ┴─────────────┴────────────┴────────────┘
```
-
## Why LLMs Are Good at Agency
### 1. Language as Interface
**LLMs understand natural language**:
- Users can specify complex goals in English
- No formal logic notation required
- Ambiguity is okay—LLMs handle it
```
Expert System (1980s):
IF fever AND cough AND location=chest THEN bronchitis
LLM Agent (2025):
"I've had a cough for 3 days, especially when I lie down.
It's a wet cough. Should I be worried?"
```
### 2. Reasoning as Token Generation
**LLMs can reason step-by-step**:
- Chain-of-Thought prompting shows the reasoning
- We can read and verify each step
- Better than hidden neural reasoning
```python
# LLM Reasoning is Transparent
response = llm.generate("""
Problem: I need to find and summarize the top 5
quantum computing papers from 2024.
Let me think step-by-step:
1. First, I should search for papers from 2024
2. Filter for quantum computing topic
3. Rank by citations/impact
4. Retrieve full texts
5. Summarize each one
6. Compile into report
My first step: search for recent quantum computing papers
""")
# Output
```
### 3. In-Context Learning
**LLMs learn from examples within a prompt**:
- No need to retrain for new tasks
- Few-shot learning enables generalization
- Reduces need for task-specific training
```python
# Same model handles different tasks
agent = LLMAgent(model="claude-3.5-sonnet")
# Task 1
agent.run(
goal="Help customer with billing issue",
examples=[example1, example2, example3]
)
# Task 2
agent.run(
goal="Analyze sales trends from Q3 data",
examples=[example4, example5, example6]
)
# Same agent, different tasks, learned from examples
```
### 4. Tool Composition
**LLMs naturally compose tools**:
- Understand what each tool does
- Combine tools creatively
- No need to hand-code combinations
```python
# LLM automatically chains tools
tools = [search, fetch, summarize, save]
# Agent figures out
result = agent.run(
goal="Find and save summary of latest AI research"
)
```
---
## Lessons from Classical AI That Still Apply
### 1. Planning Matters
**Classical AI Insight**: Decomposing problems helps
**Modern Application**: Agents still need explicit planning phases
→ Use Chain-of-Thought to make planning explicit
### 2. State Representation Matters
**Classical AI Insight**: How you represent state determines solvability
**Modern Application**: Context window design is critical
→ Choose what to include in agent state carefully
### 3. Search and Exploration
**Classical AI Insight**: Search isn't the solution to everything
**Modern Application**: Depth-first search (thinking harder) works for complex tasks
→ Use Tree-of-Thought for hard reasoning problems
### 4. Explainability is Important
**Classical AI Insight**: Opaque systems are untrustworthy
**Modern Application**: Make agent reasoning transparent
→ Log decision traces, enable auditing
---
## Comparison Table: Era to Era
| Aspect| Expert Systems| RL Agents| LLM Agents|
|------|--|--|--|
| **When**| 1970s-1990s| 1990s-2020s| 2023-now|
| **Core Tech**| Rule encoding| Neural networks| Transformers|
| **Knowledge**| Manual| Trial & error| Pre-trained|
| **Agency**| Limited| Trial & error| Goal-directed|
| **Reasoning**| Explicit/Brittle| Implicit| Explicit/Flexible|
| **Tools**| Hardcoded| Limited| Dynamic|
| **Language**| None| Weak| Native|
| **Learning**| No| Yes (slow)| Yes (in-context)|
| **Maturity**| Peak| Growing| Rising|
| **Real-world use**| Limited| Games, robotics| Enterprise|
---
## 2025 Timeline: How We Got Here
```
2012: AlexNet wins ImageNet
↓ Deep learning begins
2017: Transformer paper (Attention is All You Need)
↓ Foundation for modern LLMs
2018: BERT, GPT-1 released
↓ Language models become serious
2020: GPT-3 shows few-shot learning
↓ Agents become theoretically possible
2023: GPT-4 function calling + LangChain maturity
↓ First production agents appear
2024: CrewAI production readiness + Claude 3.5
↓ Multi-agent systems production-ready
2025: 40% enterprise adoption of AI agents
↓ Agentic AI is mainstream
```
---
## Why the Timing Matters
**Four prerequisites had to align**:
1. **Models capable enough** - Claude 3.5, GPT-4o, Gemini 2.0
2. **Function calling standardized** - Consistent APIs across providers
3. **Frameworks production-ready** - LangGraph 1.0, CrewAI v1.0
4. **Enterprise confidence** - Proven deployments, ROI demonstrated
**Why not earlier?**
- Before 2023: Models weren't reliable enough for tool use
- Before 2024: Frameworks weren't production-grade
- Before 2025: No proven ROI for enterprise adoption
-
## What Changed from 2020 to 2025
### Technical
- Model quality increased 100x
- Cost decreased 100x (but think quality/cost: 10,000x improvement)
- Reasoning capability improved dramatically
- Tool use became reliable
### Engineering
- Frameworks went from research code to production systems
- DevOps for agents emerged (observability, monitoring)
- Enterprise integrations standardized
- Testing and safety practices matured
### Economic
- ROI demonstrated across industries
- Cost models understood
- Risk management frameworks built
- Regulatory clarity improving
---
## The Turning Point: 2025
**Why 2025 is special**:
1. **Capability crosses threshold** - Agents can handle real work
2. **Cost is reasonable** - Economics work at scale
3. **Frameworks are stable** - Production deployments possible
4. **Best practices exist** - We know how to build them
5. **Adoption is happening** - Gartner: 40% enterprise by 2026
---
## Key Takeaways
1. **We tried autonomous agents before** - Expert systems, RL agents failed
2. **LLMs solved the hard parts** - Language understanding, reasoning, generalization
3. **Timing matters** - Technical breakthroughs needed supporting infrastructure
4. **2025 is the inflection point** - When it all comes together
5. **Classical lessons still apply** - Planning, state representation, explainability
6. **The future is agentic** - But we're still in year 1 of adoption
-
## Next Steps
- [Move To Core Design Patterns](/01-agent-design/02-core-design-patterns/) - Learn the patterns
- [Or Jump To Architecture](/01-agent-design/03-architecture/) - Build systems
-
**Last Updated**: August 9, 2026