<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5" -->

---
title: Rendering AI agent generated UI using Jetpack Compose...
description: Google recently released Jetpack Compose support for A2UI (currently version 1.0.0-alpha01), a protocol that lets an AI agent describe a UI as JSON, rendered...
canonical: https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Rendering AI agent generated UI using Jetpack Compose A2UI and Koog | daily.dev
og:description: Google recently released Jetpack Compose support for A2UI (currently version 1.0.0-alpha01), a protocol that lets an AI agent describe a UI as JSON, rendered...
og:url: https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5
og:image: https://api.daily.dev/og/posts/viObNPvV5.png
og:image:alt: Rendering AI agent generated UI using Jetpack Compose A2UI and Koog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Rendering AI agent generated UI using Jetpack Compose A2UI and Koog

**[John O'Reilly](https://daily.dev/sources/johnoreilly)** · 6 min read · 1 upvotes · 0 comments

## Summary

Google recently released Jetpack Compose support for A2UI (currently version 1.0.0-alpha01), a protocol that lets an AI agent describe a UI as JSON, rendered natively by the client from a provided component catalog. A walkthrough demonstrates integrating this with a Koog-based AI agent (using Google Gemini) inside the ClimateTraceKMP Kotlin Multiplatform sample app. It covers wiring the Android-only renderer into shared KMP code, prompting the agent with a generated JSON Schema of the catalog so it knows available components, rendering generated cards and charts, handling user button actions by feeding them back into the agent's multi-turn loop, and building custom components (CountryFlag, EmissionsChart) plus overriding the basic Row component to fix card height alignment issues.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://johnoreilly.dev/posts/a2ui-compose-koog>

## Questions this post answers

### What is A2UI and how does it let an AI agent generate a native UI instead of just text?

A2UI is a protocol that lets an AI agent describe a user interface as JSON, which the client then renders using its own native components rather than the agent generating raw UI code. The agent can only use components from a catalog the client provides, and the client sends the catalog's JSON Schema to the agent so it knows what's available.

_Developers wiring agent output into native UIs can track protocols like A2UI as they mature on daily.dev._

### Is Google's Jetpack Compose implementation of A2UI available on all platforms in a Kotlin Multiplatform app?

No, the A2UI Compose libraries are Android only, currently at version 1.0.0-alpha01. In a Kotlin Multiplatform project the agent itself can run in shared common code, but UI rendering only works on the Android client; other platforms fall back to plain text responses from the agent instead of rendered surfaces.

_Teams weighing Compose Multiplatform's current gaps for agentic UI can follow updates like this on daily.dev._

### How can I fix mismatched card heights in a Jetpack Compose Row when the cards are inside a scrolling chat list?

The basic A2UI catalog Row supports an align stretch property, but that fails inside a scrolling list because the height there is unbounded. The fix is supplying a custom Row implementation that, for stretch, applies Modifier.height(IntrinsicSize.Min) and has each child fill that intrinsic height, passed in via materialA2uiBasicCatalogV1(row = EqualHeightRow).

_Compose developers debugging layout quirks in scrollable lists can find fixes like this on daily.dev._

## Similar posts on daily.dev

- [Build intelligent Android apps: In-app agentic workflows](https://daily.dev/posts/build-intelligent-android-apps-in-app-agentic-workflows-tgj4apg8f) · Android Developers Blog · 3 upvotes · 0 comments
- [Google Releases A2UI v0.9: Portable, Framework-Agnostic Generative UI](https://daily.dev/posts/google-releases-a2ui-v0-9-portable-framework-agnostic-generative-ui-nhjivffxg) · InfoQ · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#kotlin](https://daily.dev/tags/kotlin), [#jetpack-compose](https://daily.dev/tags/jetpack-compose)

[View this post on daily.dev](https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Rendering AI agent generated UI using Jetpack Compose A2UI and Koog","url":"https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5"},"datePublished":"2026-09-24T14:35:42.854Z","dateModified":"2026-09-24T14:36:07.798Z","description":"Google recently released Jetpack Compose support for A2UI (currently version 1.0.0-alpha01), a protocol that lets an AI agent describe a UI as JSON, rendered...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43160a96559d3cf8298f75b30042540e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43160a96559d3cf8298f75b30042540e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"John O'Reilly","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"John O'Reilly","logo":"https://media.daily.dev/image/upload/logos/placeholder.jpg","url":"https://daily.dev/sources/johnoreilly"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,kotlin,jetpack-compose","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"John O'Reilly","item":"https://daily.dev/sources/johnoreilly"},{"@type":"ListItem","position":3,"name":"Rendering AI agent generated UI using Jetpack Compose A2UI and Koog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/rendering-ai-agent-generated-ui-using-jetpack-compose-a2ui-and-koog-viobnpvv5#faq","mainEntity":[{"@type":"Question","name":"What is A2UI and how does it let an AI agent generate a native UI instead of just text?","acceptedAnswer":{"@type":"Answer","text":"A2UI is a protocol that lets an AI agent describe a user interface as JSON, which the client then renders using its own native components rather than the agent generating raw UI code. The agent can only use components from a catalog the client provides, and the client sends the catalog's JSON Schema to the agent so it knows what's available. Developers wiring agent output into native UIs can track protocols like A2UI as they mature on daily.dev."}},{"@type":"Question","name":"Is Google's Jetpack Compose implementation of A2UI available on all platforms in a Kotlin Multiplatform app?","acceptedAnswer":{"@type":"Answer","text":"No, the A2UI Compose libraries are Android only, currently at version 1.0.0-alpha01. In a Kotlin Multiplatform project the agent itself can run in shared common code, but UI rendering only works on the Android client; other platforms fall back to plain text responses from the agent instead of rendered surfaces. Teams weighing Compose Multiplatform's current gaps for agentic UI can follow updates like this on daily.dev."}},{"@type":"Question","name":"How can I fix mismatched card heights in a Jetpack Compose Row when the cards are inside a scrolling chat list?","acceptedAnswer":{"@type":"Answer","text":"The basic A2UI catalog Row supports an align stretch property, but that fails inside a scrolling list because the height there is unbounded. The fix is supplying a custom Row implementation that, for stretch, applies Modifier.height(IntrinsicSize.Min) and has each child fill that intrinsic height, passed in via materialA2uiBasicCatalogV1(row = EqualHeightRow). Compose developers debugging layout quirks in scrollable lists can find fixes like this on daily.dev."}}]}
```

