pydantic/pydantic-ai
How Python does AI. Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end.
What it is
Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end. Pydantic AI is the Python AI SDK: a typed, extensible agent loop with every model a string swap away, and another one to fall back to when a provider fails. The same agent runs everywhere you need it: behind a web frontend, in the terminal, on a voice call, on a durable background queue, in GitHub Actions, or as a plain object you call run() on. Image generation and embeddings come in the same box.
When to use it
Reach for pydantic-ai when you want an LLM to plan, call tools, browse, or coordinate with other agents instead of answering a single prompt — it's written in Python and fits stacks tagged agent-framework, genai, harness, harness-engineering.