Initial Kotlin port of the Python A2UI SDK.#1012
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.
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
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...)
* Initial Kotlin port of the Python A2UI SDK. * Add copyright to all new files. * Check for long before double. * Extract constants * Address PR feedback. Decompose the `handleA2aPost` method into smaller ones. Also, fix the previous commit, which Github messed up. * Add more comments to a complex method. * Address PR feedback. * Address PR feedback.
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