Initial Kotlin port of the Python A2UI SDK.#1012
Open
jgindin wants to merge 8 commits intogoogle:mainfrom
Open
Initial Kotlin port of the Python A2UI SDK.#1012jgindin wants to merge 8 commits intogoogle:mainfrom
jgindin wants to merge 8 commits intogoogle:mainfrom
Conversation
kotlin rizzcharts updates
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a Kotlin SDK for the Agent-to-App (A2A) protocol with A2UI integration, featuring request handlers, event converters, and a toolset for rich UI rendering. It also includes a schema management system and a validator for A2UI payload integrity. Review feedback suggests several improvements: replacing printStackTrace with a logging framework, fixing a numeric type conversion bug in JSON parsing, refactoring hardcoded strings and versions into constants, and adopting more idiomatic Kotlin collection operations.
agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/a2a/A2aHandler.kt
Outdated
Show resolved
Hide resolved
agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/a2a/A2aHandler.kt
Outdated
Show resolved
Hide resolved
agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/core/schema/Validator.kt
Show resolved
Hide resolved
agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/a2a/A2aHandler.kt
Outdated
Show resolved
Hide resolved
agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/a2a/A2aHandler.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Decompose the `handleA2aPost` method into smaller ones. Also, fix the previous commit, which Github messed up.
nan-yu
reviewed
Mar 27, 2026
agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/a2a/A2uiA2a.kt
Outdated
Show resolved
Hide resolved
nan-yu
reviewed
Mar 27, 2026
nan-yu
approved these changes
Mar 27, 2026
Collaborator
nan-yu
left a comment
There was a problem hiding this comment.
Thanks, looks good to me overall!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Port of the Python SDK. Developed with significant help from various forms of Gemini.
See the later PRs which create new versions of the rizzcharts sample for both Kotlin and Java as demonstrations of this SDK.
Pre-launch Checklist