Initial Kotlin port of the Python A2UI SDK.#1012
Initial Kotlin port of the Python A2UI SDK.#1012jgindin wants to merge 8 commits intogoogle:mainfrom
Conversation
kotlin rizzcharts updates
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.
agent_sdks/kotlin/src/main/kotlin/com/google/a2ui/a2a/A2uiA2a.kt
Outdated
Show resolved
Hide resolved
nan-yu
left a comment
There was a problem hiding this comment.
Thanks, looks good to me overall!
gspencergoog
left a comment
There was a problem hiding this comment.
The A2UI parts of this looks good to me (I'm not a Kotlin expert...)
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