Skip to content
Projects

vstorm-co/awesome-pydantic-ai

View on GitHub

About

An opinionated list of awesome Pydantic-AI frameworks, libraries, software and resources.

AI & Machine Learning

How these counts are measured

Measured 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

Original

Awesome Pydantic AI Awesome

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

  • 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_todos and write_todos tools 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_parent tool.
  • summarization-pydantic-ai - Automatic conversation summarization and context management. Provides SummarizationProcessor for LLM-based summaries and SlidingWindowProcessor for 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_validator and ModelRetry for automatic self-correction.
  • pydantic-ai-ejentum - Pydantic AI toolset wrapping the Ejentum Reasoning Harness. EjentumToolset subclasses FunctionToolset and 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. ChDBCapability registers 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 to ModelRetry for 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_processor plugs into ProcessHistory and 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 PydanticAIAdapter runs 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 moves OPENAI_BASE_URL — the variable OpenAIProvider honours, measured on pydantic-ai-slim 2.43.0 (it ignores OPENAI_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

Case Studies

Contributing

Contributions are welcome! Please read the contribution guidelines first.

License

CC BY 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

Explore related projects

Loading…