CopilotKit v1.50 is coming soon!

Back
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
AG-UI and A2UI Explained: How the Emerging Agentic Stack Fits Together
Nathan Tarbert November 19, 2025
AG-UI and A2UI Explained: How the Emerging Agentic Stack Fits TogetherThe agentic ecosystem is evolving fast — and with new standards appearing almost weekly, it’s easy to get lost in the terminology. Two names that often get mixed up are AG-UI and A2UI. They sound similar, but they actually serve very different purposes. Even better: they complement each other beautifully.CopilotKit has been working closely with Google on A2UI, and we’ll be shipping full support when the A2UI spec launches. But before that happens, let’s break down how these pieces fit into the broader agentic landscape.
Build a Frontend for your Microsoft Agent Framework Agents with AG-UI
Bonnie and Nathan TarbertNovember 11, 2025
Build a Frontend for your Microsoft Agent Framework Agents with AG-UIIn this guide, you will learn how to build a frontend for your Microsoft Agent Framework Agents using AG-UI Protocol and CopilotKit. Microsoft Agent Framework will power the AI agents backend, while CopilotKit powers the frontend, and then AG-UI creates a bridge that enables the frontend to communicate with the backend.
Microsoft Agent Framework is now AG-UI Compatible!
Uli Barkai and Nathan TarbertNovember 11, 2025
Microsoft Agent Framework is now AG-UI Compatible!We’re excited to announce that Microsoft’s Agent Framework is now fully compatible with the AG-UI protocol - the open standard powering frontend-agent communication across the ecosystem. This integration means you can now connect Microsoft’s powerful reasoning and orchestration layer directly to rich, real-time user interfaces - without custom socket code, polling loops, or one-off APIs.
Are you ready?

Stay in the know

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