@@ -2823,6 +2823,10 @@ class GoogleMaps(_common.BaseModel):
28232823 default=None,
28242824 description="""Optional. Auth config for the Google Maps tool.""",
28252825 )
2826+ enable_widget: Optional[bool] = Field(
2827+ default=None,
2828+ description="""Optional. If true, include the widget context token in the response.""",
2829+ )
28262830
28272831
28282832class GoogleMapsDict(TypedDict, total=False):
@@ -2831,6 +2835,9 @@ class GoogleMapsDict(TypedDict, total=False):
28312835 auth_config: Optional[AuthConfigDict]
28322836 """Optional. Auth config for the Google Maps tool."""
28332837
2838+ enable_widget: Optional[bool]
2839+ """Optional. If true, include the widget context token in the response."""
2840+
28342841
28352842GoogleMapsOrDict = Union[GoogleMaps, GoogleMapsDict]
28362843
@@ -4850,6 +4857,12 @@ class GroundingChunkMapsPlaceAnswerSourcesReviewSnippet(_common.BaseModel):
48504857 default=None,
48514858 description="""A reference representing this place review which may be used to look up this place review again.""",
48524859 )
4860+ review_id: Optional[str] = Field(
4861+ default=None, description="""Id of the review referencing the place."""
4862+ )
4863+ title: Optional[str] = Field(
4864+ default=None, description="""Title of the review."""
4865+ )
48534866
48544867
48554868class GroundingChunkMapsPlaceAnswerSourcesReviewSnippetDict(
@@ -4874,6 +4887,12 @@ class GroundingChunkMapsPlaceAnswerSourcesReviewSnippetDict(
48744887 review: Optional[str]
48754888 """A reference representing this place review which may be used to look up this place review again."""
48764889
4890+ review_id: Optional[str]
4891+ """Id of the review referencing the place."""
4892+
4893+ title: Optional[str]
4894+ """Title of the review."""
4895+
48774896
48784897GroundingChunkMapsPlaceAnswerSourcesReviewSnippetOrDict = Union[
48794898 GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
@@ -5234,6 +5253,39 @@ class SearchEntryPointDict(TypedDict, total=False):
52345253SearchEntryPointOrDict = Union[SearchEntryPoint, SearchEntryPointDict]
52355254
52365255
5256+ class GroundingMetadataSourceFlaggingUri(_common.BaseModel):
5257+ """Source content flagging uri for a place or review.
5258+
5259+ This is currently populated only for Google Maps grounding.
5260+ """
5261+
5262+ flag_content_uri: Optional[str] = Field(
5263+ default=None,
5264+ description="""A link where users can flag a problem with the source (place or review).""",
5265+ )
5266+ source_id: Optional[str] = Field(
5267+ default=None, description="""Id of the place or review."""
5268+ )
5269+
5270+
5271+ class GroundingMetadataSourceFlaggingUriDict(TypedDict, total=False):
5272+ """Source content flagging uri for a place or review.
5273+
5274+ This is currently populated only for Google Maps grounding.
5275+ """
5276+
5277+ flag_content_uri: Optional[str]
5278+ """A link where users can flag a problem with the source (place or review)."""
5279+
5280+ source_id: Optional[str]
5281+ """Id of the place or review."""
5282+
5283+
5284+ GroundingMetadataSourceFlaggingUriOrDict = Union[
5285+ GroundingMetadataSourceFlaggingUri, GroundingMetadataSourceFlaggingUriDict
5286+ ]
5287+
5288+
52375289class GroundingMetadata(_common.BaseModel):
52385290 """Metadata returned to client when grounding is enabled."""
52395291
@@ -5259,6 +5311,12 @@ class GroundingMetadata(_common.BaseModel):
52595311 default=None,
52605312 description="""Optional. Google search entry for the following-up web searches.""",
52615313 )
5314+ source_flagging_uris: Optional[list[GroundingMetadataSourceFlaggingUri]] = (
5315+ Field(
5316+ default=None,
5317+ description="""Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding.""",
5318+ )
5319+ )
52625320 web_search_queries: Optional[list[str]] = Field(
52635321 default=None,
52645322 description="""Optional. Web search queries for the following-up web search.""",
@@ -5286,6 +5344,9 @@ class GroundingMetadataDict(TypedDict, total=False):
52865344 search_entry_point: Optional[SearchEntryPointDict]
52875345 """Optional. Google search entry for the following-up web searches."""
52885346
5347+ source_flagging_uris: Optional[list[GroundingMetadataSourceFlaggingUriDict]]
5348+ """Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding."""
5349+
52895350 web_search_queries: Optional[list[str]]
52905351 """Optional. Web search queries for the following-up web search."""
52915352
0 commit comments