Projects
View on GitHub Awesome Pydantic AI
vstorm-co/awesome-pydantic-ai
About
An opinionated list of awesome Pydantic-AI frameworks, libraries, software and resources.
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +3
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalAwesome Pydantic AI 
An opinionated list of awesome Pydantic AI frameworks, libraries, software and resources.
Pydantic AI is a Python agent framework designed to make it easier to build production-grade applications with Generative AI. It brings the "FastAPI feeling" to AI development with type safety, dependency injection, and structured outputs.
Contents
- Official Resources
- Frameworks & Libraries
- Templates & Boilerplates
- Examples & Tutorials
- Observability
- Articles & Blog Posts
- Case Studies
- Contributing
Official Resources
- Pydantic AI Documentation - Official documentation with guides, API reference, and examples.
- Pydantic AI Repository - Official GitHub repository. Agent framework with model-agnostic architecture, type safety, dependency injection, tool integration, and structured outputs.
Frameworks & Libraries
- pai-agent-sdk - Application framework for building AI agents with Pydantic AI. Provides full developer control without abstraction overhead, featuring environment-based architecture, resumable sessions, hierarchical subagents, and human-in-the-loop approval workflows.
- pydantic-deep - Python framework for building production-grade autonomous agents. Extends Pydantic AI with agent orchestration, task planning, subagent delegation, context management, and multiple backend support.
- pydantic-ai-shields - Drop-in guardrails for Pydantic AI agents. Provides cost and budget caps, input, output and tool blocking, and PII and secret redaction as capabilities.
- AtMem - Local-first governed memory using Pydantic AI Hooks for scoped retrieval, context injection, exposure evidence, lifecycle controls, and audit review.
- pydantic-ai-backend - File storage, sandbox backends, and console toolset for pydantic-ai agents. Includes LocalBackend, StateBackend, DockerSandbox, and pre-configured Docker runtimes.
- pydantic-ai-todo - Standalone task planning library for pydantic-ai agents. Provides
read_todosandwrite_todostools with flexible storage backends. - subagents-pydantic-ai - Multi-agent orchestration library with dual-mode execution (sync/async), dynamic agent creation, and parent-child communication via
ask_parenttool. - summarization-pydantic-ai - Automatic conversation summarization and context management. Provides
SummarizationProcessorfor LLM-based summaries andSlidingWindowProcessorfor zero-cost message trimming. - pydantic-ai-filesystem-sandbox - Secure filesystem sandbox toolset with LLM-friendly errors. Provides sandboxing, read/write control, granular permissions, and human-in-the-loop approval workflows.
- pydantic-ai-skills - Standardized framework for building and managing Agent Skills. Features progressive disclosure, type-safe design, multi-directory support, and Anthropic Agent Skills compatibility.
- pydantic-ai-toolguard - Deny-first tool authorization capability for pydantic-ai agents. Implements glob-based permission rules, parameter conditions, schedule windows, rate limiting, approval workflows, and append-only audit logging. Built on the AgentsID permission specification.
- pydantic-collab - Multi-agent orchestration framework for building agent teams. Agents collaborate via handoffs, consultations (tool calls), and shared memory on top of pre-built and custom network topologies, Logfire observability included.
- semantix-ai - Semantic output validation for Pydantic AI agents. Validates that LLM outputs match natural-language intents using local NLI inference (~15ms, no API key). Integrates with
output_validatorandModelRetryfor automatic self-correction. - pydantic-ai-ejentum - Pydantic AI toolset wrapping the Ejentum Reasoning Harness.
EjentumToolsetsubclassesFunctionToolsetand registers four agent-callable tools (harness_reasoning,harness_code,harness_anti_deception,harness_memory). Each call returns a structured cognitive scaffold (named failure pattern, executable procedure, suppression vectors, falsification test) the model reads internally to shape its next response. - fedotmas-harness - Orchestrates Pydantic AI agents into common multi-agent patterns with a tiny engine where any function or state machine is also an agent.
- pydantic-ai-chdb - Analytical SQL capability backed by chDB, the in-process ClickHouse engine.
ChDBCapabilityregisters query and schema-discovery tools over local files (Parquet/CSV/JSON), object storage, and remote databases — no server or credentials, engine-level read-only default, and typed engine errors mapped toModelRetryfor automatic self-correction. Listed under Third-Party Capabilities in the official Pydantic AI docs. - mash-core - Provider-agnostic LLM-judge core built on Pydantic AI: the JudgeDim/JudgeScore contract, cost-aware model routing across Anthropic, OpenRouter, and OpenAI-compatible providers, and retry-with-backoff tuned for judge calls.
- AgenticOS - Open-source, self-hosted workspace for company AI agents built on Pydantic AI. Agents are built in the browser, shared in team chats and run under budgets, approvals and an audit log.
- Call4Agents - Makes approved Pydantic AI tool calls safe to retry: a crash or resume does not run them twice, and an approval only runs the exact call the person saw.
- LLMSlim - Token-budget history processor for Pydantic AI agents:
llmslim_history_processorplugs intoProcessHistoryand compresses older text and tool output locally with no model call, keeping tool calls paired with their returns. - tradefloor - Simulated stock market for testing trading agents. Its
PydanticAIAdapterruns a Pydantic AI agent inside a market where its orders move prices, scores it across many markets, and records the model's answers so the run replays without an API key.
Templates & Boilerplates
- full-stack-ai-agent-template - Production-ready project generator for AI/LLM applications. Combines FastAPI backend with Next.js 15 frontend, WebSocket streaming, JWT auth, multiple database options, and 20+ enterprise integrations.
Examples & Tutorials
- pydantic-ai-examples - Curated collection of examples demonstrating Pydantic AI usage including direct model requests, sentiment classification, dynamic classification, local models with Ollama, and conversation history management.
- pydantic-ai-rlm - Recursive Language Models with Pydantic AI.
- Pydantic AI Walkthrough - Interactive notebook covering agents, structured outputs, tool use, dependency injection, and building a Gradio chat UI with Pydantic AI. Created by Nicolai Thomsen.
- Pydantic AI: Build Type-Safe LLM Agents in Python - RealPython tutorial on creating language model agents with validated structured outputs, function calling, and dependency injection.
- Add live web search to a Pydantic AI agent - Guide to adding live web search via MCPServerStdio (x402 pay-per-call wallet) or @agent.tool_plain REST tools with a free API key. Covers all five tools: web_search, news_search, image_search, scrape, research.
- jev-research-pipeline - Daily research-monitoring pipeline that uses Pydantic AI's native typesafe: model (TypeSafe Jev) for per-question source screening and a Qwen model through the Alibaba provider for report prose, with OpenTelemetry tracing.
- AI Agents with PydanticAI - Free eight-lesson Python course on tools, multi-agent patterns, memory, testing and deployment, with downloadable MIT-licensed examples.
Observability
- Pydantic Logfire - Observability platform for Python applications built by the Pydantic team. Provides logging, tracing, metrics with SQL query interface, OpenTelemetry foundation, and native Pydantic integration.
- OrcaReplay - Records a Pydantic AI agent's provider exchange at the wire level and replays it offline with no model called; run it as
orca record generic-openai -- python your_agent.py, which movesOPENAI_BASE_URL— the variableOpenAIProviderhonours, measured on pydantic-ai-slim 2.43.0 (it ignoresOPENAI_API_BASE). - Rius - Hosted, OpenTelemetry-native observability for AI agents by GlassFlow. Records Pydantic AI's own agent run, model request and tool call spans as traces with token counts and cost, via an MIT-licensed Python SDK (guide).
Articles & Blog Posts
- Building Production-Grade AI Agents: How We Brought Deep Agent Patterns to Pydantic - Introduction to pydantic-deep framework and deep agent architectural patterns for production AI systems.
- Production-Ready Template for AI/LLM Applications: FastAPI + Next.js + 20+ Integrations - Guide to fastapi-fullstack CLI tool that generates complete full-stack AI applications with enterprise integrations.
Case Studies
- Mixam: AI Agent for Order Recommendation - How Mixam, a global self-publishing company, used Pydantic AI to create an AI agent that helps customers navigate complex printing specifications.
- Sophos: Unified Observability with Logfire - How Sophos implemented Pydantic Logfire for unified observability across their AI-powered security solutions, achieving end-to-end visibility and proactive issue detection.
- Boosted.ai: Monitoring AI Investment Research - How Boosted.ai uses Pydantic Logfire to monitor 50,000+ concurrent AI workflows processing billions of tokens daily, reducing issue diagnosis time significantly.
Contributing
Contributions are welcome! Please read the contribution guidelines first.
License
This work is licensed under a Creative Commons Attribution 4.0 International License.
Explore related projects
Loading…
