From Neural Networks to Autonomous Agents: How It Works, How to Build It, and What It Means
Introduction
- What this book covers
- How to read this book
Chapter 1: What Is Intelligence, Anyway?
- An Agent at Work
- Defining Intelligence
- The Long History of AI
- Narrow AI, General AI, and the Hype Gap
- Why This Book Exists
Chapter 2: How Machines Learn
- Patterns Everywhere
- Training, Testing, and the Illusion of Understanding
- The Magic of Gradient Descent
- When Learning Fails
- From Rules to Learning
Chapter 3: The Brain Inspired the Network
- Biological Neurons vs. Artificial Neurons
- Layers of Abstraction
- Deep Learning and the Scaling Phenomenon
- Specialized Architectures
- What Networks Actually Represent: Embeddings and the Geometry of Meaning
Chapter 4: The Transformer Revolution
- Why Previous Models Hit a Wall
- Attention Explained
- Self-Attention and Context
- Encoder and Decoder
- The Big Paper
Chapter 5: What Is a Large Language Model?
- Language Modeling as a Prediction Game
- The Data Diet
- Size, Scale, and Emergent Abilities
- Foundation Models and the Shift in AI
- What LLMs Are Not
Chapter 6: Inside the LLM Brain
- Tokenization
- Context Windows and Working Memory
- The Inference Dance
- Temperature, Sampling, and Why LLMs Are Probabilistic
- The Hidden Space
Chapter 7: Prompting and the Art of Talking to LLMs
- The Prompt as Program
- Zero-Shot, Few-Shot, and Example-Based Prompting
- Chain of Thought and Structured Reasoning
- System Prompts and Role-Playing
- When Prompting Fails
Chapter 8: Reasoning, Hallucination, and the Illusion of Understanding
- Statistical Reasoning vs. Human Reasoning
- Chain of Thought as a Tool
- The Hallucination Problem
- Confidently Wrong
- Tools for Checking and Grounding
Chapter 9: From Chatbots to Agents
- The Chatbot Paradigm
- The Agent Paradigm
- What Makes an Agent “Agentic”
- A Simple Example: Email Assistant vs. Email Agent
- The Spectrum of Autonomy
Chapter 10: The Anatomy of an AI Agent
- The Core Loop: Perceive, Think, Act
- The Brain: The LLM as the Central Reasoning Component
- The Toolbox: Tools, APIs, and How Agents Call External Functions
- The Memory System: Short-Term Context, Long-Term Storage, and Knowledge Retrieval
- The Orchestrator: What Coordinates the Agent’s Behavior and Enforces Constraints
Chapter 11: How Agents Use Tools
- Function Calling Explained
- Web Search and Browsing
- Code as a Tool
- Integrating with Business Systems
- Tool Selection and Chaining
Chapter 12: Memory, Knowledge, and Retrieval
- The Memory Problem
- Short-Term Memory: Conversational Context and Working Memory
- Long-Term Memory: Vector Databases, Knowledge Bases, and Persistent Storage
- Retrieval-Augmented Generation
- Embeddings and Similarity Search
Chapter 13: Planning and Decision Making
- Goal Decomposition
- Planning Algorithms
- Reflection and Self-Correction
- Uncertainty and Adaptation
- The Limits of AI Planning
Chapter 14: Multi-Agent Systems
- Why Multiple Agents?
- Communication Protocols
- Roles and Responsibilities
- Multi-Agent Frameworks
- When More Agents Help and When They Hurt
Chapter 15: Building an Agentic System, Step by Step
- Problem Definition
- Model Selection
- Designing the Agent Architecture
- Prompt Engineering for Agents
- Permissions, Guardrails, and Human Oversight
Chapter 16: Guardrails, Safety, and Control
- Why Agents Need Guardrails
- Input and Output Filtering
- Tool-Level Safety
- Human-in-the-Loop Patterns
- Monitoring and Kill Switches
Chapter 17: Security Risks and Attack Vectors
- Prompt Injection Explained
- Indirect Prompt Injection
- Data Leakage and Privacy
- Tool Abuse and Escalation
- The Attacker’s View
Chapter 18: Reliability, Evaluation, and Monitoring
- Defining Success
- Evaluation Frameworks
- Red Teaming
- Observability
- Continuous Improvement
Chapter 19: Real-World Applications
- Software Development and Coding Assistants
- Research and Analysis
- Customer Service and Support
- Business Operations
- Healthcare, Finance, and Regulated Industries
Chapter 20: Limitations and the Realistic Horizon
- The Hard Problems
- Context and Attention Limits
- The Reliability Gap
- Cost and Latency
- What’s Coming Next
Chapter 21: The Bigger Picture: Ethics, Society, and the Future
- Jobs, Automation, and Work
- Centralization and Power
- The Environment
- Alignment and Control
- Navigating the Transition
Chapter 22: Conclusion: Agentic AI, Clearly
- What We Have Learned
- Agentic AI in Context
- How to Think About Agentic AI Going Forward
- The Human Element
