Introducing Pydantic AI Integration with AG-UI
By Steven Hartland and Nathan Tarbert
July 23, 2025

Pydantic AI is now natively supported with AG-UI

We’re excited to share that AG‑UI, the open Agent–User Interaction Protocol from CopilotKit, is now natively supported in Pydantic AI, thanks to a new integration built by Steven Hartland at Rocket Science, working hand in hand with the Pydantic AI team.

Why it matters

Pydantic AI is quickly becoming the standard for building reliable, type-safe AI agents in Python. But while the backend agent stack was solid, this integrations now enables first-class UI that improves the users experience:

  • Structured, streaming agent output
  • Live user inputs and corrections
  • Human-in-the-loop checkpoints
  • Frontend tools

That’s exactly what AG‑UI is designed for. It’s a composable protocol that connects AI agents to rich, interactive frontends, with minimal glue and strong separation of concerns.

"We originally began the AG‑UI integration as a standalone library, but with support from the Pydantic AI team, it became clear that this functionality belonged in the framework itself.”
"We collaborated closely with the Pydantic AI team to build in native support for AG‑UI, and shipped it alongside their new toolset abstraction."
  • Steven Hartland - VP Engineering @ Rocket Science

The result is a seamless dev experience:

  • No glue code
  • Streaming agent updates in structured JSON
  • Automatic wiring of tool inputs/outputs to UI state

AG‑UI now works out-of-the-box with Pydantic AI - meaning developers can instantly add structured agent interaction to any AG‑UI-compatible frontend.

What’s next

Rocket Science is very close to using this integration in production, and they’re helping drive AG‑UI forward as an open protocol for building real-time agentic systems.

We’re collaborating closely through the AG‑UI working group, and more patterns, docs, and examples are coming soon, especially around structured editing, tool chaining, and UX for error recovery.

If you're building AI agents in Python and need a clean bridge between backend logic and interactive UI, this integration is built for you.

👉 Try it out: https://ai.pydantic.dev/examples/ag-ui/

👉 Check out the docs: https://ai.pydantic.dev/ag-ui/

Stay up to date and follow @CopilotKit, Pydantic AI, and @rocketsciencegg.

Want to learn more?

Top posts

See All
Bring ChatGPT's Intelligent UI to your app with A2UI 1.0 and CopilotKit
Anmol Baranwal November 12, 2026
Bring ChatGPT's Intelligent UI to your app with A2UI 1.0 and CopilotKitYou can now bring ChatGPT’s Intelligent UI to your own app. CopilotKit’s new Generative UI is built on Google’s A2UI 1.0, so your agent can answer with charts, calculators and interactive tools built from your own components and design system. It works with any agent framework, renders in the chat or anywhere on your page, fixes itself when the model slips and takes just two lines of code to set up. Here’s how it works, why A2UI 1.0 makes it possible and how to try it live in the A2UI Playground.
Introducing A2UI 1.0: What’s New in Google’s Framework-Agnostic Generative UI Protocol
Anmol Baranwal and Eli BermanNovember 11, 2026
Introducing A2UI 1.0: What’s New in Google’s Framework-Agnostic Generative UI ProtocolGoogle just launched A2UI 1.0, the first stable version of its framework-agnostic open standard for generative UI. It brings function calls in both directions between the UI and the agent, multiple catalogs on one screen and catalogs that carry your design rules. Here’s everything that’s new, how to migrate from v0.9 and how A2UI 1.0 works with any agent framework via AG-UI. CopilotKit is the fastest way to adopt A2UI 1.0, with a ready-made catalog of 70 components in just two lines of code.
Introducing OpenBot 1.0: An Agent Workspace You Can Make Your Own
Sam Julien and Anmol BaranwalNovember 10, 2026
Introducing OpenBot 1.0: An Agent Workspace You Can Make Your OwnToday we’re releasing OpenBot 1.0, the modular, self-hostable agent workspace with built-in governance. Create a Bot or bring your own agent, pick any model, and connect it to your tools, while you decide what it can do on its own. Run it free on Mac or Windows, or deploy OpenBot for Business on your own infrastructure with SSO and a full audit trail.
Are you ready?

Stay in the know

Subscribe to our blog and get updates on CopilotKit in your inbox.