Latent Space: The AI Engineer Podcast

Agent Engineering with Pydantic + Graphs — with Samuel Colvin

296 snips
Feb 6, 2025
Samuel Colvin, the creator of Pydantic and Logfire, discusses the evolution of Pydantic as a critical tool in AI engineering. He reveals its staggering monthly downloads and integration with OpenAI. Colvin also explores the innovative use of graphs in agent engineering, emphasizing their importance for control and observability. Furthermore, he shares insights on the challenges of integrating AI models and the quest for adaptable APIs in observability. He also introduces Pydantic.run as a resource for better user experiences.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
00:00 / 00:00

Pydantic's Unorthodox Development

  • Samuel Colvin worked on Pydantic for 1.5 years before starting a company.
  • Rewriting Pydantic in Rust, although unorthodox, proved beneficial, improving a major AI company's time-to-first-token metric.
00:00 / 00:00

Engineering Quality in AI Frameworks

  • Many AI agent frameworks lack standard software engineering best practices.
  • Pydantic AI prioritizes production readiness and type safety, even if it increases complexity.
00:00 / 00:00

Agents and Type-Safe Graphs

  • Pydantic AI uses agents as fundamental building blocks, offering structured return types and tools.
  • Initially resistant, Colvin now embraces type-safe graphs for complex workflows, addressing limitations of standard flow control.
Get the Snipd Podcast app to discover more snips from this episode
Get the app