Skip to content

[AI] Add proposed doc snippet to integration tests#16166

Open
paulb777 wants to merge 2 commits into
mainfrom
pb-maps-template-snippet
Open

[AI] Add proposed doc snippet to integration tests#16166
paulb777 wants to merge 2 commits into
mainfrom
pb-maps-template-snippet

Conversation

@paulb777
Copy link
Copy Markdown
Member

@paulb777 paulb777 commented May 8, 2026

#no-changelog

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@paulb777
Copy link
Copy Markdown
Member Author

paulb777 commented May 8, 2026

/gemini review

Copy link
Copy Markdown
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 adds a new integration test, generateContentWithTemplateMapsGroundingSnippet, to verify that server prompt templates correctly return Google Maps grounding metadata. The test validates the presence of map chunks, including URLs, titles, and place IDs. Feedback was provided to use try #require instead of #expect when checking if mapChunks is empty; this ensures the test fails immediately if the expected data is missing, preventing the test from potentially passing silently if the subsequent validation loop is skipped.

@paulb777
Copy link
Copy Markdown
Member Author

paulb777 commented May 8, 2026

/gemini review

Copy link
Copy Markdown
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 adds a new integration test, generateContentWithTemplateMapsGroundingSnippet, to verify grounding metadata mapping for Google Maps snippets. The feedback suggests including InstanceConfig.vertexAI_v1beta in the test arguments to ensure cross-platform consistency between Google AI and Vertex AI.

Comment on lines +91 to +93
@Test(arguments: [
InstanceConfig.googleAI_v1beta,
])
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.

medium

Consider including InstanceConfig.vertexAI_v1beta in the test arguments. This ensures that the prompt template and grounding metadata mapping are verified across both Google AI and Vertex AI platforms, maintaining consistency with other integration tests in this file.

  @Test(arguments: [
    InstanceConfig.googleAI_v1beta,
    InstanceConfig.vertexAI_v1beta,
  ])

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Caught error: BackendError(httpResponseCode: 404, message: "Publisher Model projects/ios-opensource-samples/locations/us-central1/publishers/google/models/gemini-3-flash-preview was not found or your project does not have access to it. Please ensure you are using a valid model version. For more information, see: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions", status: FirebaseAILogic.RPCStatus.notFound, details: [])

and

Caught error: BackendError(httpResponseCode: 404, message: "Publisher Model projects/ios-opensource-samples/locations/us-central1/publishers/google/models/gemini-3-flash was not found or your project does not have access to it. Please ensure you are using a valid model version. For more information, see: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions", status: FirebaseAILogic.RPCStatus.notFound, details: [])

And there is no location specifier in the template ...

@paulb777 paulb777 force-pushed the pb-maps-template-snippet branch from 9118ccf to 1390106 Compare May 13, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant