← Browse

Europe 2026

Agent Optimization with Pydantic AI: GEPA, Evals, Feedback Loops — Samuel Colvin, Pydantic

Samuel Colvin

Overview

This talk introduces Pydantic AI's agent optimization capabilities, focusing on the Jeppa library for prompt optimization and managed variables for dynamic configuration. The core idea is to systematically improve agent performance by iteratively refining prompts and configurations, demonstrated through a practical example of analyzing political family ties in MP data. The presentation highlights how these tools can lead to more accurate and efficient AI agents.

Who should watch

Key takeaways

Notable quotes

*Jeppa is ultimately an optimization library. It optimizes a string. Now, that string can be a simple text prompt or it can be some JSON data.*
*Managed variables... they don't have to be just text. They can be effectively any object that you can define with a Pydantic model.*
*The point is that we can update multiple different values. So, if I instead ask you ask it... we can use this to change variables and ultimately go and like experiment with what new prompts or what new models or temperature or whatever it might be, how they behave in production.*

Watch on YouTube →

Unofficial community note. Prefer the recording for nuance.