Registry / gcp / ag-ui-adk

ag-ui-adk

JSON →
library0.6.5pypypi✓ verified 79d ago

Middleware for the Google Agent Development Kit (ADK) that implements the AG-UI protocol. Enables ADK agents to communicate via the AG-UI protocol for streaming UI components and actions. Current version 0.6.1, requires Python >=3.10,<3.15, release cadence is irregular (several releases in Mar-Apr 2026).

pip install ag-ui-adk
INSTALL
IMPORT
SIG · AG-UI-ADK
A
ag-ui-adk
gcppythonv0.6.5
Install
16.9s avg
Import
Disk
189MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.6.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 113.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 16.9s · import 0.000s · 115MB
189MB installed
● package 189MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ADKAgent
from ag_ui_adk import ADKAgent
from ag_ui_adk import ADKMethodAdapter
AGUIToolset
from ag_ui_adk import AGUIToolset
A2UISubAgentTool
from ag_ui_adk import A2UISubAgentTool

Creates an ADK agent and wraps it with the AG-UI adapter, then runs a query.

import asyncio from google.adk import Agent from ag_ui_adk import ADKMethodAdapter async def main(): agent = Agent( name="weather_agent", instruction="Call get_weather for any city.", tools=[], # Adapter will attach AG-UI tools ) adapter = ADKMethodAdapter(agent) # Run via AG-UI method call result = await adapter.run(input_text="What's the weather in Paris?") print(result) asyncio.run(main())
Debug
Known issues
deprecatedThe `handle_tool_call` method is deprecated in favour of `run`. Use `adapter.run()` instead of `adapter.handle_tool_call()`.
fix
Replace `adapter.handle_tool_call(...)` with `await adapter.run(...)`.
affects: >=0.5.0
breakingAs of version 0.6.0, the import path changed from `ag_ui_adk.adapter` to `ag_ui_adk` (top-level). Old import `from ag_ui_adk.adapter import ADKMethodAdapter` will break.
fix
Use `from ag_ui_adk import ADKMethodAdapter`.
affects: >=0.6.0
gotchaThe adapter is async; you must create an event loop (e.g., asyncio.run). Forgetting `await` on `adapter.run()` results in a coroutine object, not the result.
fix
Always `await adapter.run(...)` inside an async function.
affects: all
Upgrade
Version history
0.6.5latest on PyPI · released May 28, 2026
Audit
Dependencies
ag-ui-protocolrequiredCore AG-UI protocol implementation
google-adkrequiredGoogle Agent Development Kit
asynciorequiredUsed for async agent execution
Agent activity
67 hits · last 30 days
node
56
Perplexity
1
OpenAI (training)
1
Resources
ag-ui-adk — pip install ag-ui-adk · libregistry