agent-framework-agui-py

Implement the AG-UI protocol in Python with hybrid tool execution and shared state.

34|17|Updated May 27, 2026
One-click install
npx skills add https://github.com/microsoft/Learn-Microsoft-Agent-Framework-with-Foundry-ZavaShop-Supply-Chain-Workshop --skill agent-framework-agui-py-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-framework-agui-py
Source: https://github.com/microsoft/Learn-Microsoft-Agent-Framework-with-Foundry-ZavaShop-Supply-Chain-Workshop/tree/main/.github/skills/agent-framework-agui-py
Command: npx skills add https://github.com/microsoft/Learn-Microsoft-Agent-Framework-with-Foundry-ZavaShop-Supply-Chain-Workshop --skill agent-framework-agui-py-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agent-framework, fastapi, uvicorn, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables developers to create Agent UI protocol servers and clients using Python, leveraging the Microsoft Agent Framework to facilitate agent interactions over HTTP.

Core Features & Use Cases

  • AG-UI Protocol Support: Provides the ability to expose agents and workflows as AG-UI servers and consume them through AGUIChatClient.
  • Hybrid Tool Execution: Supports both server-side and client-side tool execution within the same conversation.
  • Shared State Management: Facilitates the sharing of state between the server and client, enabling richer interactions.
  • Predictive State Updates: Allows for optimistic state updates to the UI before the tool execution is complete.
  • Use Case: Ideal for building interactive agents and workflows that require real-time updates and interactions.

Quick Start

Install the skill using pip install agent-framework-ag-ui and then use the provided endpoints to host your AG-UI server and consume AG-UI clients.

Frequently Asked Questions about agent-framework-agui-py

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement the AG-UI protocol in Python for agent interactions?

The AG-UI protocol supports hybrid tool execution, allowing both server-side and client-side tool execution within the same conversation to facilitate richer, real-time agent interactions.

How do I host an AG-UI server using FastAPI and the Microsoft Agent Framework?

Shared state management allows data to be shared between the server and client, while predictive state updates enable optimistic UI updates before server-side tool execution is fully complete.

Can I execute tools on both the server and client side using AG-UI?

You need the Microsoft Agent Framework primitives, Python, and the FastAPI and Uvicorn dependencies to set up and run the AG-UI protocol servers and clients.

How does shared state management work in AG-UI protocol servers?

This Skill is ideal for building interactive agents and workflows that require real-time updates, predictive UI state changes, and hybrid tool execution over HTTP using the Microsoft Agent Framework.