World's Fair 2025
Human seeded Evals — Samuel Colvin, Pydantic
Overview
This talk focuses on building AI applications more quickly and safely, emphasizing the importance of type safety in refactoring and avoiding bugs. It introduces techniques for developing AI applications, particularly highlighting the use of Pydantic AI for extracting structured data and managing agentic loops. The discussion also touches upon the challenges of determining when an agent loop should terminate and the benefits of using validation errors to guide model retries.
Who should watch
- AI engineers and builders looking to develop applications more efficiently.
- Product Managers and engineers seeking to prototype and ship AI features reliably.
- Developers interested in type-safe frameworks for AI development.
- Those facing challenges with agent loop termination and error handling.
Key takeaways
- Building reliable and scalable applications remains challenging, potentially more so with GenAI integration.
- Type safety is crucial for refactoring AI applications with confidence and speed, especially when using coding agents like Cursor.
- Frameworks that are not type-safe, such as Langchain or Langraph, can hinder refactoring efforts.
- An agent is defined by an environment, tools, a system prompt, and a loop involving LLM calls, tool execution, and state updates.
- A common challenge in agentic loops is determining the exit condition, which can be managed by specific tool types or structured LLM outputs.
- Pydantic AI can extract structured data from unstructured text, even for complex schemas, and can be integrated into agentic loops.
- Returning validation errors to the LLM can guide it to correct its output and successfully pass validation checks.
- Pydantic AI's agent framework supports type-safe dependencies for tools, ensuring that tool usage and data access are type-checked at runtime.
Notable quotes
*We still want to build reliable scalable applications and that is still hard arguably it's actually harder with Gen AI than it was before.*
*If you build your application in a type safe way, if you use frameworks that allow it to be type safe, you can refactor it with confidence much more quickly.*
Unofficial community note. Prefer the recording for nuance.