Section
Pydantic
The latest Pydantic coverage from Bullquill: sourced, dated and explained.
1 POSTSUPDATED
IndexDate · Title · Reading time
No articles in this language here yet. Showing English.
-
How to get structured JSON output from an LLM in Python
One Pydantic model, three providers: send its JSON Schema to OpenAI, Claude or a local Ollama model, check for refusals and truncation, and retry with the validation error when the data is still wrong.