@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/web/web.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. */
@@ -5223,6 +5271,110 @@ export declare interface GoogleMaps {
5223
5271
  enableWidget?: boolean;
5224
5272
  }
5225
5273
 
5274
+ /**
5275
+ * The arguments to pass to the Google Maps tool.
5276
+ */
5277
+ declare interface GoogleMapsCallArguments {
5278
+ /**
5279
+ * The queries to be executed.
5280
+ */
5281
+ queries?: Array<string>;
5282
+ }
5283
+
5284
+ /**
5285
+ * Google Maps content.
5286
+ */
5287
+ declare interface GoogleMapsCallContent {
5288
+ /**
5289
+ * A unique ID for this specific tool call.
5290
+ */
5291
+ id: string;
5292
+ type: 'google_maps_call';
5293
+ /**
5294
+ * The arguments to pass to the Google Maps tool.
5295
+ */
5296
+ arguments?: GoogleMapsCallArguments;
5297
+ /**
5298
+ * A signature hash for backend validation.
5299
+ */
5300
+ signature?: string;
5301
+ }
5302
+
5303
+ /**
5304
+ * The result of the Google Maps.
5305
+ */
5306
+ declare interface GoogleMapsResult {
5307
+ /**
5308
+ * The places that were found.
5309
+ */
5310
+ places?: Array<GoogleMapsResult.Place>;
5311
+ /**
5312
+ * Resource name of the Google Maps widget context token.
5313
+ */
5314
+ widget_context_token?: string;
5315
+ }
5316
+
5317
+ declare namespace GoogleMapsResult {
5318
+ interface Place {
5319
+ /**
5320
+ * Title of the place.
5321
+ */
5322
+ name?: string;
5323
+ /**
5324
+ * The ID of the place, in `places/{place_id}` format.
5325
+ */
5326
+ place_id?: string;
5327
+ /**
5328
+ * Snippets of reviews that are used to generate answers about the
5329
+ * features of a given place in Google Maps.
5330
+ */
5331
+ review_snippets?: Array<Place.ReviewSnippet>;
5332
+ /**
5333
+ * URI reference of the place.
5334
+ */
5335
+ url?: string;
5336
+ }
5337
+ namespace Place {
5338
+ /**
5339
+ * Encapsulates a snippet of a user review that answers a question about
5340
+ * the features of a specific place in Google Maps.
5341
+ */
5342
+ interface ReviewSnippet {
5343
+ /**
5344
+ * The ID of the review snippet.
5345
+ */
5346
+ review_id?: string;
5347
+ /**
5348
+ * Title of the review.
5349
+ */
5350
+ title?: string;
5351
+ /**
5352
+ * A link that corresponds to the user review on Google Maps.
5353
+ */
5354
+ url?: string;
5355
+ }
5356
+ }
5357
+ }
5358
+
5359
+ /**
5360
+ * Google Maps result content.
5361
+ */
5362
+ declare interface GoogleMapsResultContent {
5363
+ /**
5364
+ * ID to match the ID from the google maps call block.
5365
+ */
5366
+ call_id: string;
5367
+ /**
5368
+ * The results of the Google Maps.
5369
+ */
5370
+ result: Array<GoogleMapsResult>;
5371
+ type: 'google_maps_result';
5372
+ /**
5373
+ * A signature hash for backend validation.
5374
+ */
5375
+ signature?: string;
5376
+ }
5377
+
5226
5378
  /** 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. */
5227
5379
  export declare interface GoogleRpcStatus {
5228
5380
  /** The status code, which should be an enum value of google.rpc.Code. */
@@ -5272,6 +5424,10 @@ declare interface GoogleSearchCallContent {
5272
5424
  * The type of search grounding enabled.
5273
5425
  */
5274
5426
  search_type?: 'web_search' | 'image_search';
5427
+ /**
5428
+ * A signature hash for backend validation.
5429
+ */
5430
+ signature?: string;
5275
5431
  }
5276
5432
 
5277
5433
  /**
@@ -5281,15 +5437,7 @@ declare interface GoogleSearchResult {
5281
5437
  /**
5282
5438
  * Web content snippet that can be embedded in a web page or an app webview.
5283
5439
  */
5284
- rendered_content?: string;
5285
- /**
5286
- * Title of the search result.
5287
- */
5288
- title?: string;
5289
- /**
5290
- * URI reference of the search result.
5291
- */
5292
- url?: string;
5440
+ search_suggestions?: string;
5293
5441
  }
