DEV Community

# pydantic

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Making DSPy reliable: self-correcting, schema-validated LLM outputs with automatic prompt optimization

Making DSPy reliable: self-correcting, schema-validated LLM outputs with automatic prompt optimization

1
2 min read
Stop hand-parsing LLM JSON: structured outputs with pydantic-ai

Stop hand-parsing LLM JSON: structured outputs with pydantic-ai

2
1
2 min read
The Dangerous Bugs Are the Ones That Don't Crash: Building Input Validation for My MCP Server

The Dangerous Bugs Are the Ones That Don't Crash: Building Input Validation for My MCP Server

11 min read
Pydantic V2 Discriminated Unions in FastAPI: Modeling Polymorphic AI Feature Configs Without Schema Sprawl

Pydantic V2 Discriminated Unions in FastAPI: Modeling Polymorphic AI Feature Configs Without Schema Sprawl

2
5 min read
Pydantic V2 discriminator pattern for MCP return types

Pydantic V2 discriminator pattern for MCP return types

2
1 min read
Building CafeTwin: what we shipped, and how Logfire + PydanticAI carried the weekend

Building CafeTwin: what we shipped, and how Logfire + PydanticAI carried the weekend

6 min read
Building PulseOps with Pydantic AI and Logfire: Predicting London Bus Delays Before They Happen

Building PulseOps with Pydantic AI and Logfire: Predicting London Bus Delays Before They Happen

4 min read
Structured LLM Outputs with Pydantic v2: Stop Parsing Freeform JSON and Start Typing Your AI

Structured LLM Outputs with Pydantic v2: Stop Parsing Freeform JSON and Start Typing Your AI

1
6 min read
Reframing the Developer Experience of Data Assembly: pydantic-resolve vs SQLAlchemy ORM Query Patterns

Reframing the Developer Experience of Data Assembly: pydantic-resolve vs SQLAlchemy ORM Query Patterns

13 min read
The Schema IS the Prompt: Rethinking AI-Native Software Design

The Schema IS the Prompt: Rethinking AI-Native Software Design

1
3 min read
From Pydantic Model to AI Agent in 10 Lines of Python

From Pydantic Model to AI Agent in 10 Lines of Python

4 min read
Stop writing fake test data by hand — I built a library that generates it for you

Stop writing fake test data by hand — I built a library that generates it for you

1
2 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.