@google/genai 1.45.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/genai.d.ts CHANGED
@@ -157,23 +157,7 @@ declare interface AllowedTools {
157
157
  /**
158
158
  * Citation information for model-generated content.
159
159
  */
160
- declare interface Annotation {
161
- /**
162
- * End of the attributed segment, exclusive.
163
- */
164
- end_index?: number;
165
- /**
166
- * Source attributed for a portion of the text. Could be a URL, title, or
167
- * other identifier.
168
- */
169
- source?: string;
170
- /**
171
- * Start of segment of the response that is attributed to this source.
172
- *
173
- * Index indicates the start of the segment, measured in bytes.
174
- */
175
- start_index?: number;
176
- }
160
+ declare type Annotation = URLCitation | FileCitation | PlaceCitation;
177
161
 
178
162
  /** The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. This data type is not supported in Gemini API. */
179
163
  export declare interface ApiAuth {
@@ -655,7 +639,7 @@ declare interface BaseCreateAgentInteractionParams {
655
639
  /**
656
640
  * Body param: The input for the interaction.
657
641
  */
658
- input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
642
+ input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
659
643
  /**
660
644
  * Body param: Configuration parameters for the agent interaction.
661
645
  */
@@ -707,7 +691,7 @@ declare interface BaseCreateModelInteractionParams {
707
691
  /**
708
692
  * Body param: The input for the interaction.
709
693
  */
710
- input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
694
+ input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
711
695
  /**
712
696
  * Body param: The name of the `Model` used for generating the interaction.
713
697
  */
@@ -1703,14 +1687,22 @@ declare interface CodeExecutionCallContent {
1703
1687
  */
1704
1688
  arguments: CodeExecutionCallArguments;
1705
1689
  type: 'code_execution_call';
1690
+ /**
1691
+ * A signature hash for backend validation.
1692
+ */
1693
+ signature?: string;
1706
1694
  }
1707
1695
 
1708
- /** Result of executing the [ExecutableCode]. Only generated when using the [CodeExecution] tool, and always follows a `part` containing the [ExecutableCode]. */
1696
+ /** Result of executing the `ExecutableCode`.
1697
+
1698
+ Generated only when the `CodeExecution` tool is used. */
1709
1699
  export declare interface CodeExecutionResult {
1710
1700
  /** Required. Outcome of the code execution. */
1711
1701
  outcome?: Outcome;
1712
1702
  /** Optional. Contains stdout when code execution is successful, stderr or other description otherwise. */
1713
1703
  output?: string;
1704
+ /** The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. */
1705
+ id?: string;
1714
1706
  }
1715
1707
 
1716
1708
  /**
@@ -1818,10 +1810,10 @@ export declare interface Content {
1818
1810
  /**
1819
1811
  * The content of the response.
1820
1812
  */
1821
- declare type Content_2 = TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
1813
+ declare type Content_2 = TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
1822
1814
 
1823
1815
  declare interface ContentDelta {
1824
- delta: ContentDelta.TextDelta | ContentDelta.ImageDelta | ContentDelta.AudioDelta | ContentDelta.DocumentDelta | ContentDelta.VideoDelta | ContentDelta.ThoughtSummaryDelta | ContentDelta.ThoughtSignatureDelta | ContentDelta.FunctionCallDelta | ContentDelta.FunctionResultDelta | ContentDelta.CodeExecutionCallDelta | ContentDelta.CodeExecutionResultDelta | ContentDelta.URLContextCallDelta | ContentDelta.URLContextResultDelta | ContentDelta.GoogleSearchCallDelta | ContentDelta.GoogleSearchResultDelta | ContentDelta.MCPServerToolCallDelta | ContentDelta.MCPServerToolResultDelta | ContentDelta.FileSearchCallDelta | ContentDelta.FileSearchResultDelta;
1816
+ delta: ContentDelta.Text | ContentDelta.Image | ContentDelta.Audio | ContentDelta.Document | ContentDelta.Video | ContentDelta.ThoughtSummary | ContentDelta.ThoughtSignature | ContentDelta.FunctionCall | ContentDelta.FunctionResult | ContentDelta.CodeExecutionCall | ContentDelta.CodeExecutionResult | ContentDelta.URLContextCall | ContentDelta.URLContextResult | ContentDelta.GoogleSearchCall | ContentDelta.GoogleSearchResult | ContentDelta.MCPServerToolCall | ContentDelta.MCPServerToolResult | ContentDelta.FileSearchCall | ContentDelta.FileSearchResult | ContentDelta.GoogleMapsCall | ContentDelta.GoogleMapsResult;
1825
1817
  event_type: 'content.delta';
1826
1818
  index: number;
1827
1819
  /**
@@ -1831,7 +1823,7 @@ declare interface ContentDelta {
1831
1823
  }
1832
1824
 
1833
1825
  declare namespace ContentDelta {
1834
- interface TextDelta {
1826
+ interface Text {
1835
1827
  text: string;
1836
1828
  type: 'text';
1837
1829
  /**
@@ -1839,7 +1831,7 @@ declare namespace ContentDelta {
1839
1831
  */
1840
1832
  annotations?: Array<InteractionsAPI.Annotation>;
1841
1833
  }
1842
- interface ImageDelta {
1834
+ interface Image {
1843
1835
  type: 'image';
1844
1836
  data?: string;
1845
1837
  mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
@@ -1849,19 +1841,19 @@ declare namespace ContentDelta {
1849
1841
  resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
1850
1842
  uri?: string;
1851
1843
  }
1852
- interface AudioDelta {
1844
+ interface Audio {
1853
1845
  type: 'audio';
1854
1846
  data?: string;
1855
1847
  mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac';
1856
1848
  uri?: string;
1857
1849
  }
1858
- interface DocumentDelta {
1850
+ interface Document {
1859
1851
  type: 'document';
1860
1852
  data?: string;
1861
1853
  mime_type?: 'application/pdf';
1862
1854
  uri?: string;
1863
1855
  }
1864
- interface VideoDelta {
1856
+ interface Video {
1865
1857
  type: 'video';
1866
1858
  data?: string;
1867
1859
  mime_type?: 'video/mp4' | 'video/mpeg' | 'video/mpg' | 'video/mov' | 'video/avi' | 'video/x-flv' | 'video/webm' | 'video/wmv' | 'video/3gpp';
@@ -1871,21 +1863,21 @@ declare namespace ContentDelta {
1871
1863
  resolution?: 'low' | 'medium' | 'high' | 'ultra_high';
1872
1864
  uri?: string;
1873
1865
  }
1874
- interface ThoughtSummaryDelta {
1866
+ interface ThoughtSummary {
1875
1867
  type: 'thought_summary';
1876
1868
  /**
1877
1869
  * A new summary item to be added to the thought.
1878
1870
  */
1879
1871
  content?: InteractionsAPI.TextContent | InteractionsAPI.ImageContent;
1880
1872
  }
1881
- interface ThoughtSignatureDelta {
1873
+ interface ThoughtSignature {
1882
1874
  type: 'thought_signature';
1883
1875
  /**
1884
1876
  * Signature to match the backend source to be part of the generation.
1885
1877
  */
1886
1878
  signature?: string;
1887
1879
  }
1888
- interface FunctionCallDelta {
1880
+ interface FunctionCall {
1889
1881
  /**
1890
1882
  * A unique ID for this specific tool call.
1891
1883
  */
@@ -1895,8 +1887,12 @@ declare namespace ContentDelta {
1895
1887
  };
1896
1888
  name: string;
1897
1889
  type: 'function_call';
1890
+ /**
1891
+ * A signature hash for backend validation.
1892
+ */
1893
+ signature?: string;
1898
1894
  }
1899
- interface FunctionResultDelta {
1895
+ interface FunctionResult {
1900
1896
  /**
1901
1897
  * ID to match the ID from the function call block.
1902
1898
  */
@@ -1904,7 +1900,7 @@ declare namespace ContentDelta {
1904
1900
  /**
1905
1901
  * Tool call result delta.
1906
1902
  */
1907
- result: FunctionResultDelta.Items | unknown | string;
1903
+ result: FunctionResult.Items | unknown | string;
1908
1904
  type: 'function_result';
1909
1905
  is_error?: boolean;
1910
1906
  name?: string;
@@ -1913,12 +1909,12 @@ declare namespace ContentDelta {
1913
1909
  */
1914
1910
  signature?: string;
1915
1911
  }
1916
- namespace FunctionResultDelta {
1912
+ namespace FunctionResult {
1917
1913
  interface Items {
1918
1914
  items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
1919
1915
  }
1920
1916
  }
1921
- interface CodeExecutionCallDelta {
1917
+ interface CodeExecutionCall {
1922
1918
  /**
1923
1919
  * A unique ID for this specific tool call.
1924
1920
  */
@@ -1928,8 +1924,12 @@ declare namespace ContentDelta {
1928
1924
  */
1929
1925
  arguments: InteractionsAPI.CodeExecutionCallArguments;
1930
1926
  type: 'code_execution_call';
1927
+ /**
1928
+ * A signature hash for backend validation.
1929
+ */
1930
+ signature?: string;
1931
1931
  }
1932
- interface CodeExecutionResultDelta {
1932
+ interface CodeExecutionResult {
1933
1933
  /**
1934
1934
  * ID to match the ID from the function call block.
1935
1935
  */
@@ -1942,7 +1942,7 @@ declare namespace ContentDelta {
1942
1942
  */
1943
1943
  signature?: string;
1944
1944
  }
1945
- interface URLContextCallDelta {
1945
+ interface URLContextCall {
1946
1946
  /**
1947
1947
  * A unique ID for this specific tool call.
1948
1948
  */
@@ -1952,8 +1952,12 @@ declare namespace ContentDelta {
1952
1952
  */
1953
1953
  arguments: InteractionsAPI.URLContextCallArguments;
1954
1954
  type: 'url_context_call';
1955
+ /**
1956
+ * A signature hash for backend validation.
1957
+ */
1958
+ signature?: string;
1955
1959
  }
1956
- interface URLContextResultDelta {
1960
+ interface URLContextResult {
1957
1961
  /**
1958
1962
  * ID to match the ID from the function call block.
1959
1963
  */
@@ -1966,7 +1970,7 @@ declare namespace ContentDelta {
1966
1970
  */
1967
1971
  signature?: string;
1968
1972
  }
1969
- interface GoogleSearchCallDelta {
1973
+ interface GoogleSearchCall {
1970
1974
  /**
1971
1975
  * A unique ID for this specific tool call.
1972
1976
  */
@@ -1976,8 +1980,12 @@ declare namespace ContentDelta {
1976
1980
  */
1977
1981
  arguments: InteractionsAPI.GoogleSearchCallArguments;
1978
1982
  type: 'google_search_call';
1983
+ /**
1984
+ * A signature hash for backend validation.
1985
+ */
1986
+ signature?: string;
1979
1987
  }
1980
- interface GoogleSearchResultDelta {
1988
+ interface GoogleSearchResult {
1981
1989
  /**
1982
1990
  * ID to match the ID from the function call block.
1983
1991
  */
@@ -1990,7 +1998,7 @@ declare namespace ContentDelta {
1990
1998
  */
1991
1999
  signature?: string;
1992
2000
  }
1993
- interface MCPServerToolCallDelta {
2001
+ interface MCPServerToolCall {
1994
2002
  /**
1995
2003
  * A unique ID for this specific tool call.
1996
2004
  */
@@ -2001,8 +2009,12 @@ declare namespace ContentDelta {
2001
2009
  name: string;
2002
2010
  server_name: string;
2003
2011
  type: 'mcp_server_tool_call';
2012
+ /**
2013
+ * A signature hash for backend validation.
2014
+ */
2015
+ signature?: string;
2004
2016
  }
2005
- interface MCPServerToolResultDelta {
2017
+ interface MCPServerToolResult {
2006
2018
  /**
2007
2019
  * ID to match the ID from the function call block.
2008
2020
  */
@@ -2010,7 +2022,7 @@ declare namespace ContentDelta {
2010
2022
  /**
2011
2023
  * Tool call result delta.
2012
2024
  */
2013
- result: MCPServerToolResultDelta.Items | unknown | string;
2025
+ result: MCPServerToolResult.Items | unknown | string;
2014
2026
  type: 'mcp_server_tool_result';
2015
2027
  name?: string;
2016
2028
  server_name?: string;
@@ -2019,48 +2031,63 @@ declare namespace ContentDelta {
2019
2031
  */
2020
2032
  signature?: string;
2021
2033
  }
2022
- namespace MCPServerToolResultDelta {
2034
+ namespace MCPServerToolResult {
2023
2035
  interface Items {
2024
2036
  items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
2025
2037
  }
2026
2038
  }
2027
- interface FileSearchCallDelta {
2039
+ interface FileSearchCall {
2028
2040
  /**
2029
2041
  * A unique ID for this specific tool call.
2030
2042
  */
2031
2043
  id: string;
2032
2044
  type: 'file_search_call';
2045
+ /**
2046
+ * A signature hash for backend validation.
2047
+ */
2048
+ signature?: string;
2033
2049
  }
2034
- interface FileSearchResultDelta {
2050
+ interface FileSearchResult {
2035
2051
  /**
2036
2052
  * ID to match the ID from the function call block.
2037
2053
  */
2038
2054
  call_id: string;
2039
2055
  type: 'file_search_result';
2040
- result?: Array<FileSearchResultDelta.Result>;
2056
+ result?: Array<unknown>;
2041
2057
  /**
2042
2058
  * A signature hash for backend validation.
2043
2059
  */
2044
2060
  signature?: string;
2045
2061
  }
2046
- namespace FileSearchResultDelta {
2062
+ interface GoogleMapsCall {
2047
2063
  /**
2048
- * The result of the File Search.
2064
+ * A unique ID for this specific tool call.
2049
2065
  */
2050
- interface Result {
2051
- /**
2052
- * The name of the file search store.
2053
- */
2054
- file_search_store?: string;
2055
- /**
2056
- * The text of the search result.
2057
- */
2058
- text?: string;
2059
- /**
2060
- * The title of the search result.
2061
- */
2062
- title?: string;
2063
- }
2066
+ id: string;
2067
+ type: 'google_maps_call';
2068
+ /**
2069
+ * The arguments to pass to the Google Maps tool.
2070
+ */
2071
+ arguments?: InteractionsAPI.GoogleMapsCallArguments;
2072
+ /**
2073
+ * A signature hash for backend validation.
2074
+ */
2075
+ signature?: string;
2076
+ }
2077
+ interface GoogleMapsResult {
2078
+ /**
2079
+ * ID to match the ID from the function call block.
2080
+ */
2081
+ call_id: string;
2082
+ /**
2083
+ * The results of the Google Maps.
2084
+ */
2085
+ result: Array<InteractionsAPI.GoogleMapsResult>;
2086
+ type: 'google_maps_result';
2087
+ /**
2088
+ * A signature hash for backend validation.
2089
+ */
2090
+ signature?: string;
2064
2091
  }
2065
2092
  }
2066
2093
 
@@ -3407,12 +3434,18 @@ export declare interface ExactMatchMetricValue {
3407
3434
  score?: number;
3408
3435
  }
3409
3436
 
3410
- /** Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the [CodeExecution] tool, in which the code will be automatically executed, and a corresponding [CodeExecutionResult] will also be generated. */
3437
+ /** Model-generated code executed server-side, results returned to the model.
3438
+
3439
+ Only generated when using the `CodeExecution` tool, in which the code will
3440
+ be automatically executed, and a corresponding `CodeExecutionResult` will
3441
+ also be generated. */
3411
3442
  export declare interface ExecutableCode {
3412
3443
  /** Required. The code to be executed. */
3413
3444
  code?: string;
3414
3445
  /** Required. Programming language of the `code`. */
3415
3446
  language?: Language;
3447
+ /** Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. */
3448
+ id?: string;
3416
3449
  }
3417
3450
 
3418
3451
  /** Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. This data type is not supported in Gemini API. */
@@ -3517,6 +3550,33 @@ declare interface File_2 {
3517
3550
  }
3518
3551
  export { File_2 as File }
3519
3552
 
3553
+ /**
3554
+ * A file citation annotation.
3555
+ */
3556
+ declare interface FileCitation {
3557
+ type: 'file_citation';
3558
+ /**
3559
+ * The URI of the file.
3560
+ */
3561
+ document_uri?: string;
3562
+ /**
3563
+ * End of the attributed segment, exclusive.
3564
+ */
3565
+ end_index?: number;
3566
+ /**
3567
+ * The name of the file.
3568
+ */
3569
+ file_name?: string;
3570
+ /**
3571
+ * Source attributed for a portion of the text.
3572
+ */
3573
+ source?: string;
3574
+ /**
3575
+ * Start of segment of the response that is attributed to this source.
3576
+ */
3577
+ start_index?: number;
3578
+ }
3579
+
3520
3580
  /** URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. */
3521
3581
  export declare interface FileData {
3522
3582
  /** Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API. */
@@ -3667,6 +3727,10 @@ declare interface FileSearchCallContent {
3667
3727
  */
3668
3728
  id: string;
3669
3729
  type: 'file_search_call';
3730
+ /**
3731
+ * A signature hash for backend validation.
3732
+ */
3733
+ signature?: string;
3670
3734
  }
3671
3735
 
3672
3736
  /**
@@ -3681,33 +3745,13 @@ declare interface FileSearchResultContent {
3681
3745
  /**
3682
3746
  * The results of the File Search.
3683
3747
  */
3684
- result?: Array<FileSearchResultContent.Result>;
3748
+ result?: Array<unknown>;
3685
3749
  /**
3686
3750
  * A signature hash for backend validation.
3687
3751
  */
3688
3752
  signature?: string;
3689
3753
  }
3690
3754
 
3691
- declare namespace FileSearchResultContent {
3692
- /**
3693
- * The result of the File Search.
3694
- */
3695
- interface Result {
3696
- /**
3697
- * The name of the file search store.
3698
- */
3699
- file_search_store?: string;
3700
- /**
3701
- * The text of the search result.
3702
- */
3703
- text?: string;
3704
- /**
3705
- * The title of the search result.
3706
- */
3707
- title?: string;
3708
- }
3709
- }
3710
-
3711
3755
  /** A collection of Documents. */
3712
3756
  export declare interface FileSearchStore {
3713
3757
  /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */
@@ -4007,6 +4051,10 @@ declare interface FunctionCallContent {
4007
4051
  */
4008
4052
  name: string;
4009
4053
  type: 'function_call';
4054
+ /**
4055
+ * A signature hash for backend validation.
4056
+ */
4057
+ signature?: string;
4010
4058
  }
4011
4059
 
4012
4060
  /** Function calling config. */
@@ -5218,6 +5266,110 @@ export declare interface GoogleMaps {
5218
5266
  enableWidget?: boolean;
5219
5267
  }
5220
5268
 
5269
+ /**
5270
+ * The arguments to pass to the Google Maps tool.
5271
+ */
5272
+ declare interface GoogleMapsCallArguments {
5273
+ /**
5274
+ * The queries to be executed.
5275
+ */
5276
+ queries?: Array<string>;
5277
+ }
5278
+
5279
+ /**
5280
+ * Google Maps content.
5281
+ */
5282
+ declare interface GoogleMapsCallContent {
5283
+ /**
5284
+ * A unique ID for this specific tool call.
5285
+ */
5286
+ id: string;
5287
+ type: 'google_maps_call';
5288
+ /**
5289
+ * The arguments to pass to the Google Maps tool.
5290
+ */
5291
+ arguments?: GoogleMapsCallArguments;
5292
+ /**
5293
+ * A signature hash for backend validation.
5294
+ */
5295
+ signature?: string;
5296
+ }
5297
+
5298
+ /**
5299
+ * The result of the Google Maps.
5300
+ */
5301
+ declare interface GoogleMapsResult {
5302
+ /**
5303
+ * The places that were found.
5304
+ */
5305
+ places?: Array<GoogleMapsResult.Place>;
5306
+ /**
5307
+ * Resource name of the Google Maps widget context token.
5308
+ */
5309
+ widget_context_token?: string;
5310
+ }
5311
+
5312
+ declare namespace GoogleMapsResult {
5313
+ interface Place {
5314
+ /**
5315
+ * Title of the place.
5316
+ */
5317
+ name?: string;
5318
+ /**
5319
+ * The ID of the place, in `places/{place_id}` format.
5320
+ */
5321
+ place_id?: string;
5322
+ /**
5323
+ * Snippets of reviews that are used to generate answers about the
5324
+ * features of a given place in Google Maps.
5325
+ */
5326
+ review_snippets?: Array<Place.ReviewSnippet>;
5327
+ /**
5328
+ * URI reference of the place.
5329
+ */
5330
+ url?: string;
5331
+ }
5332
+ namespace Place {
5333
+ /**
5334
+ * Encapsulates a snippet of a user review that answers a question about
5335
+ * the features of a specific place in Google Maps.
5336
+ */
5337
+ interface ReviewSnippet {
5338
+ /**
5339
+ * The ID of the review snippet.
5340
+ */
5341
+ review_id?: string;
5342
+ /**
5343
+ * Title of the review.
5344
+ */
5345
+ title?: string;
5346
+ /**
5347
+ * A link that corresponds to the user review on Google Maps.
5348
+ */
5349
+ url?: string;
5350
+ }
5351
+ }
5352
+ }
5353
+
5354
+ /**
5355
+ * Google Maps result content.
5356
+ */
5357
+ declare interface GoogleMapsResultContent {
5358
+ /**
5359
+ * ID to match the ID from the google maps call block.
5360
+ */
5361
+ call_id: string;
5362
+ /**
5363
+ * The results of the Google Maps.
5364
+ */
5365
+ result: Array<GoogleMapsResult>;
5366
+ type: 'google_maps_result';
5367
+ /**
5368
+ * A signature hash for backend validation.
5369
+ */
5370
+ signature?: string;
5371
+ }
5372
+
5221
5373
  /** The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). This data type is not supported in Gemini API. */
5222
5374
  export declare interface GoogleRpcStatus {
5223
5375
  /** The status code, which should be an enum value of google.rpc.Code. */
@@ -5267,6 +5419,10 @@ declare interface GoogleSearchCallContent {
5267
5419
  * The type of search grounding enabled.
5268
5420
  */
5269
5421
  search_type?: 'web_search' | 'image_search';
5422
+ /**
5423
+ * A signature hash for backend validation.
5424
+ */
5425
+ signature?: string;
5270
5426
  }
5271
5427
 
5272
5428
  /**
@@ -5276,15 +5432,7 @@ declare interface GoogleSearchResult {
5276
5432
  /**
5277
5433
  * Web content snippet that can be embedded in a web page or an app webview.
5278
5434
  */
5279
- rendered_content?: string;
5280
- /**
5281
- * Title of the search result.
5282
- */
5283
- title?: string;
5284
- /**
5285
- * URI reference of the search result.
5286
- */
5287
- url?: string;
5435
+ search_suggestions?: string;
5288
5436
  }
5289
5437
 
5290
5438
  /**
@@ -6018,7 +6166,7 @@ declare interface Interaction {
6018
6166
  /**
6019
6167
  * The input for the interaction.
6020
6168
  */
6021
- input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
6169
+ input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent | GoogleMapsCallContent | GoogleMapsResultContent;
6022
6170
  /**
6023
6171
  * The name of the `Model` used for generating the interaction.
6024
6172
  */
@@ -6137,7 +6285,7 @@ export declare class Interactions extends BaseInteractions {
6137
6285
  }
6138
6286
 
6139
6287
  export declare namespace Interactions {
6140
- export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileSearchCallContent as FileSearchCallContent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type Interaction as Interaction, type InteractionCompleteEvent as InteractionCompleteEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStartEvent as InteractionStartEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
6288
+ export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileCitation as FileCitation, type FileSearchCallContent as FileSearchCallContent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleMapsCallArguments as GoogleMapsCallArguments, type GoogleMapsCallContent as GoogleMapsCallContent, type GoogleMapsResult as GoogleMapsResult, type GoogleMapsResultContent as GoogleMapsResultContent, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type Interaction as Interaction, type InteractionCompleteEvent as InteractionCompleteEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStartEvent as InteractionStartEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type PlaceCitation as PlaceCitation, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLCitation as URLCitation, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
6141
6289
  }
6142
6290
 
6143
6291
  declare namespace InteractionsAPI {
@@ -6158,12 +6306,17 @@ declare namespace InteractionsAPI {
6158
6306
  DocumentContent,
6159
6307
  DynamicAgentConfig,
6160
6308
  ErrorEvent_2 as ErrorEvent,
6309
+ FileCitation,
6161
6310
  FileSearchCallContent,
6162
6311
  FileSearchResultContent,
6163
6312
  Function_2 as Function,
6164
6313
  FunctionCallContent,
6165
6314
  FunctionResultContent,
6166
6315
  GenerationConfig_2 as GenerationConfig,
6316
+ GoogleMapsCallArguments,
6317
+ GoogleMapsCallContent,
6318
+ GoogleMapsResult,
6319
+ GoogleMapsResultContent,
6167
6320
  GoogleSearchCallArguments,
6168
6321
  GoogleSearchCallContent,
6169
6322
  GoogleSearchResult,
@@ -6178,6 +6331,7 @@ declare namespace InteractionsAPI {
6178
6331
  MCPServerToolCallContent,
6179
6332
  MCPServerToolResultContent,
6180
6333
  Model_2 as Model,
6334
+ PlaceCitation,
6181
6335
  SpeechConfig_2 as SpeechConfig,
6182
6336
  TextContent,
6183
6337
  ThinkingLevel_2 as ThinkingLevel,
@@ -6186,6 +6340,7 @@ declare namespace InteractionsAPI {
6186
6340
  ToolChoiceConfig,
6187
6341
  ToolChoiceType,
6188
6342
  Turn,
6343
+ URLCitation,
6189
6344
  URLContextCallArguments,
6190
6345
  URLContextCallContent,
6191
6346
  URLContextResult,
@@ -7431,6 +7586,10 @@ declare interface MCPServerToolCallContent {
7431
7586
  */
7432
7587
  server_name: string;
7433
7588
  type: 'mcp_server_tool_call';
7589
+ /**
7590
+ * A signature hash for backend validation.
7591
+ */
7592
+ signature?: string;
7434
7593
  }
7435
7594
 
7436
7595
  /**
@@ -8380,6 +8539,10 @@ export declare interface Part {
8380
8539
  thoughtSignature?: string;
8381
8540
  /** Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. */
8382
8541
  videoMetadata?: VideoMetadata;
8542
+ /** Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API. */
8543
+ toolCall?: ToolCall;
8544
+ /** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
8545
+ toolResponse?: ToolResponse;
8383
8546
  }
8384
8547
 
8385
8548
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
@@ -8497,6 +8660,59 @@ export declare enum PhishBlockThreshold {
8497
8660
  BLOCK_ONLY_EXTREMELY_HIGH = "BLOCK_ONLY_EXTREMELY_HIGH"
8498
8661
  }
8499
8662
 
8663
+ /**
8664
+ * A place citation annotation.
8665
+ */
8666
+ declare interface PlaceCitation {
8667
+ type: 'place_citation';
8668
+ /**
8669
+ * End of the attributed segment, exclusive.
8670
+ */
8671
+ end_index?: number;
8672
+ /**
8673
+ * Title of the place.
8674
+ */
8675
+ name?: string;
8676
+ /**
8677
+ * The ID of the place, in `places/{place_id}` format.
8678
+ */
8679
+ place_id?: string;
8680
+ /**
8681
+ * Snippets of reviews that are used to generate answers about the
8682
+ * features of a given place in Google Maps.
8683
+ */
8684
+ review_snippets?: Array<PlaceCitation.ReviewSnippet>;
8685
+ /**
8686
+ * Start of segment of the response that is attributed to this source.
8687
+ */
8688
+ start_index?: number;
8689
+ /**
8690
+ * URI reference of the place.
8691
+ */
8692
+ url?: string;
8693
+ }
8694
+
8695
+ declare namespace PlaceCitation {
8696
+ /**
8697
+ * Encapsulates a snippet of a user review that answers a question about
8698
+ * the features of a specific place in Google Maps.
8699
+ */
8700
+ interface ReviewSnippet {
8701
+ /**
8702
+ * The ID of the review snippet.
8703
+ */
8704
+ review_id?: string;
8705
+ /**
8706
+ * Title of the review.
8707
+ */
8708
+ title?: string;
8709
+ /**
8710
+ * A link that corresponds to the user review on Google Maps.
8711
+ */
8712
+ url?: string;
8713
+ }
8714
+ }
8715
+
8500
8716
  /** Spec for pointwise metric result. This data type is not supported in Gemini API. */
8501
8717
  export declare interface PointwiseMetricResult {
8502
8718
  /** Output only. Spec for custom output. */
@@ -9945,9 +10161,19 @@ export declare interface Tool {
9945
10161
  /**
9946
10162
  * A tool that can be used by the model.
9947
10163
  */
9948
- declare type Tool_2 = Function_2 | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.GoogleSearch | Tool_2.FileSearch;
10164
+ declare type Tool_2 = Function_2 | Tool_2.GoogleSearch | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.FileSearch | Tool_2.GoogleMaps;
9949
10165
 
9950
10166
  declare namespace Tool_2 {
10167
+ /**
10168
+ * A tool that can be used by the model to search Google.
10169
+ */
10170
+ interface GoogleSearch {
10171
+ type: 'google_search';
10172
+ /**
10173
+ * The types of search grounding to enable.
10174
+ */
10175
+ search_types?: Array<'web_search' | 'image_search'>;
10176
+ }
9951
10177
  /**
9952
10178
  * A tool that can be used by the model to execute code.
9953
10179
  */
@@ -9999,16 +10225,6 @@ declare namespace Tool_2 {
9999
10225
  */
10000
10226
  url?: string;
10001
10227
  }
10002
- /**
10003
- * A tool that can be used by the model to search Google.
10004
- */
10005
- interface GoogleSearch {
10006
- type: 'google_search';
10007
- /**
10008
- * The types of search grounding to enable.
10009
- */
10010
- search_types?: Array<'web_search' | 'image_search'>;
10011
- }
10012
10228
  /**
10013
10229
  * A tool that can be used by the model to search files.
10014
10230
  */
@@ -10027,6 +10243,40 @@ declare namespace Tool_2 {
10027
10243
  */
10028
10244
  top_k?: number;
10029
10245
  }
10246
+ /**
10247
+ * A tool that can be used by the model to call Google Maps.
10248
+ */
10249
+ interface GoogleMaps {
10250
+ /**
10251
+ * Whether to return a widget context token in the tool call result of the
10252
+ * response.
10253
+ */
10254
+ enable_widget?: boolean;
10255
+ /**
10256
+ * The latitude of the user's location.
10257
+ */
10258
+ latitude?: number;
10259
+ /**
10260
+ * The longitude of the user's location.
10261
+ */
10262
+ longitude?: number;
10263
+ type?: 'google_maps';
10264
+ }
10265
+ }
10266
+
10267
+ /** A predicted server-side `ToolCall` returned from the model.
10268
+
10269
+ This message contains information about a tool that the model wants to invoke.
10270
+ The client is NOT expected to execute this `ToolCall`. Instead, the
10271
+ client should pass this `ToolCall` back to the API in a subsequent turn
10272
+ within a `Content` message, along with the corresponding `ToolResponse`. */
10273
+ export declare interface ToolCall {
10274
+ /** Unique identifier of the tool call. The server returns the tool response with the matching `id`. */
10275
+ id?: string;
10276
+ /** The type of tool that was called. */
10277
+ toolType?: ToolType;
10278
+ /** The tool call arguments. Example: {"arg1": "value1", "arg2": "value2"}. */
10279
+ args?: Record<string, unknown>;
10030
10280
  }
10031
10281
 
10032
10282
  /**
@@ -10053,6 +10303,8 @@ export declare interface ToolConfig {
10053
10303
  retrievalConfig?: RetrievalConfig;
10054
10304
  /** Optional. Function calling config. */
10055
10305
  functionCallingConfig?: FunctionCallingConfig;
10306
+ /** If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool invocations. */
10307
+ includeServerSideToolInvocations?: boolean;
10056
10308
  }
10057
10309
 
10058
10310
  export declare type ToolListUnion = ToolUnion[];
@@ -10065,6 +10317,49 @@ export declare interface ToolParallelAiSearch {
10065
10317
  customConfigs?: Record<string, unknown>;
10066
10318
  }
10067
10319
 
10320
+ /** The output from a server-side `ToolCall` execution.
10321
+
10322
+ This message contains the results of a tool invocation that was initiated by a
10323
+ `ToolCall` from the model. The client should pass this `ToolResponse` back to
10324
+ the API in a subsequent turn within a `Content` message, along with the
10325
+ corresponding `ToolCall`. */
10326
+ export declare class ToolResponse {
10327
+ /** The identifier of the tool call this response is for. */
10328
+ id?: string;
10329
+ /** The type of tool that was called, matching the tool_type in the corresponding ToolCall. */
10330
+ toolType?: ToolType;
10331
+ /** The tool response. */
10332
+ response?: Record<string, unknown>;
10333
+ }
10334
+
10335
+ /** The type of tool in the function call. */
10336
+ export declare enum ToolType {
10337
+ /**
10338
+ * Unspecified tool type.
10339
+ */
10340
+ TOOL_TYPE_UNSPECIFIED = "TOOL_TYPE_UNSPECIFIED",
10341
+ /**
10342
+ * Google search tool, maps to Tool.google_search.search_types.web_search.
10343
+ */
10344
+ GOOGLE_SEARCH_WEB = "GOOGLE_SEARCH_WEB",
10345
+ /**
10346
+ * Image search tool, maps to Tool.google_search.search_types.image_search.
10347
+ */
10348
+ GOOGLE_SEARCH_IMAGE = "GOOGLE_SEARCH_IMAGE",
10349
+ /**
10350
+ * URL context tool, maps to Tool.url_context.
10351
+ */
10352
+ URL_CONTEXT = "URL_CONTEXT",
10353
+ /**
10354
+ * Google maps tool, maps to Tool.google_maps.
10355
+ */
10356
+ GOOGLE_MAPS = "GOOGLE_MAPS",
10357
+ /**
10358
+ * File search tool, maps to Tool.file_search.
10359
+ */
10360
+ FILE_SEARCH = "FILE_SEARCH"
10361
+ }
10362
+
10068
10363
  export declare type ToolUnion = Tool | CallableTool;
10069
10364
 
10070
10365
  /** Output only. The traffic type for this request. This enum is not supported in Gemini API. */
@@ -10491,8 +10786,8 @@ declare namespace types {
10491
10786
  createPartFromExecutableCode,
10492
10787
  createUserContent,
10493
10788
  createModelContent,
10494
- Outcome,
10495
10789
  Language,
10790
+ Outcome,
10496
10791
  FunctionResponseScheduling,
10497
10792
  Type,
10498
10793
  PhishBlockThreshold,
@@ -10523,6 +10818,7 @@ declare namespace types {
10523
10818
  PairwiseChoice,
10524
10819
  TuningTask,
10525
10820
  PartMediaResolutionLevel,
10821
+ ToolType,
10526
10822
  ResourceScope,
10527
10823
  FeatureSelectionPreference,
10528
10824
  Environment,
@@ -10553,9 +10849,11 @@ declare namespace types {
10553
10849
  Scale,
10554
10850
  MusicGenerationMode,
10555
10851
  LiveMusicPlaybackControl,
10556
- PartMediaResolution,
10557
- CodeExecutionResult,
10558
10852
  ExecutableCode,
10853
+ CodeExecutionResult,
10854
+ PartMediaResolution,
10855
+ ToolCall,
10856
+ ToolResponse,
10559
10857
  FileData,
10560
10858
  PartialArg,
10561
10859
  FunctionCall,
@@ -11060,7 +11358,7 @@ declare interface Uploader {
11060
11358
  * @param apiClient The ApiClient to use for uploading.
11061
11359
  * @return A Promise that resolves to types.File.
11062
11360
  */
11063
- upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<File_2>;
11361
+ upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<File_2>;
11064
11362
  /**
11065
11363
  * Uploads a file to file search store via the given upload url.
11066
11364
  *
@@ -11069,9 +11367,10 @@ declare interface Uploader {
11069
11367
  * uploaded to. The uploadUrl must be a url that was returned by the
11070
11368
  * https://generativelanguage.googleapis.com/upload/v1beta/{file_search_store_name}:uploadToFileSearchStore endpoint
11071
11369
  * @param apiClient The ApiClient to use for uploading.
11370
+ * @param httpOptions Optional HTTP options to merge.
11072
11371
  * @return A Promise that resolves to types.UploadToFileSearchStoreOperation.
11073
11372
  */
11074
- uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<UploadToFileSearchStoreOperation>;
11373
+ uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<UploadToFileSearchStoreOperation>;
11075
11374
  /**
11076
11375
  * Returns the file's mimeType and the size of a given file. If the file is a
11077
11376
  * string path, the file type is determined by the file extension. If the
@@ -11247,6 +11546,29 @@ export declare class UpscaleImageResponse {
11247
11546
  generatedImages?: GeneratedImage[];
11248
11547
  }
11249
11548
 
11549
+ /**
11550
+ * A URL citation annotation.
11551
+ */
11552
+ declare interface URLCitation {
11553
+ type: 'url_citation';
11554
+ /**
11555
+ * End of the attributed segment, exclusive.
11556
+ */
11557
+ end_index?: number;
11558
+ /**
11559
+ * Start of segment of the response that is attributed to this source.
11560
+ */
11561
+ start_index?: number;
11562
+ /**
11563
+ * The title of the URL.
11564
+ */
11565
+ title?: string;
11566
+ /**
11567
+ * The URL.
11568
+ */
11569
+ url?: string;
11570
+ }
11571
+
11250
11572
  /** Tool to support URL context. */
11251
11573
  export declare interface UrlContext {
11252
11574
  }
@@ -11274,6 +11596,10 @@ declare interface URLContextCallContent {
11274
11596
  */
11275
11597
  arguments: URLContextCallArguments;
11276
11598
  type: 'url_context_call';
11599
+ /**
11600
+ * A signature hash for backend validation.
11601
+ */
11602
+ signature?: string;
11277
11603
  }
11278
11604
 
11279
11605
  /** Metadata returned when the model uses the `url_context` tool to get information from a user-provided URL. */