$npx skillfedfor your agent

ag-ui-protocol

With conditionsPyPI Application FrameworksReleased Jun 20267.4M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ag_ui_protocol-0.1.19-py3-none-any.whl
v0.1.19 · released 2026-06-02 · Python >=3.9 · 1 runtime deps: pydantic

Yes, if you are building a Python agent server that must communicate with an AG-UI-compatible frontend. The package has low install friction, active maintenance, permissive MIT licensing, and no known vulnerabilities. The pre-1.0 version number warrants attention to release notes before upgrading, but the core offering is solid for its stated purpose.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Low install friction with a single runtime dependency (pydantic).
  • Package is actively maintained with recent releases; supports current Python versions.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.

last release 2026-06-02 (73 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,407,094 downloads/mo, #1,744 on PyPI

Verify before relying

pip install ag-ui-protocol

from ag_ui_protocol import TextMessageContentEvent, EventType, EventEncoder

event = TextMessageContentEvent(
    type=EventType.TEXT_MESSAGE_CONTENT,
    message_id="msg_123",
    delta="Hello from Python!"
)
encoder = EventEncoder()
sse_data = encoder.encode(event)
  • Whether the 16 core event types cover all use cases for your specific agent architecture.
  • Performance characteristics and throughput limits for high-frequency streaming scenarios.
  • Stability guarantees given the package is at version 0.1.19 (pre-1.0).
  • Exact module structure and import paths for core types and encoder utilities.
Same gist for agents: .md · .json

What it is and what it does

ag-ui-protocol is a Python SDK that implements the Agent-User Interaction Protocol, providing strongly-typed Pydantic models for representing agent-server communication events and user messages. It handles encoding these structures with automatic camelCase conversion for frontend compatibility, and supports multimodal content including text, images, audio, video, and documents.

You would use this package when building a Python backend for an agent application that needs to stream real-time events to a frontend client following the AG-UI specification. The package abstracts away protocol details and serialization concerns, letting you work with idiomatic Python types while ensuring your messages conform to the expected wire format.

Use it for

  • Build a Python agent server that streams events to a web frontend in real time.
  • Encode multimodal user input into AG-UI-compliant message structures for agent processing.
  • Implement Server-Sent Events streaming with automatic JSON serialization.
  • Validate agent event payloads at runtime using Pydantic's type checking.
  • Integrate with agent frameworks that need to emit AG-UI protocol events.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building a Python agent server that must communicate with an AG-UI-compatible frontend.

The package has low install friction, active maintenance, permissive MIT licensing, and no known vulnerabilities. The pre-1.0 version number warrants attention to release notes before upgrading, but the core offering is solid for its stated purpose.

Install

ag-ui-protocol on PyPI

Before you install

Low install friction with a single runtime dependency (pydantic). Package is actively maintained with recent releases; supports current Python versions.

Requires Python 3.9 or later.

License in practice

MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.

Quickstart

pip install ag-ui-protocol

from ag_ui_protocol import TextMessageContentEvent, EventType, EventEncoder

event = TextMessageContentEvent(
    type=EventType.TEXT_MESSAGE_CONTENT,
    message_id="msg_123",
    delta="Hello from Python!"
)
encoder = EventEncoder()
sse_data = encoder.encode(event)

Verify before relying

  • Whether the 16 core event types cover all use cases for your specific agent architecture.
  • Performance characteristics and throughput limits for high-frequency streaming scenarios.
  • Stability guarantees given the package is at version 0.1.19 (pre-1.0).
  • Exact module structure and import paths for core types and encoder utilities.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pydantic
MaintenanceActively maintained 73 days since the last release
First released
Downloads7,407,094 / month, #1,744 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: ag_ui_protocol-0.1.19-py3-none-any.whl

Tags

Capabilities
agent-user interaction protocolag-ui protocol python sdkstreaming event encodingagent server communicationpydantic event modelsserver-sent eventsmultimodal agent messages
Topics
agent-frameworkstreaming-eventsprotocol-sdk

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “agent-user interaction protocol”

  • ag-ui-protocolProvides strongly-typed Python data structures and event encoding for…
  • cosmpyCosmPy provides Python bindings to interact with Cosmos SDK-based…
  • lean-lsp-mcpProvides an MCP server that exposes the Lean theorem prover to LLM…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also ag_ui_adk · ag-ui-langgraph · agent-framework-ag-ui · aiohttp-sse-client · pydantic-ai · langchain-protocol · aiohttp-sse-client2 · aegra-api · fasta2a · pydantic-deep