The Pydantic Stack: Pydantic Validation, Pydantic AI, Pydantic Logfire, Pydantic Evals, and Pydantic AI Gateway

London
Pinned Tweet
One Jev request, three scores: a policy label, a rubric level, and the probability the reply asks for a password, all recorded in Logfire. Modeled cost of 1M evaluated replies: $62, vs $4,542 with Braintrust before data charges. Blogpost pydantic.io/n4PWy
5
6
53
2,660
Jev is now on Pydantic AI Gateway. One key with the same spend and guardrails as your other models. Still typed questions + probabilities, not chat. Read the post: pydantic.io/qMS2y
23
818
Imagine what you could do with a sandbox that starts in 1 millisecond...
Fuck it, still early but here goes ... We've just released Monty v1 - a Python sandbox that starts in 1 millisecond, not 1.5 seconds. I just ran 10k sandboxed scripts in 674ms, something that would take a cloud sandbox > 3 hours. This removes the biggest drawback of letting agents write code. The future is fast. Even better, it's open source, you can install it from PyPI, npm or Crates now. Serviced platform coming soon. Please get in touch if you want to be a design partner! Who should try it? ⚡ if you care about startup time, use Monty ⚡ if you care about long-lived sessions, use Monty - Monty can be dumped and resumed at any external function call ⚡ if you care about accessing functions in the agent/host, use Monty - Monty makes it trivial to expose local functions into the sandbox ⚡ if you care about scale, use Monty - Monty workers use as little as 2MB of memory, meaning you can run thousands of concurrent sandboxes on a single machine ⚡ if you care about security, use Monty - we've run 3 rounds of bounty program and thousands of researchers have tried to break into our sandbox, meaning it should be secure to run untrusted code Who should avoid it? 🚫 if you like to take a coffee break while waiting for sandboxes to start, DO NOT use Monty 🚫 if you enjoy the challenge of routing API requests from sandboxes through your corporate network to access state in your agent without exposing secrets to the sandbox, DO NOT use Monty 🚫 if your agent really needs to install packages from PyPI, Monty won't help you yet (spoiler: it probably doesn't) pydantic.dev/docs/monty/get-…
3
2
41
4,041
Whichever new model has you most excited, Pydantic AI has you covered. Claude Opus 5.5 from @AnthropicAI and GPT-6 Sol and Luna from @OpenAI, supported on launch day. And Jev from @typesafeai, not even a week old. Upgrade, then change one string. github.com/pydantic/pydantic…
4
4
53
2,262
Redesigned dashboards are live in Pydantic Logfire: A new chart palette, headline numbers you can compare at a glance, auto-saving drafts, and one-click cloning for built-in dashboards. Read up on what changed, what's next, and the design thinking behind it: pydantic.io/QdevM
1
26
1,611
Pydantic retweeted
Replying to @pydantic
@pydantic has been type-safe from the beginning! Now with Jev powering your Pydantic AI agent calls, they’ll be returning faster than ever ⚡️⚡️
Pydantic AI agents now run on Jev, the classifier from @typesafeai. Jev doesn't write text, it answers typed questions. So the output_type you already wrote is the question, and the answer comes back as your model, one confidence per field. pydantic.io/8iAZ9
12
23
270
57,900
Pydantic retweeted
As a Python enthusiast, I get excited about code that feels truly Pythonic. Great SDKs, natural APIs, and thoughtful design and architecture. That craft means even more in the age of AI-generated code 🐍 Thanks for having me @modal @pydantic @samuelcolvin
1
6
355
big fans of pydantic! we use it a lot at typesafe
Pydantic AI agents now run on Jev, the classifier from @typesafeai. Jev doesn't write text, it answers typed questions. So the output_type you already wrote is the question, and the answer comes back as your model, one confidence per field. pydantic.io/8iAZ9
1
4
20
3,583
Try Monty V1 beta now! > 𝚞𝚟 𝚊𝚍𝚍 𝚙𝚢𝚍𝚊𝚗𝚝𝚒𝚌-𝚖𝚘𝚗𝚝𝚢==𝟷.𝟶.𝟶𝚋𝟸 > 𝚗𝚙𝚖 𝚒𝚗𝚜𝚝𝚊𝚕𝚕 @𝚙𝚢𝚍𝚊𝚗𝚝𝚒𝚌/𝚖𝚘𝚗𝚝𝚢@𝟷.𝟶.𝟶-𝚋𝚎𝚝𝚊.𝟸 > 𝚌𝚊𝚛𝚐𝚘 𝚊𝚍𝚍 𝚖𝚘𝚗𝚝𝚢@𝟷.𝟶.𝟶-𝚋𝚎𝚝𝚊.𝟸
I've published @pydantic Monty V1 beta. We had to significantly refactor the wire protocol based on bounty program feedback, hence the beta release. Masses changed since v0.0.23, please try now! github.com/pydantic/monty/re…
1
4
48
5,531
[1/4] We put @pydantic’s Pydantic AI through a production-style deployment to see whether typed agent primitives could reduce repetitive glue code—and how its behavior compared with LangGraph across a 160-scenario test matrix.
3
1
5
1,111
Pydantic retweeted
In the process of migrating the repo I built at Braintrust for @HamelHusain and @sh_reya's AI evals course (github.com/braintrustdata/ai…) to an all-@pydantic stack: PydanticAI + Logfire + pydantic-evals. Been living in these tools for a while now and the progress on observability and evals is impressive. I'll be blogging and posting findings here as I go, including where I think models like @typesafeai's Jev fit into the end-to-end evals pipeline. Stay tuned ...
3
11
88
4,884
Jev picks the route now, and fills it in. Give it two output types and a tool, and it works out which one the text calls for, then writes that route's fields or arguments itself. No language model in the chain.
16
10
102
4,751
Your evals judge doesn't have to write text either. LLMJudge and GEval now run on a model that has none, so Jev can score your cases: a rubric becomes a typed question. LLMJudge(rubric='The ticket is urgent', model='typesafe:jev-latest')
1
2
11
720
Pydantic retweeted
Jev by @typesafeai is incredible. But I wanted moar type-safety and something moar pythonic. To that end... Introducing jev.BaseModel, a drop-in replacement for Pydantic BaseModel. Coerce unstructured state to structured outputs with jev in milliseconds.
7
6
101
6,708
Pydantic retweeted
Jev vs. sonnet with @pydantic AI. cost: sonnet $0.0026 vs. jev $0.001 time: sonnet 2.36s vs. jev 643ms Shown in Pydantic Logfire. code (just 17 lines): gist.github.com/samuelcolvin…
12
6
96
6,488
Pydantic retweeted
I created an MCP server so my team can draft emails for me. Just one tool: draft_email(to, subject, body_markdown, cc, bcc) I check my drafts and click send. Running on @render free tier. instrumented with @pydantic Logfire, using GH/samuelcolvin/cloudkv for storage. Free to run. (not open source because it's mostly vibe coded)
7
1
30
2,806
Working on a Pydantic AI integration now. Watch this space.
After co-inventing ChatGPT, I kept asking myself: why have superhuman chat models not led to AGI? I’ve spent the last 2 years in stealth building a new way to train models (RLCD), and a new type of frontier AI model that we are releasing today: Jev • 20-200x faster • 40-400x cheaper (w/ output tokens free) • Frontier composable intelligence optimized for decisions AFAICT the shortest path to AI-based economic revolution
6
3
96
5,532
Pydantic AI agents now run on Jev, the classifier from @typesafeai. Jev doesn't write text, it answers typed questions. So the output_type you already wrote is the question, and the answer comes back as your model, one confidence per field. pydantic.io/8iAZ9
2
4
558
Starting in 40 minutes: @Marcelotryle on what that feedback loop actually needs at AGNTCon + MCPCon Europe in Amsterdam. Self-healing agents sound inevitable: an agent fails, finds the cause, proposes a fix, validates it. Without observability all of it is just guessing. 10:20 CEST, G104 + G105. #AGNTCon #MCPCon
1
9
1,004
Pydantic AI agents now run on Jev, the classifier from @typesafeai. Jev doesn't write text, it answers typed questions. So the output_type you already wrote is the question, and the answer comes back as your model, one confidence per field. pydantic.io/8iAZ9
42
62
718
1,360,443
Attach tools and Jev picks which one the text calls for. It calls the ones that take no arguments itself, and raises the ones that need arguments so FallbackModel hands that step to an LLM. On 120 tickets, 115 never left Jev.
1
20
4,621
6x faster than gpt-5.6-luna, at about a third of the cost. Same 120 tickets, measured with Pydantic Evals. Accuracy stays out of it: at that sample size the models don't separate. Speed and cost are the gaps that hold up.
1
1
26
2,543