agent: Add image generation appfunction#25
Conversation
Change-Id: Ie5a3a97c4dc2eefe349f0df22313f2bc12fcfe01
There was a problem hiding this comment.
Code Review
This pull request introduces image generation capabilities to the AI assistant. It adds a new generateImage built-in AppFunction that integrates with the Gemini API, configures a FileProvider to cache and serve generated images, updates the database schema to support message attachments, and enhances the UI to display these attachments. Feedback on the changes highlights two critical issues: first, the aspectRatio parameter in the image generation function is currently ignored in the API payload; second, passing the generated content:// URIs to other apps without explicitly granting read permissions will result in a SecurityException.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Change-Id: Ie3fbb88ae72223cc9b1fb29ca226fdc045200104
|
Please resolve the merge conflicts and add a screenshot of the UI changes, thanks! |
… Gemini tool names Change-Id: Id2ff4aadfceddbc3b2a4b720eb882323f0cad7d8
Screenshots added and merge conflict resolved |
Screenshots
What I have done and why
This PR adds an image generation AppFunction to the Agent demo app so the agent can generate images based on user requests.
Key Changes