ag-ui-a2ui-toolkit
Framework-agnostic helpers for building A2UI subagent tools — op builders, prompt assembly, history walkers, and request/envelope orchestration shared across framework adapters.
What it is and what it does
ag-ui-a2ui-toolkit is a Python library of reusable building blocks for constructing A2UI (agent-to-UI) subagent tools. It provides no framework dependencies itself—instead, it exports constants, operation builders (like create_surface and update_components), prompt composition helpers, state walkers, and orchestration functions that framework-specific adapters (for LangGraph, ADK, Mastra, and others) can wrap with their own decorators and runtime bindings.
The package is designed to be composed into framework adapters rather than used directly in application code. It handles the semantic and structural work of building A2UI requests, envelopes, and prompts, leaving framework integration to the adapter layer. With no runtime dependencies and active maintenance, it serves as a shared foundation for multiple agent frameworks to build A2UI tooling on top of.
Use it for:
- Building a framework adapter (e.g., for LangGraph or ADK) that needs to compose A2UI operations with framework-specific tool decorators
- Assembling A2UI operation envelopes and structured prompts for subagent invocation without framework lock-in
- Managing A2UI state history and context across agent tool calls using the provided helpers
- Generating consistent A2UI tool definitions and schemas across multiple framework implementations
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides framework-agnostic helper functions and constants for building A2UI subagent tools, including operation builders, prompt assembly, state management, and request orchestration that can be composed into agent framework adapters.
Yes, if you are building a framework adapter for A2UI subagent tools or integrating A2UI operations into an agent system. No, if you are looking for a direct end-user agent framework—this is a foundation library meant to be composed into adapters. Install it as a dependency of your framework adapter, not as a standalone tool.
Install
ag-ui-a2ui-toolkit on PyPI
pip
pip install ag-ui-a2ui-toolkituv
uv add ag-ui-a2ui-toolkitpoetry
poetry add ag-ui-a2ui-toolkitInstalling ag-ui-a2ui-toolkit
Before you install
Low friction install with no runtime dependencies. Active maintenance status and recent releases (58 days since last release as of fact sheet date) suggest ongoing development.
License in practice
MIT license permits commercial and private use with minimal restrictions—typical permissive terms for open-source libraries.
Quickstart
pip install ag-ui-a2ui-toolkit
from ag_ui_a2ui_toolkit import create_surface, build_subagent_prompt
surface = create_surface(...)
prompt = build_subagent_prompt(...)
Requires Python 3.10 or later (supports up to <3.15)
Verify before relying
- Whether this package is intended for end-user installation or primarily as a dependency for framework adapters (LangGraph, ADK, Mastra, etc.)
- Whether the TypeScript counterpart's API parity claim extends to feature completeness or only surface naming
- Stability guarantees or semantic versioning policy given the 0.0.x version number
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 58 days since the last release |
| First released | |
| Downloads | 667,073/month — #5,422 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ag_ui_a2ui_toolkit-0.0.4-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
a2ui-agent-sdkProvides Python SDK components for building…
unclear · top 15,000 on PyPI
ag_ui_adkBridges Google ADK agents to the AG-UI…
permissive · top 15,000 on PyPI
nvidia-nat-coreNVIDIA NeMo Agent Toolkit is a…
permissive · top 15,000 on PyPI
agent-framework-orchestrationsProvides high-level builder patterns for…
permissive · top 15,000 on PyPI
aip-agents-binaryA local execution agent library for building…
unclear · top 15,000 on PyPI
ag-ui-langgraphBridges LangGraph agent workflows to the AG-UI…
permissive · top 15,000 on PyPI
agent-framework-ag-uiConnects Agent Framework agents and workflows…
permissive · top 15,000 on PyPI
subagents-pydantic-aiAdds multi-agent delegation to Pydantic AI…
permissive · top 15,000 on PyPI
datarobot-genaiA toolkit for building and deploying AI agents…
permissive · top 15,000 on PyPI
ag2AG2 is a Python framework for building AI…
permissive · top 15,000 on PyPI