Skip to content

Conversation

@jacobsimionato
Copy link
Collaborator

@jacobsimionato jacobsimionato commented Aug 6, 2025

  • Remove the ability for the LLM to reply in text format - it instead always replies in Gen UI now.
  • Update rendering of chat box for user prompt
  • Add API to allow apps to customize rendering of chat boxes. I think this is necessary because otherwise people are stuck with our styles if they choose to use GenuiManager.conversation.

See updated layout user prompt chat message appearance:
Simulator Screenshot - iPad (10th generation) - 2025-08-06 at 11 36 46

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully refactors the GenuiManager and ConversationWidget to remove text-only LLM responses in favor of always using Gen UI. It also introduces a flexible API for custom rendering of chat messages. The changes are well-implemented and include corresponding updates to documentation and tests. My review includes a few suggestions to improve layout stability, logging practices, and code readability.

Comment on lines 434 to 435
systemInstruction:
_systemInstruction == null ? null : Content.system(_systemInstruction!),
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This ternary expression to create the systemInstruction is a bit verbose. You can make it more concise and arguably more readable by putting it on a single line.

      systemInstruction: _systemInstruction != null ? Content.system(_systemInstruction!) : null,

Copy link
Collaborator

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@polina-c
Copy link
Collaborator

polina-c commented Aug 6, 2025

Merging this to avoid conflicts with further PRs.

@polina-c polina-c merged commit 9eb5943 into main Aug 6, 2025
4 checks passed
@polina-c polina-c deleted the conversation_widget branch August 6, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants