Pydantic AI
Hacker ApprovedRanked 6 of 28 agent frameworks by recommenders
Developers like it for handling the tool-call loop, structured outputs and typed LLM calls with little to learn. Caveat: good observability requires the paid SaaS.
Developers like it for handling the tool-call loop, structured outputs and typed LLM calls with little to learn. Caveat: good observability requires the paid SaaS.
33 people gave an opinion
- recommend it
- 27
- criticize it
- 6
- approval share
- 82%
Recommended in 9 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: not recommended
- July 2026: not recommended
- August 2026: not recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 27 people recommend itNeeds 10 or more, met.
- 4.5 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 9 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Handles tool-call loop and composition
“Yes, Pydantic ai successfully abstracts the tool call loop, and makes it easy to test out different models.”
Comment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)” “We're using pydantic AI where the entire Agent loop is taken care of by the framework. Highly recommend.”
Comment from 3 Nov 2025 on Hacker News “had good luck with using PydanticAI which does these core operations well”
Comment from 22 Nov 2025 in “Agent design is still hard” - Comment from 30 Mar 2026 on Hacker News
Typed structured LLM outputs
“They allow you to structure LLM calls within the broader control flow of the program, with typed inputs and outputs.”
Comment from 7 May 2026 in “Agents need control flow, not more prompts” “I found Pydantic AI particularly helpful for handling the structured outputs”
Comment from 29 Dec 2025 in “Architecture of an autonomous startup-idea generator” Easy switching between LLM providers
“Yes, Pydantic ai successfully abstracts the tool call loop, and makes it easy to test out different models.”
Comment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)” “has a great set of abstractions over LLM providers”
Comment from 21 Oct 2026 in “Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor” Lightweight, stays out of the way
“If you are looking for lightweight frameworks, consider smolagents or Pydantic AI.”
Comment from 18 Dec 2025 in “Getting a Gemini API key is an exercise in frustration” “seems more lightweight and gets out of the way”
Comment from 27 Dec 2025 in “All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)”
What people warn about
Each mark is one comment
Observability pushes paid cloud SaaS
“Pydantic is a VC backed business now trying to funnel people into using their paid cloud services.”
Comment from 24 Feb 2026 in “Build your own custom AI CLI with Pydantic AI” “out of the box it doesn't have good observability, you would have to use their proprietary SaaS”
Comment from 22 Nov 2025 in “Agent design is still hard”
Other agent frameworks people recommend
The four most recommended other agent frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Claude Agent SDK | 36 | 25 | 59% | 11 | — | — |
| LangChain | 32 | 79 | 29% | 10 | 1 yr3 owners | — |
| Mastra | 32 | 3 | 91% | 10 | — | Approved |
| LangGraph | 31 | 23 | 57% | 12 | — | — |
| Pydantic AIThis page | 27 | 6 | 82% | 9 | — | Approved |
What people said
28 of the 33 comments that mention it, newest first. Each links to the original comment.
“has a great set of abstractions over LLM providers”
“it's been doing pretty well for my use cases”
“I've replaced OpenCode with a thin wrapper around Pydantic-AI”
“Getting those agent systems to behave reliably was often annoying and tricky.”
“pydantic-ai has been a superb addition to the AI engineering toolkit”
“I think this is a good usecase for temporal + pydantic-ai”
“They allow you to structure LLM calls within the broader control flow of the program, with typed inputs and outputs.”
“to get off claude API pricing”
“I'm going to stick with pydantic ai”
“You don't build composition logic anymore -- the framework handles it.”
“I would rather use something like Pydantic AI when I already use Pydantic for so much of the rest.”
“it's night and day when trying to get something done with pydantic-ai”
“Pydantic is a VC backed business now trying to funnel people into using their paid cloud services.”
“A great looking framework for building an interactive development experience on top of the already awesome Pydantic AI.”
“I think the PydanticAI framework has the right approach of encouraging Agent Delegation & sequential workflow first”
“The framework is great for defining agents”
“I found Pydantic AI particularly helpful for handling the structured outputs”
“Yes, Pydantic ai successfully abstracts the tool call loop, and makes it easy to test out different models.”
“seems more lightweight and gets out of the way”
“If you are looking for lightweight frameworks, consider smolagents or Pydantic AI.”
“one of the fastest growing agent frameworks”
“out of the box it doesn't have good observability, you would have to use their proprietary SaaS”
“had good luck with using PydanticAI which does these core operations well”
“I like Pydantic AI framework and got myself a decent working solution”
“but using cc is the first that has felt magic”
“it builds on existing developer knowledge and there is not much to learn in the framework itself”
“it just can't match the productivity of typescript.”
“We're using pydantic AI where the entire Agent loop is taken care of by the framework. Highly recommend.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.