Skip to content
Instant download · PDF + web edition · Free sample of every book · 30-day refund promise
Latent Library Browse books
AI Engineering

AI Agents in Practice

Designing Assistants That Plan, Use Tools and Stay Safe

Pages
81
Chapters
17
Level
Advanced
Format
E-book

About this book

An AI agent does more than answer: it decides which steps to take, calls tools such as search, databases or email, looks at the results and keeps going until the job is done. That power brings new risks, from runaway loops to actions nobody approved.

AI Agents in Practice is a design guide for building agents that are useful and safe. It explains the agent loop, how to design tools a model can use correctly, planning and task decomposition, short- and long-term memory, and how to put permissions, confirmations and human oversight in the right places. It also covers testing and monitoring, which are harder for agents than for ordinary software.

The last chapter presents proven design patterns, and, just as valuable, the signs that a simpler workflow would serve you better than an agent.

What you will learn

  • What distinguishes an agent from a chatbot or a fixed workflow
  • How to design tools and tool descriptions that models use correctly
  • The agent loop, stopping conditions and error handling
  • Planning, decomposition, memory and state management
  • Guardrails: permissions, confirmations, sandboxing and human review
  • Testing, tracing and monitoring agents in production
  • When a workflow or state machine beats a free-roaming agent
  • How to threat-model an agent and calculate its cost and reliability
  • Multi-agent systems, computer-use and coding agents, and a complete case study

Table of contents

  1. IntroductionIntroduction
  2. Chapter 1What Makes Something an Agent
  3. Chapter 2Tools: Giving a Model Hands
  4. Chapter 3The Agent Loop
  5. Chapter 4Planning and Decomposition
  6. Chapter 5Memory and State
  7. Chapter 6Workflows and State Machines
  8. Chapter 7Multi-Agent Systems
  9. Chapter 8Agents That Use Computers
  10. Chapter 9Guardrails and Human Oversight
  11. Chapter 10Threat Modelling an Agent
  12. Chapter 11Testing and Monitoring Agents
  13. Chapter 12Cost, Latency and Reliability
  14. Chapter 13Case Study: An Invoice-Chasing Assistant
  15. Chapter 14Coding Agents
  16. Chapter 15Introducing Agents to a Team
  17. Chapter 16Choosing Models, Frameworks and Protocols
  18. Chapter 17Patterns, and When Not to Build an Agent
  19. AppendixAgent Design Review Worksheet
  20. AppendixExercises
  21. GlossaryGlossary

Who this book is for

Software engineers, technical leads and product builders designing AI features that take actions. Familiarity with language models and basic programming is assumed.

Details

FormatPDF + web edition
Length81 pages (approx.)
Chapters17
LevelAdvanced
LanguageEnglish
TopicAI Engineering
AuthorLatent Library Editorial

Keep reading

You may also like

All books
$12.99
Details