PydanticAI — Summary
PydanticAI (17k stars, MIT) is a Python agent framework by the Pydantic team that brings FastAPI-style ergonomics to GenAI development: typed dependency injection, Pydantic-validated structured outputs, and full static type checking from IDE to runtime. The Agent[DepsT, OutputT] generic class is parameterized on dependency type and output type, enabling the IDE/pyright to infer the exact output type from the agent definition. Tools are registered via decorators (@agent.tool, @agent.instructions) with RunContext[DepsT] carrying injected dependencies. The library ships 20+ provider adapters (OpenAI, Anthropic, Google, DeepSeek, Grok, Cohere, Mistral, Perplexity, Azure, Bedrock, Ollama, LiteLLM, Groq, OpenRouter, Together, Fireworks, Cerebras, Hugging Face, Vercel, Heroku, SambaNova), a pydantic_graph module for complex state machine workflows, a CLI (pai/clai), an evals system, durable execution, MCP client/server support, A2A protocol, AG-UI streaming event standard, human-in-the-loop deferred tool approval, and 40+ built-in capabilities (Thinking, WebSearch, WebFetch, Hooks, MCP, ToolSearch, Instrumentation). The harness at ai.pydantic.dev/harness/ provides a curated capability library. Compared to seeds, PydanticAI is closest to claude-flow in TypeScript, but as a Python SDK it most resembles the typed-SDK ethos of FastAPI applied to agents — a pattern no seed exhibits.