Evidence receipt / belief
Published · transcript-backedSamuel Colvin: belief
6 Feb 2025 Latent Space Agent Engineering with Pydantic + Graphs — with Samuel Colvin
“I think the success of Pydantic and libraries like FastAPI that build on top of it means that today that's no longer controversial in Python.”
Source trail
Everything needed to verify it.
- Speaker
- Samuel Colvin
- Attribution
- Verified speaker
- Claim type
- belief
- Recorded
- 6 Feb 2025
- Publisher
- Latent Space
Transcript context
…Actually, maybe we'll hear it. Right from you, what is Pydantic and maybe a little bit of the origin story? The best name for it, which is not quite right, is a validation library. And we get some tension around that name because it doesn't just do validation, it will do coercion by default. We now have strict mode, so you can disable that coercion. But by default, if you say you want an integer field and you get in a string of 1, 2, 3, it will convert it to 123 and a bunch of other sensible conversions. And as you can imagine, the semantics around it. Exactly when you convert and when you don't, it's complicated, but because of that, it's more than just validation. Back in 2017, when I first started it, the different thing it was doing was using type hints to define your schema. That was controversial at the time. It was genuinely disapproved of by some people. I think the success of Pydantic and libraries like FastAPI that build on top of it means that today that's no longer controversial in Python. And indeed, lots of other people have copied that route, but yeah, it's a data validation library. It uses type hints for the for the most part and obviously does all the other stuff you want, like serialization on top of that. But yeah, that's the core. Do you have any fun stories on how JSON schemas ended up being kind of like the structure output standard for LLMs? And were you involved in any of these discussions? Because I know OpenAI was, you know, one of the early adopters. So did they reach out to you? Was there kind of like a structure output console in open source that people were talking about or was it just a random?…
Stored transcript either side of the excerpt. The highlighted words are the published quote; the surrounding text is unedited source, never generated.