CopilotKit v1.50 is coming soon, with brand new interfaces, streamlined internals, and no breaking changes!
Building with the Microsoft Agent Framework + AG-UI, now in Python!
Microsoft’s Agent Framework (MAF) is an open-source agent framework that has recently emerged, offering exceptional ways to build agents and multi-step workflows in .NET or Python. Paired with AG-UI, the frontend/runtime layer that enables those agents to appear in your app with a clean UI, streaming responses, and shared state, etc., delivers a seamless agentic experience.
The integration between the two is simple but powerful: MAF handles the reasoning and tool-use, and AG-UI bridges the interactions between the agent and the users.
Microsoft Agent Framework (MAF) and AG-UI together offer a clean separation:

Once an agent speaks AG-UI, it becomes immediately compatible with any AG-UI-aware frontend, including Microsoft’s own Blazor client and CopilotKit.
This combination is what turns MAF agents from “backend processes” into interactive, stateful, user-facing agents.
MAF provides the core building blocks:
It’s practical if you want to move past “chat completion” and give the model structure, state, and the ability to act.

AG-UI is the open protocol that defines how an agent communicates with a user interface.

It standardizes things like:
This removes the need to design your own transport, your own formatting, your own event system, or your own UI message schema.
Instead of every framework inventing its own UI contract, AG-UI is the shared layer they converge on.
The agent speaks AG-UI, which removes any additional complexities.
Because AG-UI supports state sync and streaming, a MAF workflow can show:
This is critical for user trust and usability.
MAF agents often maintain a structured state (objects, lists, workflow context).
AG-UI transports this state to the frontend, where it can drive live UI components.
AG-UI can show:
This is a major improvement over hidden function-calling flows.
Once your MAF agent speaks AG-UI, you can plug it into:
This gives the agent a portable, future-proof interface layer.

Agent → protocol → frontend → user → agent
No custom engineering required.
With streaming, intermediate states, and exposed tool use, you can debug and trust the agent in a way plain chat completions don’t allow.
All while retaining clear structure and maintainability.
Additionally, the developer doesn't need to reinvent the wheel.
--> MAF handles reasoning + tools.
--> AG-UI handles communication + events.
--> The user is now able to collaborate with the agent in real time.
The stack is clean.
Microsoft Agent Framework gives you an agent with: tools, workflows, state, orchestration, and model thinking.
AG-UI gives that agent a standardized way to interact with the user, whether on mobile or desktop.
Together, they let you build agents that aren’t constrained to the backend, but usable, visible, and connected to real applications.
To stay up to date, please follow CopilotKit on Twitter and join the Discord community.

.png&w=750&q=75)
.png&w=750&q=75)
Subscribe to our blog and get updates on CopilotKit in your inbox.