5294
5442
 
5295
5443
  /**
@@ -6023,7 +6171,7 @@ declare interface Interaction {
6023
6171
  /**
6024
6172
  * The input for the interaction.
6025
6173
  */
6026
- 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;
6174
+ 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;
6027
6175
  /**
6028
6176
  * The name of the `Model` used for generating the interaction.
6029
6177
  */
@@ -6142,7 +6290,7 @@ export declare class Interactions extends BaseInteractions {
6142
6290
  }
6143
6291
 
6144
6292
  export declare namespace Interactions {
6145
- 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, };
6293
+ 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, };
6146
6294
  }
6147
6295
 
6148
6296
  declare namespace InteractionsAPI {
@@ -6163,12 +6311,17 @@ declare namespace InteractionsAPI {
6163
6311
  DocumentContent,
6164
6312
  DynamicAgentConfig,
6165
6313
  ErrorEvent_2 as ErrorEvent,
6314
+ FileCitation,
6166
6315
  FileSearchCallContent,
6167
6316
  FileSearchResultContent,
6168
6317
  Function_2 as Function,
6169
6318
  FunctionCallContent,
6170
6319
  FunctionResultContent,
6171
6320
  GenerationConfig_2 as GenerationConfig,
6321
+ GoogleMapsCallArguments,
6322
+ GoogleMapsCallContent,
6323
+ GoogleMapsResult,
6324
+ GoogleMapsResultContent,
6172
6325
  GoogleSearchCallArguments,
6173
6326
  GoogleSearchCallContent,
6174
6327
  GoogleSearchResult,
@@ -6183,6 +6336,7 @@ declare namespace InteractionsAPI {
6183
6336
  MCPServerToolCallContent,
6184
6337
  MCPServerToolResultContent,
6185
6338
  Model_2 as Model,
6339
+ PlaceCitation,
6186
6340
  SpeechConfig_2 as SpeechConfig,
6187
6341
  TextContent,
6188
6342
  ThinkingLevel_2 as ThinkingLevel,
@@ -6191,6 +6345,7 @@ declare namespace InteractionsAPI {
6191
6345
  ToolChoiceConfig,
6192
6346
  ToolChoiceType,
6193
6347
  Turn,
6348
+ URLCitation,
6194
6349
  URLContextCallArguments,
6195
6350
  URLContextCallContent,
6196
6351
  URLContextResult,
@@ -7436,6 +7591,10 @@ declare interface MCPServerToolCallContent {
7436
7591
  */
7437
7592
  server_name: string;
7438
7593
  type: 'mcp_server_tool_call';
7594
+ /**
7595
+ * A signature hash for backend validation.
7596
+ */
7597
+ signature?: string;
7439
7598
  }
7440
7599
 
7441
7600
  /**
@@ -8385,6 +8544,10 @@ export declare interface Part {
8385
8544
  thoughtSignature?: string;
8386
8545
  /** Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. */
8387
8546
  videoMetadata?: VideoMetadata;
8547
+ /** 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. */
8548
+ toolCall?: ToolCall;
8549
+ /** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
8550
+ toolResponse?: ToolResponse;
8388
8551
  }
8389
8552
 
8390
8553
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
@@ -8502,6 +8665,59 @@ export declare enum PhishBlockThreshold {
8502
8665
  BLOCK_ONLY_EXTREMELY_HIGH = "BLOCK_ONLY_EXTREMELY_HIGH"
8503
8666
  }
8504
8667
 
8668
+ /**
8669
+ * A place citation annotation.
8670
+ */
8671
+ declare interface PlaceCitation {
8672
+ type: 'place_citation';
8673
+ /**
8674
+ * End of the attributed segment, exclusive.
8675
+ */
8676
+ end_index?: number;
8677
+ /**
8678
+ * Title of the place.
8679
+ */
8680
+ name?: string;
8681
+ /**
8682
+ * The ID of the place, in `places/{place_id}` format.
8683
+ */
8684
+ place_id?: string;
8685
+ /**
8686
+ * Snippets of reviews that are used to generate answers about the
8687
+ * features of a given place in Google Maps.
8688
+ */
8689
+ review_snippets?: Array<PlaceCitation.ReviewSnippet>;
8690
+ /**
8691
+ * Start of segment of the response that is attributed to this source.
8692
+ */
8693
+ start_index?: number;
8694
+ /**
8695
+ * URI reference of the place.
8696
+ */
8697
+ url?: string;
8698
+ }
8699
+
8700
+ declare namespace PlaceCitation {
8701
+ /**
8702
+ * Encapsulates a snippet of a user review that answers a question about
8703
+ * the features of a specific place in Google Maps.
8704
+ */
8705
+ interface ReviewSnippet {
8706
+ /**
8707
+ * The ID of the review snippet.
8708
+ */
8709
+ review_id?: string;
8710
+ /**
8711
+ * Title of the review.
8712
+ */
8713
+ title?: string;
8714
+ /**
8715
+ * A link that corresponds to the user review on Google Maps.
8716
+ */
8717
+ url?: string;
8718
+ }
8719
+ }
8720
+
8505
8721
  /** Spec for pointwise metric result. This data type is not supported in Gemini API. */
8506
8722
  export declare interface PointwiseMetricResult {
8507
8723
  /** Output only. Spec for custom output. */
@@ -9950,9 +10166,19 @@ export declare interface Tool {
9950
10166
  /**
9951
10167
  * A tool that can be used by the model.
9952
10168
  */
9953
- declare type Tool_2 = Function_2 | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.GoogleSearch | Tool_2.FileSearch;
10169
+ 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;
9954
10170
 
9955
10171
  declare namespace Tool_2 {
10172
+ /**
10173
+ * A tool that can be used by the model to search Google.
10174
+ */
10175
+ interface GoogleSearch {
10176
+ type: 'google_search';
10177
+ /**
10178
+ * The types of search grounding to enable.
10179
+ */
10180
+ search_types?: Array<'web_search' | 'image_search'>;
10181
+ }
9956
10182
  /**
9957
10183
  * A tool that can be used by the model to execute code.
9958
10184
  */
@@ -10004,16 +10230,6 @@ declare namespace Tool_2 {
10004
10230
  */
10005
10231
  url?: string;
10006
10232
  }
10007
- /**
10008
- * A tool that can be used by the model to search Google.
10009
- */
10010
- interface GoogleSearch {
10011
- type: 'google_search';
10012
- /**
10013
- * The types of search grounding to enable.
10014
- */
10015
- search_types?: Array<'web_search' | 'image_search'>;
10016
- }
10017
10233
  /**
10018
10234
  * A tool that can be used by the model to search files.
10019
10235
  */
@@ -10032,6 +10248,40 @@ declare namespace Tool_2 {
10032
10248
  */
10033
10249
  top_k?: number;
10034
10250
  }
10251
+ /**
10252
+ * A tool that can be used by the model to call Google Maps.
10253
+ */
10254
+ interface GoogleMaps {
10255
+ /**
10256
+ * Whether to return a widget context token in the tool call result of the
10257
+ * response.
10258
+ */
10259
+ enable_widget?: boolean;
10260
+ /**
10261
+ * The latitude of the user's location.
10262
+ */
10263
+ latitude?: number;
10264
+ /**
10265
+ * The longitude of the user's location.
10266
+ */
10267
+ longitude?: number;
10268
+ type?: 'google_maps';
10269
+ }
10270
+ }
10271
+
10272
+ /** A predicted server-side `ToolCall` returned from the model.
10273
+
10274
+ This message contains information about a tool that the model wants to invoke.
10275
+ The client is NOT expected to execute this `ToolCall`. Instead, the
10276
+ client should pass this `ToolCall` back to the API in a subsequent turn
10277
+ within a `Content` message, along with the corresponding `ToolResponse`. */
10278
+ export declare interface ToolCall {
10279
+ /** Unique identifier of the tool call. The server returns the tool response with the matching `id`. */
10280
+ id?: string;
10281
+ /** The type of tool that was called. */
10282
+ toolType?: ToolType;
10283
+ /** The tool call arguments. Example: {"arg1": "value1", "arg2": "value2"}. */
10284
+ args?: Record<string, unknown>;
10035
10285
  }
10036
10286
 
10037
10287
  /**
@@ -10058,6 +10308,8 @@ export declare interface ToolConfig {
10058
10308
  retrievalConfig?: RetrievalConfig;
10059
10309
  /** Optional. Function calling config. */
10060
10310
  functionCallingConfig?: FunctionCallingConfig;
10311
+ /** 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. */
10312
+ includeServerSideToolInvocations?: boolean;
10061
10313
  }
10062
10314
 
10063
10315
  export declare type ToolListUnion = ToolUnion[];
@@ -10070,6 +10322,49 @@ export declare interface ToolParallelAiSearch {
10070
10322
  customConfigs?: Record<string, unknown>;
10071
10323
  }
10072
10324
 
10325
+ /** The output from a server-side `ToolCall` execution.
10326
+
10327
+ This message contains the results of a tool invocation that was initiated by a
10328
+ `ToolCall` from the model. The client should pass this `ToolResponse` back to
10329
+ the API in a subsequent turn within a `Content` message, along with the
10330
+ corresponding `ToolCall`. */
10331
+ export declare class ToolResponse {
10332
+ /** The identifier of the tool call this response is for. */
10333
+ id?: string;
10334
+ /** The type of tool that was called, matching the tool_type in the corresponding ToolCall. */
10335
+ toolType?: ToolType;
10336
+ /** The tool response. */
10337
+ response?: Record<string, unknown>;
10338
+ }
10339
+
10340
+ /** The type of tool in the function call. */
10341
+ export declare enum ToolType {
10342
+ /**
10343
+ * Unspecified tool type.
10344
+ */
10345
+ TOOL_TYPE_UNSPECIFIED = "TOOL_TYPE_UNSPECIFIED",
10346
+ /**
10347
+ * Google search tool, maps to Tool.google_search.search_types.web_search.
10348
+ */
10349
+ GOOGLE_SEARCH_WEB = "GOOGLE_SEARCH_WEB",
10350
+ /**
10351
+ * Image search tool, maps to Tool.google_search.search_types.image_search.
10352
+ */
10353
+ GOOGLE_SEARCH_IMAGE = "GOOGLE_SEARCH_IMAGE",
10354
+ /**
10355
+ * URL context tool, maps to Tool.url_context.
10356
+ */
10357
+ URL_CONTEXT = "URL_CONTEXT",
10358
+ /**
10359
+ * Google maps tool, maps to Tool.google_maps.
10360
+ */
10361
+ GOOGLE_MAPS = "GOOGLE_MAPS",
10362
+ /**
10363
+ * File search tool, maps to Tool.file_search.
10364
+ */
10365
+ FILE_SEARCH = "FILE_SEARCH"
10366
+ }
10367
+
10073
10368
  export declare type ToolUnion = Tool | CallableTool;
10074
10369
 
10075
10370
  /** Output only. The traffic type for this request. This enum is not supported in Gemini API. */
@@ -10496,8 +10791,8 @@ declare namespace types {
10496
10791
  createPartFromExecutableCode,
10497
10792
  createUserContent,
10498
10793
  createModelContent,
10499
- Outcome,
10500
10794
  Language,
10795
+ Outcome,
10501
10796
  FunctionResponseScheduling,
10502
10797
  Type,
10503
10798
  PhishBlockThreshold,
@@ -10528,6 +10823,7 @@ declare namespace types {
10528
10823
  PairwiseChoice,
10529
10824
  TuningTask,
10530
10825
  PartMediaResolutionLevel,
10826
+ ToolType,
10531
10827
  ResourceScope,
10532
10828
  FeatureSelectionPreference,
10533
10829
  Environment,
@@ -10558,9 +10854,11 @@ declare namespace types {
10558
10854
  Scale,
10559
10855
  MusicGenerationMode,
10560
10856
  LiveMusicPlaybackControl,
10561
- PartMediaResolution,
10562
- CodeExecutionResult,
10563
10857
  ExecutableCode,
10858
+ CodeExecutionResult,
10859
+ PartMediaResolution,
10860
+ ToolCall,
10861
+ ToolResponse,
10564
10862
  FileData,
10565
10863
  PartialArg,
10566
10864
  FunctionCall,
@@ -11065,7 +11363,7 @@ declare interface Uploader {
11065
11363
  * @param apiClient The ApiClient to use for uploading.
11066
11364
  * @return A Promise that resolves to types.File.
11067
11365
  */
11068
- upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<File_2>;
11366
+ upload(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<File_2>;
11069
11367
  /**
11070
11368
  * Uploads a file to file search store via the given upload url.
11071
11369
  *
@@ -11074,9 +11372,10 @@ declare interface Uploader {
11074
11372
  * uploaded to. The uploadUrl must be a url that was returned by the
11075
11373
  * https://generativelanguage.googleapis.com/upload/v1beta/{file_search_store_name}:uploadToFileSearchStore endpoint
11076
11374
  * @param apiClient The ApiClient to use for uploading.
11375
+ * @param httpOptions Optional HTTP options to merge.
11077
11376
  * @return A Promise that resolves to types.UploadToFileSearchStoreOperation.
11078
11377
  */
11079
- uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient): Promise<UploadToFileSearchStoreOperation>;
11378
+ uploadToFileSearchStore(file: string | Blob, uploadUrl: string, apiClient: ApiClient, httpOptions?: HttpOptions): Promise<UploadToFileSearchStoreOperation>;
11080
11379
  /**
11081
11380
  * Returns the file's mimeType and the size of a given file. If the file is a
11082
11381
  * string path, the file type is determined by the file extension. If the
@@ -11252,6 +11551,29 @@ export declare class UpscaleImageResponse {
11252
11551
  generatedImages?: GeneratedImage[];
11253
11552
  }
11254
11553
 
11554
+ /**
11555
+ * A URL citation annotation.
11556
+ */
11557
+ declare interface URLCitation {
11558
+ type: 'url_citation';
11559
+ /**
11560
+ * End of the attributed segment, exclusive.
11561
+ */
11562
+ end_index?: number;
11563
+ /**
11564
+ * Start of segment of the response that is attributed to this source.
11565
+ */
11566
+ start_index?: number;
11567
+ /**
11568
+ * The title of the URL.
11569
+ */
11570
+ title?: string;
11571
+ /**
11572
+ * The URL.
11573
+ */
11574
+ url?: string;
11575
+ }
11576
+
11255
11577
  /** Tool to support URL context. */
11256
11578
  export declare interface UrlContext {
11257
11579
  }
@@ -11279,6 +11601,10 @@ declare interface URLContextCallContent {
11279
11601
  */
11280
11602
  arguments: URLContextCallArguments;
11281
11603
  type: 'url_context_call';
11604
+ /**
11605
+ * A signature hash for backend validation.
11606
+ */
11607
+ signature?: string;
11282
11608
  }
11283
11609
 
11284
11610
  /** Metadata returned when the model uses the `url_context` tool to get information from a user-provided URL. */