@@ -163,7 +163,6 @@ enum TaskType {
163163}
164164
165165// Request to generate a completion from the model.
166- // NEXT ID: 18
167166message GenerateContentRequest {
168167 // Required. The name of the `Model` to use for generating the completion.
169168 //
@@ -316,7 +315,6 @@ message ImageConfig {
316315
317316// Configuration options for model generation and outputs. Not all parameters
318317// are configurable for every model.
319- // Next ID: 29
320318message GenerationConfig {
321319 // Supported modalities of the response.
322320 enum Modality {
@@ -947,6 +945,13 @@ message GroundingMetadata {
947945
948946 // Web search queries for the following-up web search.
949947 repeated string web_search_queries = 5 ;
948+
949+ // Optional. Resource name of the Google Maps widget context token that can be
950+ // used with the PlacesContextElement widget in order to render contextual
951+ // data. Only populated in the case that grounding with Google Maps is
952+ // enabled.
953+ optional string google_maps_widget_context_token = 7
954+ [(google.api.field_behavior ) = OPTIONAL ];
950955}
951956
952957// Google search entry point.
@@ -971,10 +976,75 @@ message GroundingChunk {
971976 optional string title = 2 ;
972977 }
973978
979+ // Chunk from context retrieved by the file search tool.
980+ message RetrievedContext {
981+ // Optional. URI reference of the semantic retrieval document.
982+ optional string uri = 1 [(google.api.field_behavior ) = OPTIONAL ];
983+
984+ // Optional. Title of the document.
985+ optional string title = 2 [(google.api.field_behavior ) = OPTIONAL ];
986+
987+ // Optional. Text of the chunk.
988+ optional string text = 3 [(google.api.field_behavior ) = OPTIONAL ];
989+ }
990+
991+ // A grounding chunk from Google Maps. A Maps chunk corresponds to a single
992+ // place.
993+ message Maps {
994+ // Collection of sources that provide answers about the features of a given
995+ // place in Google Maps. Each PlaceAnswerSources message corresponds to a
996+ // specific place in Google Maps. The Google Maps tool used these sources in
997+ // order to answer questions about features of the place (e.g: "does Bar Foo
998+ // have Wifi" or "is Foo Bar wheelchair accessible?"). Currently we only
999+ // support review snippets as sources.
1000+ message PlaceAnswerSources {
1001+ // Encapsulates a snippet of a user review that answers a question about
1002+ // the features of a specific place in Google Maps.
1003+ message ReviewSnippet {
1004+ // The ID of the review snippet.
1005+ optional string review_id = 1 ;
1006+
1007+ // A link that corresponds to the user review on Google Maps.
1008+ optional string google_maps_uri = 2 ;
1009+
1010+ // Title of the review.
1011+ optional string title = 3 ;
1012+ }
1013+
1014+ // Snippets of reviews that are used to generate answers about the
1015+ // features of a given place in Google Maps.
1016+ repeated ReviewSnippet review_snippets = 1 ;
1017+ }
1018+
1019+ // URI reference of the place.
1020+ optional string uri = 1 ;
1021+
1022+ // Title of the place.
1023+ optional string title = 2 ;
1024+
1025+ // Text description of the place answer.
1026+ optional string text = 3 ;
1027+
1028+ // This ID of the place, in `places/{place_id}` format. A user can use this
1029+ // ID to look up that place.
1030+ optional string place_id = 4 ;
1031+
1032+ // Sources that provide answers about the features of a given place in
1033+ // Google Maps.
1034+ optional PlaceAnswerSources place_answer_sources = 5 ;
1035+ }
1036+
9741037 // Chunk type.
9751038 oneof chunk_type {
9761039 // Grounding chunk from the web.
9771040 Web web = 1 ;
1041+
1042+ // Optional. Grounding chunk from context retrieved by the file search tool.
1043+ RetrievedContext retrieved_context = 2
1044+ [(google.api.field_behavior ) = OPTIONAL ];
1045+
1046+ // Optional. Grounding chunk from Google Maps.
1047+ Maps maps = 3 [(google.api.field_behavior ) = OPTIONAL ];
9781048 }
9791049}
9801050
0 commit comments