{"id":23201,"library":"ag-ui-adk","title":"AG-UI ADK Middleware","description":"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).","status":"active","version":"0.6.1","language":"python","source_language":"en","source_url":"https://github.com/ag-ui-protocol/ag-ui/tree/main/integrations/adk-middleware/python","tags":["ag-ui","adk","google-adk","middleware","agent"],"install":[{"cmd":"pip install ag-ui-adk","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Core AG-UI protocol implementation","package":"ag-ui-protocol","optional":false},{"reason":"Google Agent Development Kit","package":"google-adk","optional":false},{"reason":"Used for async agent execution","package":"asyncio","optional":false}],"imports":[{"wrong":"from ag_ui_adk import ADKMethodAdapter","symbol":"ADKAgent","correct":"from ag_ui_adk import ADKAgent"},{"symbol":"AGUIToolset","correct":"from ag_ui_adk import AGUIToolset"},{"symbol":"A2UISubAgentTool","correct":"from ag_ui_adk import A2UISubAgentTool"}],"quickstart":{"code":"import asyncio\nfrom google.adk import Agent\nfrom ag_ui_adk import ADKMethodAdapter\n\nasync def main():\n    agent = Agent(\n        name=\"weather_agent\",\n        instruction=\"Call get_weather for any city.\",\n        tools=[],  # Adapter will attach AG-UI tools\n    )\n    adapter = ADKMethodAdapter(agent)\n    # Run via AG-UI method call\n    result = await adapter.run(input_text=\"What's the weather in Paris?\")\n    print(result)\n\nasyncio.run(main())","lang":"python","description":"Creates an ADK agent and wraps it with the AG-UI adapter, then runs a query."},"warnings":[{"fix":"Replace `adapter.handle_tool_call(...)` with `await adapter.run(...)`.","message":"The `handle_tool_call` method is deprecated in favour of `run`. Use `adapter.run()` instead of `adapter.handle_tool_call()`.","severity":"deprecated","affected_versions":">=0.5.0"},{"fix":"Use `from ag_ui_adk import ADKMethodAdapter`.","message":"As 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.","severity":"breaking","affected_versions":">=0.6.0"},{"fix":"Always `await adapter.run(...)` inside an async function.","message":"The 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.6.1':40 '2026':55 '3.10':43 '3.15':44 'action':37 'adk':4,13,22,59,62 'ag':2,18,29,57 'ag-ui':1,17,28,56 'agent':10,23,64 'apr':54 'cadenc':46 'communic':25 'compon':35 'current':38 'develop':11 'enabl':21 'googl':9,61 'google-adk':60 'implement':15 'irregular':48 'kit':12 'mar':53 'mar-apr':52 'middlewar':5,6,63 'protocol':20,31 'python':42 'releas':45,50 'requir':41 'sever':49 'stream':33 'ui':3,19,30,34,58 'version':39 'via':26","created_at":"2026-05-01T08:06:31.041186+00:00","updated_at":"2026-05-01T08:06:31.041186+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.6.5","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/ag-ui-protocol/ag-ui","docs":null,"changelog":null,"pypi":"https://pypi.org/project/ag-ui-adk/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["gcp","web-framework","llm-agents"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}