Skip to content

Refactor A2UI extension activation#926

Merged
nan-yu merged 3 commits intogoogle:mainfrom
nan-yu:a2ui-extension
Mar 24, 2026
Merged

Refactor A2UI extension activation#926
nan-yu merged 3 commits intogoogle:mainfrom
nan-yu:a2ui-extension

Conversation

@nan-yu
Copy link
Collaborator

@nan-yu nan-yu commented Mar 20, 2026

The agents may support multiple versions of A2UI extensions. Based on client requested extension, the agent SDK should dynamically activate one that is supported by the agent.

Screenshots of the custom components in contact_multiple_surfaces sample

  • Org chart and contact card:
image
  • Floor plan:
image
  • Message:
image

There is an (empty) block on the UI, but it sounds like a client renderer issue.

Screenshots of the rizzcharts components:

  • image

Fixes: flutter/genui#821

Description

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. For larger changes, raising an issue first helps reduce redundant work.

Pre-launch Checklist

If you need help, consider asking for advice on the discussion board.

@github-project-automation github-project-automation bot moved this to Todo in A2UI Mar 20, 2026
@nan-yu nan-yu marked this pull request as draft March 20, 2026 19:41
@nan-yu nan-yu requested a review from gspencergoog March 20, 2026 19:41
@nan-yu
Copy link
Collaborator Author

nan-yu commented Mar 20, 2026

I've got the contact_lookup, restaurant_finder and rizzcharts samples working individually, but when testing the orchestrator sample, the A2UI extension seems not to be propagated to the sub agents. I'll take a deeper look later and verify other samples, component_gallery and mcp_app_proxy.

@nan-yu nan-yu marked this pull request as ready for review March 23, 2026 06:00
@nan-yu
Copy link
Collaborator Author

nan-yu commented Mar 23, 2026

Verified the following samples

  • contact_lookup
  • restaurant_finder
  • rizzcharts
  • orchestrator
  • component_gallery
  • mcp_app_proxy

@wrenj
Copy link
Collaborator

wrenj commented Mar 23, 2026

I've got the contact_lookup, restaurant_finder and rizzcharts samples working individually, but when testing the orchestrator sample, the A2UI extension seems not to be propagated to the sub agents. I'll take a deeper look later and verify other samples, component_gallery and mcp_app_proxy.

fyi the code the orchestrator subagent extension activation is here
https://github.com/google/A2UI/blob/main/samples/agent/adk/orchestrator/agent.py#L67

it's pretty janky but thats the best we could do with the existing sdk

@nan-yu
Copy link
Collaborator Author

nan-yu commented Mar 23, 2026

I've got the contact_lookup, restaurant_finder and rizzcharts samples working individually, but when testing the orchestrator sample, the A2UI extension seems not to be propagated to the sub agents. I'll take a deeper look later and verify other samples, component_gallery and mcp_app_proxy.

fyi the code the orchestrator subagent extension activation is here https://github.com/google/A2UI/blob/main/samples/agent/adk/orchestrator/agent.py#L67

it's pretty janky but thats the best we could do with the existing sdk

Thanks for the pointer. I've got the orchestrator sample working last night by injecting the correct A2UI_EXTENSION_URI. All samples are working now.

@nan-yu nan-yu force-pushed the a2ui-extension branch 2 times, most recently from 6a52f12 to 9de5631 Compare March 23, 2026 20:14
@dmandar
Copy link
Collaborator

dmandar commented Mar 24, 2026

Overall looks good. thx for doing this. Can we add screenshots showing the 3 custom components working for posterity? (contact org, card and location). Please also make sure clicking works in each.

Copy link
Collaborator

@jacobsimionato jacobsimionato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, thanks for doing this so fast!

nan-yu added 2 commits March 24, 2026 21:24
The agents may support multiple versions of A2UI extensions. Based on
client requested extension, the agent SDK should dynamically activate
one that is supported by the agent.
Copy link
Collaborator

@dmandar dmandar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pls add screenshots

@nan-yu
Copy link
Collaborator Author

nan-yu commented Mar 24, 2026

Screenshots added to the PR description. Merging now.

@nan-yu nan-yu merged commit 0273076 into google:main Mar 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Support dynamic versioning on the agent side

5 participants