Production AI Agents with PydanticAI

Production AI Agents with PydanticAI

Nuno Bispo
This is a sample of the book's content.Buy on Leanpub

Table of Contents

Production AI Agents with PydanticAI

  • Preface
    • Who this book is for
    • The project you will build
    • How to read this book
    • Who this book is not for
  • Chapter 01 - Your PoC Is Not in Production
    • Failure mode 1: The silent retrieval miss
    • Failure mode 2: The unversioned prompt change
    • Failure mode 3: The cost blowup nobody saw
    • What the three failures have in common
    • Why Pydantic AI
    • What you will build
  • Chapter 02 - The First Agent
    • The output contract
    • Setup
    • The agent
    • Fetching issues
    • Rate limits
    • Running the classification
    • Transient API errors
    • What the disagreement tells you
    • What you have, and what you do not
    • Ship it
  • Chapter 03 - Shipping the Bad Version
    • What the deploy looks like
    • crontab -r deletes everything
    • Setup
    • Posting a comment
    • The polling loop
    • The crontab
    • Test on your fork first
    • The first comment
    • Why minimal beats elaborate
    • The embarrassing inventory
  • Chapter 04 - Tools With Dependency Injection
    • Setup
    • Tools as integrations, not magic
    • The first real test in this book
    • The tool-loop trap
Production AI Agents with PydanticAI/Chapter 04 - Tools With Dependency Injection

Chapter 04 - Tools With Dependency Injection

https://leanpub.com/production-ai-agents-with-pydantic-ai

Setup

https://leanpub.com/production-ai-agents-with-pydantic-ai

Tools as integrations, not magic

https://leanpub.com/production-ai-agents-with-pydantic-ai

The first real test in this book

https://leanpub.com/production-ai-agents-with-pydantic-ai

The tool-loop trap

https://leanpub.com/production-ai-agents-with-pydantic-ai

Previous

Chapter 03 - Shipping the Bad Version

In this chapter

  • Chapter 04 - Tools With Dependency Injection
  • Setup
  • Tools as integrations, not magic
  • The first real test in this book
  • The tool-loop trap