Skip to content

Rebrand Vertex AI -> Agent Platform in the Android AI sample - #1002

Open
amylgu wants to merge 1 commit into
mainfrom
rebrand-agent-platform
Open

Rebrand Vertex AI -> Agent Platform in the Android AI sample#1002
amylgu wants to merge 1 commit into
mainfrom
rebrand-agent-platform

Conversation

@amylgu

@amylgu amylgu commented Jul 31, 2026

Copy link
Copy Markdown
  • Rebrand Vertex AI to Agent Platform in the Android AI sample.
  • Update model references from Gemini 2.5 Flash to Gemini 3.5 Flash.
  • Make new snippet names model version agnostic to avoid having to continuously update the snippet names going forward.

Note: A follow-up cleanup PR will remove the legacy snippets once DAC pages are updated and verified.

Related: cl/957356836

@keyboardsurfer @sanbeiji

Also update model versions from Gemini 2.5 Flash to Gemini 3.4 Flash, and make snippet names model version agnostic so we don't have to continuously update the snippets names going forward.

Keeping original code until we verify that the new snippet names work with DAC. Once verified, will remove the original code in a subsequent pull request.
@amylgu
amylgu requested a review from a team as a code owner July 31, 2026 22:30
@snippet-bot

snippet-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 8 region tags.
You are about to delete 4 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@kkuan2011 kkuan2011 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aside from the comments, looks good from a snippets repo perspective

@@ -21,19 +21,19 @@ import com.google.firebase.ai.GenerativeModel
import com.google.firebase.ai.ai
import com.google.firebase.ai.type.GenerativeBackend

class VertexAiGeminiApi {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you actually keep a copy of VertexAiGeminiApi in the repo with the old region tags? Then once you update DAC, you could delete that old file.

import java.util.concurrent.Executor;

public class VertexAiGeminiApiJava {
public class AgentPlatformGeminiApiJava {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same for this file, suggest keeping a copy of VertexAiGeminiApiJava until DAC successfully points to the new snippets.

// [END android_gemini_developer_api_gemini_25_flash_model]
}

object GeminiDeveloperApi35FlashModelConfiguration {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we remove the 35 so it's not tied to a release number?

// [END android_gemini_developer_api_gemini_25_flash_image_model]
}

object Gemini35FlashImagePreviewModelConfiguration {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here, remove 35 in the object name?

public static GenerativeModelFutures model;

static {
// [START android_gemini_developer_api_gemini_flash_model_java]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If there are new snippets, consider not migrating the java snippets here

public static GenerativeModelFutures model;

static {
// [START android_gemini_developer_api_gemini_flash_image_model_java]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here, do you want the java snippet added to the repo?

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.

2 participants