AI Engineering Podcast artwork

AI Engineering Podcast · Tobias Macey

Building Production-Ready AI Agents with Pydantic AI

Summary In this episode of the AI Engineering Podcast Samuel Colvin, creator of Pydantic and founder of Pydantic Inc, talks about Pydantic AI - a type-safe framework for building structured AI agents in Python. Samuel explains why he built Pydantic AI to bring FastAPI-like ergonomics and production-grade engineering to agents, focusing on strong typing, minimal abstractions, and reliability, observability, and stability. He explores the evolving agent ecosystem, patterns for single vs. many agents, graphs vs. durable execution, and how Pydantic AI approaches structured I/O, tool calling, and MCP with type safety in mind. Samuel also shares insights on design trade-offs, model-provider churn, schema unification, safe code execution, security gaps, and the importance of open standards and OpenTelemetry for observability. Announcements Hello and welcome to the AI Engineering Podcast, your guide to the fast-moving world of building scalable and maintainable AI systems When ML teams try to run complex workflows through traditional orchestration tools, they hit walls. Cash App discovered this with their fraud detection models - they needed flexible compute, isolated environments, and seamless data exchange between workflows, but their existing tools couldn't deliver. That's why Cash App rely on Prefect. Now their ML workflows run on whatever infrastructure each model needs across Google Cloud, AWS, and Databricks. Custom packages stay isolated. Model outputs flow seamlessly between workflows. Companies like Whoop and 1Password also trust Prefect for their critical workflows. But Prefect didn't stop there. They just launched FastMCP - production-ready infrastructure for AI tools. You get Prefect's orchestration plus instant OAuth, serverless scaling, and blazing-fast Python execution. Deploy your AI tools once, connect to Claude, Cursor, or any MCP client. No more building auth flows or managing servers. Prefect orchestrates your ML pipeline. FastMCP handles your AI tool infrastructure. See what Prefect and Fast MCP can do for your AI workflows at aiengineeringpodcast.com/prefect today. Your host is Tobias Macey and today I'm interviewing Samuel Colvin about the Pydantic AI framework for building structured AI agents Interview Introduction How did you get involved in machine learning? Can you describe what Pydantic AI is and the story behind it? What are the core use cases and capabilities that you are focusing on with PydanticAI? The agent SDK landscape has been incredibly crowded and volatile since the introduction of LangChain and LlamaIndex. Can you give your summary of the current state of the ecosystem?What are the broad categories that you use when evaluating the various frameworks? Beyond the volatility of the frameworks, there is also a rapid pace of evolution in the different styles/patterns of agents. What are the patterns and integrations that Pydantic AI is best suited for? Can you describe the overall design/architecture of the...

Oct 72025
50 minlength
323transcript lines
Publishertranscript source

Transcript first 15 of 323 lines

0:05Hello, and welcome to the AI Engineering podcast,

0:08your guide to the fast moving world of building scalable and maintainable

0:11AI systems.

0:18When ML teams try to run complex workflows through traditional orchestration tools, they hit walls.

0:24Cash App discovered this with their fraud detection models. They needed flexible compute, isolated environments, and seamless data exchange between workflows, but their existing tools couldn't deliver.

0:34That's why Cash App relies on Prefect.

0:37Now their ML workflows run on whatever infrastructure each model needs across Google Cloud, AWS, and Databricks.

0:43Custom packages stay isolated. Model outputs flow seamlessly between workflows.

0:49Companies like WHOOP and 1Password also trust Prefect for their critical workflows, but Prefect didn't stop there.

0:55They just launched FastMCP,

0:57production ready infrastructure for AI tools.

1:00You get Prefect's orchestration plus instant OAuth, serverless scaling, and blazing fast Python execution.

1:06Deploy your AI tools once. Connect to Cloud, Cursor, or any MCP client. No more building auth flows or managing servers.

1:14Prefect orchestrates your ML pipeline.

1:16FastMCP

More AI Engineering Podcast episodes →