@google/genai 1.46.0 → 1.48.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
@@ -472,7 +472,7 @@ declare interface AudioContent {
472
472
  /**
473
473
  * The mime type of the audio.
474
474
  */
475
- mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac';
475
+ mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a';
476
476
  /**
477
477
  * The URI of the audio.
478
478
  */
@@ -639,7 +639,7 @@ declare interface BaseCreateAgentInteractionParams {
639
639
  /**
640
640
  * Body param: The input for the interaction.
641
641
  */
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;
642
+ input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | CodeExecutionCallContent | URLContextCallContent | MCPServerToolCallContent | GoogleSearchCallContent | FileSearchCallContent | GoogleMapsCallContent | FunctionResultContent | CodeExecutionResultContent | URLContextResultContent | GoogleSearchResultContent | MCPServerToolResultContent | FileSearchResultContent | GoogleMapsResultContent;
643
643
  /**
644
644
  * Body param: Configuration parameters for the agent interaction.
645
645
  */
@@ -665,6 +665,10 @@ declare interface BaseCreateAgentInteractionParams {
665
665
  * Body param: The requested modalities of the response (TEXT, IMAGE, AUDIO).
666
666
  */
667
667
  response_modalities?: Array<'text' | 'image' | 'audio'>;
668
+ /**
669
+ * Body param: The service tier for the interaction.
670
+ */
671
+ service_tier?: 'flex' | 'standard' | 'priority';
668
672
  /**
669
673
  * Body param: Input only. Whether to store the response and request for later retrieval.
670
674
  */
@@ -691,7 +695,7 @@ declare interface BaseCreateModelInteractionParams {
691
695
  /**
692
696
  * Body param: The input for the interaction.
693
697
  */
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;
698
+ input: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | CodeExecutionCallContent | URLContextCallContent | MCPServerToolCallContent | GoogleSearchCallContent | FileSearchCallContent | GoogleMapsCallContent | FunctionResultContent | CodeExecutionResultContent | URLContextResultContent | GoogleSearchResultContent | MCPServerToolResultContent | FileSearchResultContent | GoogleMapsResultContent;
695
699
  /**
696
700
  * Body param: The name of the `Model` used for generating the interaction.
697
701
  */
@@ -721,6 +725,10 @@ declare interface BaseCreateModelInteractionParams {
721
725
  * Body param: The requested modalities of the response (TEXT, IMAGE, AUDIO).
722
726
  */
723
727
  response_modalities?: Array<'text' | 'image' | 'audio'>;
728
+ /**
729
+ * Body param: The service tier for the interaction.
730
+ */
731
+ service_tier?: 'flex' | 'standard' | 'priority';
724
732
  /**
725
733
  * Body param: Input only. Whether to store the response and request for later retrieval.
726
734
  */
@@ -839,7 +847,7 @@ declare class BaseInteractions extends APIResource {
839
847
  * const interaction = await client.interactions.create({
840
848
  * api_version: 'api_version',
841
849
  * input: [{ text: 'text', type: 'text' }],
842
- * model: 'gemini-2.5-flash',
850
+ * model: 'gemini-2.5-computer-use-preview-10-2025',
843
851
  * });
844
852
  * ```
845
853
  */
@@ -1679,11 +1687,11 @@ declare interface CodeExecutionCallArguments {
1679
1687
  */
1680
1688
  declare interface CodeExecutionCallContent {
1681
1689
  /**
1682
- * A unique ID for this specific tool call.
1690
+ * Required. A unique ID for this specific tool call.
1683
1691
  */
1684
1692
  id: string;
1685
1693
  /**
1686
- * The arguments to pass to the code execution.
1694
+ * Required. The arguments to pass to the code execution.
1687
1695
  */
1688
1696
  arguments: CodeExecutionCallArguments;
1689
1697
  type: 'code_execution_call';
@@ -1710,11 +1718,11 @@ export declare interface CodeExecutionResult {
1710
1718
  */
1711
1719
  declare interface CodeExecutionResultContent {
1712
1720
  /**
1713
- * ID to match the ID from the code execution call block.
1721
+ * Required. ID to match the ID from the function call block.
1714
1722
  */
1715
1723
  call_id: string;
1716
1724
  /**
1717
- * The output of the code execution.
1725
+ * Required. The output of the code execution.
1718
1726
  */
1719
1727
  result: string;
1720
1728
  type: 'code_execution_result';
@@ -1810,14 +1818,18 @@ export declare interface Content {
1810
1818
  /**
1811
1819
  * The content of the response.
1812
1820
  */
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;
1821
+ declare type Content_2 = TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | CodeExecutionCallContent | URLContextCallContent | MCPServerToolCallContent | GoogleSearchCallContent | FileSearchCallContent | GoogleMapsCallContent | FunctionResultContent | CodeExecutionResultContent | URLContextResultContent | GoogleSearchResultContent | MCPServerToolResultContent | FileSearchResultContent | GoogleMapsResultContent;
1814
1822
 
1815
1823
  declare interface ContentDelta {
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;
1824
+ /**
1825
+ * The delta content data for a content block.
1826
+ */
1827
+ delta: ContentDelta.Text | ContentDelta.Image | ContentDelta.Audio | ContentDelta.Document | ContentDelta.Video | ContentDelta.ThoughtSummary | ContentDelta.ThoughtSignature | ContentDelta.FunctionCall | ContentDelta.CodeExecutionCall | ContentDelta.URLContextCall | ContentDelta.GoogleSearchCall | ContentDelta.MCPServerToolCall | ContentDelta.FileSearchCall | ContentDelta.GoogleMapsCall | ContentDelta.FunctionResult | ContentDelta.CodeExecutionResult | ContentDelta.URLContextResult | ContentDelta.GoogleSearchResult | ContentDelta.MCPServerToolResult | ContentDelta.FileSearchResult | ContentDelta.GoogleMapsResult | ContentDelta.TextAnnotation;
1817
1828
  event_type: 'content.delta';
1818
1829
  index: number;
1819
1830
  /**
1820
- * The event_id token to be used to resume the interaction stream, from this event.
1831
+ * The event_id token to be used to resume the interaction stream, from
1832
+ * this event.
1821
1833
  */
1822
1834
  event_id?: string;
1823
1835
  }
@@ -1826,15 +1838,11 @@ declare namespace ContentDelta {
1826
1838
  interface Text {
1827
1839
  text: string;
1828
1840
  type: 'text';
1829
- /**
1830
- * Citation information for model-generated content.
1831
- */
1832
- annotations?: Array<InteractionsAPI.Annotation>;
1833
1841
  }
1834
1842
  interface Image {
1835
1843
  type: 'image';
1836
1844
  data?: string;
1837
- mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
1845
+ mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
1838
1846
  /**
1839
1847
  * The resolution of the media.
1840
1848
  */
@@ -1844,7 +1852,7 @@ declare namespace ContentDelta {
1844
1852
  interface Audio {
1845
1853
  type: 'audio';
1846
1854
  data?: string;
1847
- mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac';
1855
+ mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a';
1848
1856
  uri?: string;
1849
1857
  }
1850
1858
  interface Document {
@@ -1879,7 +1887,7 @@ declare namespace ContentDelta {
1879
1887
  }
1880
1888
  interface FunctionCall {
1881
1889
  /**
1882
- * A unique ID for this specific tool call.
1890
+ * Required. A unique ID for this specific tool call.
1883
1891
  */
1884
1892
  id: string;
1885
1893
  arguments: {
@@ -1892,203 +1900,205 @@ declare namespace ContentDelta {
1892
1900
  */
1893
1901
  signature?: string;
1894
1902
  }
1895
- interface FunctionResult {
1903
+ interface CodeExecutionCall {
1896
1904
  /**
1897
- * ID to match the ID from the function call block.
1905
+ * Required. A unique ID for this specific tool call.
1898
1906
  */
1899
- call_id: string;
1907
+ id: string;
1900
1908
  /**
1901
- * Tool call result delta.
1909
+ * The arguments to pass to the code execution.
1902
1910
  */
1903
- result: FunctionResult.Items | unknown | string;
1904
- type: 'function_result';
1905
- is_error?: boolean;
1906
- name?: string;
1911
+ arguments: InteractionsAPI.CodeExecutionCallArguments;
1912
+ type: 'code_execution_call';
1907
1913
  /**
1908
1914
  * A signature hash for backend validation.
1909
1915
  */
1910
1916
  signature?: string;
1911
1917
  }
1912
- namespace FunctionResult {
1913
- interface Items {
1914
- items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
1915
- }
1916
- }
1917
- interface CodeExecutionCall {
1918
+ interface URLContextCall {
1918
1919
  /**
1919
- * A unique ID for this specific tool call.
1920
+ * Required. A unique ID for this specific tool call.
1920
1921
  */
1921
1922
  id: string;
1922
1923
  /**
1923
- * The arguments to pass to the code execution.
1924
+ * The arguments to pass to the URL context.
1924
1925
  */
1925
- arguments: InteractionsAPI.CodeExecutionCallArguments;
1926
- type: 'code_execution_call';
1926
+ arguments: InteractionsAPI.URLContextCallArguments;
1927
+ type: 'url_context_call';
1927
1928
  /**
1928
1929
  * A signature hash for backend validation.
1929
1930
  */
1930
1931
  signature?: string;
1931
1932
  }
1932
- interface CodeExecutionResult {
1933
+ interface GoogleSearchCall {
1933
1934
  /**
1934
- * ID to match the ID from the function call block.
1935
+ * Required. A unique ID for this specific tool call.
1935
1936
  */
1936
- call_id: string;
1937
- result: string;
1938
- type: 'code_execution_result';
1939
- is_error?: boolean;
1937
+ id: string;
1938
+ /**
1939
+ * The arguments to pass to Google Search.
1940
+ */
1941
+ arguments: InteractionsAPI.GoogleSearchCallArguments;
1942
+ type: 'google_search_call';
1940
1943
  /**
1941
1944
  * A signature hash for backend validation.
1942
1945
  */
1943
1946
  signature?: string;
1944
1947
  }
1945
- interface URLContextCall {
1948
+ interface MCPServerToolCall {
1946
1949
  /**
1947
- * A unique ID for this specific tool call.
1950
+ * Required. A unique ID for this specific tool call.
1948
1951
  */
1949
1952
  id: string;
1950
- /**
1951
- * The arguments to pass to the URL context.
1952
- */
1953
- arguments: InteractionsAPI.URLContextCallArguments;
1954
- type: 'url_context_call';
1953
+ arguments: {
1954
+ [key: string]: unknown;
1955
+ };
1956
+ name: string;
1957
+ server_name: string;
1958
+ type: 'mcp_server_tool_call';
1955
1959
  /**
1956
1960
  * A signature hash for backend validation.
1957
1961
  */
1958
1962
  signature?: string;
1959
1963
  }
1960
- interface URLContextResult {
1964
+ interface FileSearchCall {
1961
1965
  /**
1962
- * ID to match the ID from the function call block.
1966
+ * Required. A unique ID for this specific tool call.
1963
1967
  */
1964
- call_id: string;
1965
- result: Array<InteractionsAPI.URLContextResult>;
1966
- type: 'url_context_result';
1967
- is_error?: boolean;
1968
+ id: string;
1969
+ type: 'file_search_call';
1968
1970
  /**
1969
1971
  * A signature hash for backend validation.
1970
1972
  */
1971
1973
  signature?: string;
1972
1974
  }
1973
- interface GoogleSearchCall {
1975
+ interface GoogleMapsCall {
1974
1976
  /**
1975
- * A unique ID for this specific tool call.
1977
+ * Required. A unique ID for this specific tool call.
1976
1978
  */
1977
1979
  id: string;
1980
+ type: 'google_maps_call';
1978
1981
  /**
1979
- * The arguments to pass to Google Search.
1982
+ * The arguments to pass to the Google Maps tool.
1980
1983
  */
1981
- arguments: InteractionsAPI.GoogleSearchCallArguments;
1982
- type: 'google_search_call';
1984
+ arguments?: InteractionsAPI.GoogleMapsCallArguments;
1983
1985
  /**
1984
1986
  * A signature hash for backend validation.
1985
1987
  */
1986
1988
  signature?: string;
1987
1989
  }
1988
- interface GoogleSearchResult {
1990
+ interface FunctionResult {
1989
1991
  /**
1990
- * ID to match the ID from the function call block.
1992
+ * Required. ID to match the ID from the function call block.
1991
1993
  */
1992
1994
  call_id: string;
1993
- result: Array<InteractionsAPI.GoogleSearchResult>;
1994
- type: 'google_search_result';
1995
+ result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
1996
+ type: 'function_result';
1995
1997
  is_error?: boolean;
1998
+ name?: string;
1996
1999
  /**
1997
2000
  * A signature hash for backend validation.
1998
2001
  */
1999
2002
  signature?: string;
2000
2003
  }
2001
- interface MCPServerToolCall {
2004
+ interface CodeExecutionResult {
2002
2005
  /**
2003
- * A unique ID for this specific tool call.
2006
+ * Required. ID to match the ID from the function call block.
2004
2007
  */
2005
- id: string;
2006
- arguments: {
2007
- [key: string]: unknown;
2008
- };
2009
- name: string;
2010
- server_name: string;
2011
- type: 'mcp_server_tool_call';
2008
+ call_id: string;
2009
+ result: string;
2010
+ type: 'code_execution_result';
2011
+ is_error?: boolean;
2012
2012
  /**
2013
2013
  * A signature hash for backend validation.
2014
2014
  */
2015
2015
  signature?: string;
2016
2016
  }
2017
- interface MCPServerToolResult {
2017
+ interface URLContextResult {
2018
2018
  /**
2019
- * ID to match the ID from the function call block.
2019
+ * Required. ID to match the ID from the function call block.
2020
2020
  */
2021
2021
  call_id: string;
2022
- /**
2023
- * Tool call result delta.
2024
- */
2025
- result: MCPServerToolResult.Items | unknown | string;
2026
- type: 'mcp_server_tool_result';
2027
- name?: string;
2028
- server_name?: string;
2022
+ result: Array<InteractionsAPI.URLContextResult>;
2023
+ type: 'url_context_result';
2024
+ is_error?: boolean;
2029
2025
  /**
2030
2026
  * A signature hash for backend validation.
2031
2027
  */
2032
2028
  signature?: string;
2033
2029
  }
2034
- namespace MCPServerToolResult {
2035
- interface Items {
2036
- items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
2037
- }
2038
- }
2039
- interface FileSearchCall {
2030
+ interface GoogleSearchResult {
2040
2031
  /**
2041
- * A unique ID for this specific tool call.
2032
+ * Required. ID to match the ID from the function call block.
2042
2033
  */
2043
- id: string;
2044
- type: 'file_search_call';
2034
+ call_id: string;
2035
+ result: Array<InteractionsAPI.GoogleSearchResult>;
2036
+ type: 'google_search_result';
2037
+ is_error?: boolean;
2045
2038
  /**
2046
2039
  * A signature hash for backend validation.
2047
2040
  */
2048
2041
  signature?: string;
2049
2042
  }
2050
- interface FileSearchResult {
2043
+ interface MCPServerToolResult {
2051
2044
  /**
2052
- * ID to match the ID from the function call block.
2045
+ * Required. ID to match the ID from the function call block.
2053
2046
  */
2054
2047
  call_id: string;
2055
- type: 'file_search_result';
2056
- result?: Array<unknown>;
2048
+ result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
2049
+ type: 'mcp_server_tool_result';
2050
+ name?: string;
2051
+ server_name?: string;
2057
2052
  /**
2058
2053
  * A signature hash for backend validation.
2059
2054
  */
2060
2055
  signature?: string;
2061
2056
  }
2062
- interface GoogleMapsCall {
2063
- /**
2064
- * A unique ID for this specific tool call.
2065
- */
2066
- id: string;
2067
- type: 'google_maps_call';
2057
+ interface FileSearchResult {
2068
2058
  /**
2069
- * The arguments to pass to the Google Maps tool.
2059
+ * Required. ID to match the ID from the function call block.
2070
2060
  */
2071
- arguments?: InteractionsAPI.GoogleMapsCallArguments;
2061
+ call_id: string;
2062
+ result: Array<FileSearchResult.Result>;
2063
+ type: 'file_search_result';
2072
2064
  /**
2073
2065
  * A signature hash for backend validation.
2074
2066
  */
2075
2067
  signature?: string;
2076
2068
  }
2069
+ namespace FileSearchResult {
2070
+ /**
2071
+ * The result of the File Search.
2072
+ */
2073
+ interface Result {
2074
+ /**
2075
+ * User provided metadata about the FileSearchResult.
2076
+ */
2077
+ custom_metadata?: Array<unknown>;
2078
+ }
2079
+ }
2077
2080
  interface GoogleMapsResult {
2078
2081
  /**
2079
- * ID to match the ID from the function call block.
2082
+ * Required. ID to match the ID from the function call block.
2080
2083
  */
2081
2084
  call_id: string;
2085
+ type: 'google_maps_result';
2082
2086
  /**
2083
2087
  * The results of the Google Maps.
2084
2088
  */
2085
- result: Array<InteractionsAPI.GoogleMapsResult>;
2086
- type: 'google_maps_result';
2089
+ result?: Array<InteractionsAPI.GoogleMapsResult>;
2087
2090
  /**
2088
2091
  * A signature hash for backend validation.
2089
2092
  */
2090
2093
  signature?: string;
2091
2094
  }
2095
+ interface TextAnnotation {
2096
+ type: 'text_annotation';
2097
+ /**
2098
+ * Citation information for model-generated content.
2099
+ */
2100
+ annotations?: Array<InteractionsAPI.Annotation>;
2101
+ }
2092
2102
  }
2093
2103
 
2094
2104
  /** The embedding generated from an input content. */
@@ -2139,7 +2149,8 @@ declare interface ContentStart {
2139
2149
  event_type: 'content.start';
2140
2150
  index: number;
2141
2151
  /**
2142
- * The event_id token to be used to resume the interaction stream, from this event.
2152
+ * The event_id token to be used to resume the interaction stream, from
2153
+ * this event.
2143
2154
  */
2144
2155
  event_id?: string;
2145
2156
  }
@@ -2148,7 +2159,8 @@ declare interface ContentStop {
2148
2159
  event_type: 'content.stop';
2149
2160
  index: number;
2150
2161
  /**
2151
- * The event_id token to be used to resume the interaction stream, from this event.
2162
+ * The event_id token to be used to resume the interaction stream, from
2163
+ * this event.
2152
2164
  */
2153
2165
  event_id?: string;
2154
2166
  }
@@ -2596,7 +2608,7 @@ export declare interface CreateTuningJobConfig {
2596
2608
  preTunedModelCheckpointId?: string;
2597
2609
  /** Adapter size for tuning. */
2598
2610
  adapterSize?: AdapterSize;
2599
- /** Tuning mode for SFT tuning. */
2611
+ /** Tuning mode for tuning. */
2600
2612
  tuningMode?: TuningMode;
2601
2613
  /** Custom base model for tuning. This is only supported for OSS models in Vertex. */
2602
2614
  customBaseModel?: string;
@@ -2908,7 +2920,7 @@ export declare interface DistillationDataStats {
2908
2920
  trainingDatasetStats?: DatasetStats;
2909
2921
  }
2910
2922
 
2911
- /** Hyperparameters for Distillation. This data type is not supported in Gemini API. */
2923
+ /** Hyperparameters for distillation. */
2912
2924
  export declare interface DistillationHyperParameters {
2913
2925
  /** Optional. Adapter size for distillation. */
2914
2926
  adapterSize?: AdapterSize;
@@ -2916,6 +2928,21 @@ export declare interface DistillationHyperParameters {
2916
2928
  epochCount?: string;
2917
2929
  /** Optional. Multiplier for adjusting the default learning rate. */
2918
2930
  learningRateMultiplier?: number;
2931
+ /** The batch size hyperparameter for tuning.
2932
+ This is only supported for OSS models in Vertex. */
2933
+ batchSize?: number;
2934
+ /** The learning rate for tuning. OSS models only. */
2935
+ learningRate?: number;
2936
+ }
2937
+
2938
+ /** Spec for creating a distilled dataset in Vertex Dataset. This data type is not supported in Gemini API. */
2939
+ export declare interface DistillationSamplingSpec {
2940
+ /** Optional. The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). */
2941
+ baseTeacherModel?: string;
2942
+ /** Optional. The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. */
2943
+ tunedTeacherModelSource?: string;
2944
+ /** Optional. Cloud Storage path to file containing validation dataset for distillation. The dataset must be formatted as a JSONL file. */
2945
+ validationDatasetUri?: string;
2919
2946
  }
2920
2947
 
2921
2948
  /** Distillation tuning spec for tuning. */
@@ -2936,20 +2963,21 @@ export declare interface DistillationSpec {
2936
2963
  tunedTeacherModelSource?: string;
2937
2964
  /** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
2938
2965
  validationDatasetUri?: string;
2966
+ /** Tuning mode for tuning. */
2967
+ tuningMode?: TuningMode;
2939
2968
  }
2940
2969
 
2941
2970
  /** A Document is a collection of Chunks. */
2942
2971
  declare interface Document_2 {
2943
- /** The resource name of the Document.
2944
- Example: fileSearchStores/file-search-store-foo/documents/documents-bar */
2972
+ /** Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/&#42;/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c` */
2945
2973
  name?: string;
2946
- /** The human-readable display name for the Document. */
2974
+ /** Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation". */
2947
2975
  displayName?: string;
2948
- /** The current state of the Document. */
2976
+ /** Output only. Current state of the `Document`. */
2949
2977
  state?: DocumentState;
2950
- /** The size of the Document in bytes. */
2978
+ /** Output only. The size of raw bytes ingested into the Document. */
2951
2979
  sizeBytes?: string;
2952
- /** The MIME type of the Document. */
2980
+ /** Output only. The mime type of the Document. */
2953
2981
  mimeType?: string;
2954
2982
  /** Output only. The Timestamp of when the `Document` was created. */
2955
2983
  createTime?: string;
@@ -3013,11 +3041,23 @@ declare class Documents extends BaseModule {
3013
3041
  private listInternal;
3014
3042
  }
3015
3043
 
3016
- /** State for the lifecycle of a Document. */
3044
+ /** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
3017
3045
  export declare enum DocumentState {
3046
+ /**
3047
+ * The default value. This value is used if the state is omitted.
3048
+ */
3018
3049
  STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
3050
+ /**
3051
+ * Some `Chunks` of the `Document` are being processed (embedding and vector storage).
3052
+ */
3019
3053
  STATE_PENDING = "STATE_PENDING",
3054
+ /**
3055
+ * All `Chunks` of the `Document` is processed and available for querying.
3056
+ */
3020
3057
  STATE_ACTIVE = "STATE_ACTIVE",
3058
+ /**
3059
+ * Some `Chunks` of the `Document` failed processing.
3060
+ */
3021
3061
  STATE_FAILED = "STATE_FAILED"
3022
3062
  }
3023
3063
 
@@ -3359,7 +3399,8 @@ declare interface ErrorEvent_2 {
3359
3399
  */
3360
3400
  error?: ErrorEvent_2.Error;
3361
3401
  /**
3362
- * The event_id token to be used to resume the interaction stream, from this event.
3402
+ * The event_id token to be used to resume the interaction stream, from
3403
+ * this event.
3363
3404
  */
3364
3405
  event_id?: string;
3365
3406
  }
@@ -3416,7 +3457,7 @@ export declare interface EvaluateDatasetRun {
3416
3457
  evaluateDatasetResponse?: EvaluateDatasetResponse;
3417
3458
  /** Output only. The resource name of the evaluation run. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run_id}`. */
3418
3459
  evaluationRun?: string;
3419
- /** Output only. The operation ID of the evaluation run. Format: `projects/{project}/locations/{location}/operations/{operation_id}`. */
3460
+ /** Output only. Deprecated: The updated architecture uses evaluation_run instead. */
3420
3461
  operationName?: string;
3421
3462
  }
3422
3463
 
@@ -3573,6 +3614,8 @@ declare interface FileCitation {
3573
3614
  source?: string;
3574
3615
  /**
3575
3616
  * Start of segment of the response that is attributed to this source.
3617
+ *
3618
+ * Index indicates the start of the segment, measured in bytes.
3576
3619
  */
3577
3620
  start_index?: number;
3578
3621
  }
@@ -3707,14 +3750,13 @@ export declare class Files extends BaseModule {
3707
3750
  private registerFilesInternal;
3708
3751
  }
3709
3752
 
3710
- /** Tool to retrieve knowledge from the File Search Stores. */
3753
+ /** The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. This data type is not supported in Vertex AI. */
3711
3754
  export declare interface FileSearch {
3712
- /** The names of the file_search_stores to retrieve from.
3713
- Example: `fileSearchStores/my-file-search-store-123` */
3755
+ /** Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` */
3714
3756
  fileSearchStoreNames?: string[];
3715
- /** The number of file search retrieval chunks to retrieve. */
3757
+ /** Optional. The number of semantic retrieval chunks to retrieve. */
3716
3758
  topK?: number;
3717
- /** Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax of the filter expression. */
3759
+ /** Optional. Metadata filter to apply to the semantic retrieval documents and chunks. */
3718
3760
  metadataFilter?: string;
3719
3761
  }
3720
3762
 
@@ -3723,7 +3765,7 @@ export declare interface FileSearch {
3723
3765
  */
3724
3766
  declare interface FileSearchCallContent {
3725
3767
  /**
3726
- * A unique ID for this specific tool call.
3768
+ * Required. A unique ID for this specific tool call.
3727
3769
  */
3728
3770
  id: string;
3729
3771
  type: 'file_search_call';
@@ -3738,20 +3780,32 @@ declare interface FileSearchCallContent {
3738
3780
  */
3739
3781
  declare interface FileSearchResultContent {
3740
3782
  /**
3741
- * ID to match the ID from the file search call block.
3783
+ * Required. ID to match the ID from the function call block.
3742
3784
  */
3743
3785
  call_id: string;
3744
- type: 'file_search_result';
3745
3786
  /**
3746
- * The results of the File Search.
3787
+ * Required. The results of the File Search.
3747
3788
  */
3748
- result?: Array<unknown>;
3789
+ result: Array<FileSearchResultContent.Result>;
3790
+ type: 'file_search_result';
3749
3791
  /**
3750
3792
  * A signature hash for backend validation.
3751
3793
  */
3752
3794
  signature?: string;
3753
3795
  }
3754
3796
 
3797
+ declare namespace FileSearchResultContent {
3798
+ /**
3799
+ * The result of the File Search.
3800
+ */
3801
+ interface Result {
3802
+ /**
3803
+ * User provided metadata about the FileSearchResult.
3804
+ */
3805
+ custom_metadata?: Array<unknown>;
3806
+ }
3807
+ }
3808
+
3755
3809
  /** A collection of Documents. */
3756
3810
  export declare interface FileSearchStore {
3757
3811
  /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */
@@ -4037,17 +4091,17 @@ export declare interface FunctionCall {
4037
4091
  */
4038
4092
  declare interface FunctionCallContent {
4039
4093
  /**
4040
- * A unique ID for this specific tool call.
4094
+ * Required. A unique ID for this specific tool call.
4041
4095
  */
4042
4096
  id: string;
4043
4097
  /**
4044
- * The arguments to pass to the function.
4098
+ * Required. The arguments to pass to the function.
4045
4099
  */
4046
4100
  arguments: {
4047
4101
  [key: string]: unknown;
4048
4102
  };
4049
4103
  /**
4050
- * The name of the tool to call.
4104
+ * Required. The name of the tool to call.
4051
4105
  */
4052
4106
  name: string;
4053
4107
  type: 'function_call';
@@ -4193,7 +4247,7 @@ export declare enum FunctionResponseScheduling {
4193
4247
  */
4194
4248
  declare interface FunctionResultContent {
4195
4249
  /**
4196
- * ID to match the ID from the function call block.
4250
+ * Required. ID to match the ID from the function call block.
4197
4251
  */
4198
4252
  call_id: string;
4199
4253
  /**
@@ -4416,6 +4470,8 @@ export declare interface GenerateContentConfig {
4416
4470
  service. If supplied, safety_settings must not be supplied.
4417
4471
  */
4418
4472
  modelArmorConfig?: ModelArmorConfig;
4473
+ /** The service tier to use for the request. For example, ServiceTier.FLEX. */
4474
+ serviceTier?: ServiceTier;
4419
4475
  }
4420
4476
 
4421
4477
  /** Config for models.generate_content parameters. */
@@ -4452,6 +4508,8 @@ export declare class GenerateContentResponse {
4452
4508
  responseId?: string;
4453
4509
  /** Usage metadata about the response(s). */
4454
4510
  usageMetadata?: GenerateContentResponseUsageMetadata;
4511
+ /** Output only. The current model status of this model. This field is not supported in Vertex AI. */
4512
+ modelStatus?: ModelStatus;
4455
4513
  /**
4456
4514
  * Returns the concatenation of all text parts from the first candidate in the response.
4457
4515
  *
@@ -4781,6 +4839,8 @@ export declare interface GenerateVideosConfig {
4781
4839
  mask?: VideoGenerationMask;
4782
4840
  /** Compression quality of the generated videos. */
4783
4841
  compressionQuality?: VideoCompressionQuality;
4842
+ /** User specified labels to track billing usage. */
4843
+ labels?: Record<string, string>;
4784
4844
  }
4785
4845
 
4786
4846
  /** A video generation operation. */
@@ -4797,7 +4857,6 @@ export declare class GenerateVideosOperation implements Operation<GenerateVideos
4797
4857
  response?: GenerateVideosResponse;
4798
4858
  /**
4799
4859
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
4800
- * @internal
4801
4860
  */
4802
4861
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<GenerateVideosResponse>;
4803
4862
  /** The full HTTP response. */
@@ -4936,7 +4995,7 @@ declare interface GenerationConfig_2 {
4936
4995
  */
4937
4996
  thinking_summaries?: 'auto' | 'none';
4938
4997
  /**
4939
- * The tool choice for the interaction.
4998
+ * The tool choice configuration.
4940
4999
  */
4941
5000
  tool_choice?: ToolChoiceType | ToolChoiceConfig;
4942
5001
  /**
@@ -5281,7 +5340,7 @@ declare interface GoogleMapsCallArguments {
5281
5340
  */
5282
5341
  declare interface GoogleMapsCallContent {
5283
5342
  /**
5284
- * A unique ID for this specific tool call.
5343
+ * Required. A unique ID for this specific tool call.
5285
5344
  */
5286
5345
  id: string;
5287
5346
  type: 'google_maps_call';
@@ -5356,11 +5415,11 @@ declare namespace GoogleMapsResult {
5356
5415
  */
5357
5416
  declare interface GoogleMapsResultContent {
5358
5417
  /**
5359
- * ID to match the ID from the google maps call block.
5418
+ * Required. ID to match the ID from the function call block.
5360
5419
  */
5361
5420
  call_id: string;
5362
5421
  /**
5363
- * The results of the Google Maps.
5422
+ * Required. The results of the Google Maps.
5364
5423
  */
5365
5424
  result: Array<GoogleMapsResult>;
5366
5425
  type: 'google_maps_result';
@@ -5380,9 +5439,9 @@ export declare interface GoogleRpcStatus {
5380
5439
  message?: string;
5381
5440
  }
5382
5441
 
5383
- /** Tool to support web search. */
5442
+ /** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
5384
5443
  export declare interface GoogleSearch {
5385
- /** Different types of search that can be enabled on the GoogleSearch tool. */
5444
+ /** Optional. The set of search types to enable. If not set, web search is enabled by default. */
5386
5445
  searchTypes?: SearchTypes;
5387
5446
  /** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */
5388
5447
  blockingConfidence?: PhishBlockThreshold;
@@ -5407,11 +5466,11 @@ declare interface GoogleSearchCallArguments {
5407
5466
  */
5408
5467
  declare interface GoogleSearchCallContent {
5409
5468
  /**
5410
- * A unique ID for this specific tool call.
5469
+ * Required. A unique ID for this specific tool call.
5411
5470
  */
5412
5471
  id: string;
5413
5472
  /**
5414
- * The arguments to pass to Google Search.
5473
+ * Required. The arguments to pass to Google Search.
5415
5474
  */
5416
5475
  arguments: GoogleSearchCallArguments;
5417
5476
  type: 'google_search_call';
@@ -5440,11 +5499,11 @@ declare interface GoogleSearchResult {
5440
5499
  */
5441
5500
  declare interface GoogleSearchResultContent {
5442
5501
  /**
5443
- * ID to match the ID from the google search call block.
5502
+ * Required. ID to match the ID from the function call block.
5444
5503
  */
5445
5504
  call_id: string;
5446
5505
  /**
5447
- * The results of the Google Search.
5506
+ * Required. The results of the Google Search.
5448
5507
  */
5449
5508
  result: Array<GoogleSearchResult>;
5450
5509
  type: 'google_search_result';
@@ -5480,9 +5539,7 @@ export declare interface GoogleTypeDate {
5480
5539
  is enabled, the model returns a `GroundingChunk` that contains a reference to
5481
5540
  the source of the information. */
5482
5541
  export declare interface GroundingChunk {
5483
- /** A grounding chunk from an image search result. See the `Image`
5484
- message for details.
5485
- */
5542
+ /** A grounding chunk from an image search result. See the `Image` message for details. */
5486
5543
  image?: GroundingChunkImage;
5487
5544
  /** A `Maps` chunk is a piece of evidence that comes from Google Maps.
5488
5545
 
@@ -5490,17 +5547,25 @@ export declare interface GroundingChunk {
5490
5547
  reviews. This is used to provide the user with rich, location-based
5491
5548
  information. */
5492
5549
  maps?: GroundingChunkMaps;
5493
- /** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details. This field is not supported in Gemini API. */
5550
+ /** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details */
5494
5551
  retrievedContext?: GroundingChunkRetrievedContext;
5495
5552
  /** A grounding chunk from a web page, typically from Google Search. See the `Web` message for details. */
5496
5553
  web?: GroundingChunkWeb;
5497
5554
  }
5498
5555
 
5499
- /** A piece of evidence that comes from an image search result.
5556
+ /** User provided metadata about the GroundingFact. This data type is not supported in Vertex AI. */
5557
+ export declare interface GroundingChunkCustomMetadata {
5558
+ /** The key of the metadata. */
5559
+ key?: string;
5560
+ /** Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. */
5561
+ numericValue?: number;
5562
+ /** Optional. A list of string values for the metadata. */
5563
+ stringListValue?: GroundingChunkStringList;
5564
+ /** Optional. The string value of the metadata. */
5565
+ stringValue?: string;
5566
+ }
5500
5567
 
5501
- It contains the URI of the image search result and the URI of the image.
5502
- This is used to provide the user with a link to the source of the
5503
- information. */
5568
+ /** An `Image` chunk is a piece of evidence that comes from an image search result. It contains the URI of the image search result and the URI of the image. This is used to provide the user with a link to the source of the information. */
5504
5569
  export declare interface GroundingChunkImage {
5505
5570
  /** The URI of the image search result page. */
5506
5571
  sourceUri?: string;
@@ -5532,6 +5597,8 @@ export declare interface GroundingChunkMaps {
5532
5597
  title?: string;
5533
5598
  /** The URI of the place. */
5534
5599
  uri?: string;
5600
+ /** Output only. Route information. */
5601
+ route?: GroundingChunkMapsRoute;
5535
5602
  }
5536
5603
 
5537
5604
  /** The sources that were used to generate the place answer.
@@ -5575,11 +5642,21 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
5575
5642
  title?: string;
5576
5643
  }
5577
5644
 
5578
- /** Context retrieved from a data source to ground the model's response. This is used when a retrieval tool fetches information from a user-provided corpus or a public dataset. This data type is not supported in Gemini API. */
5645
+ /** Route information from Google Maps. This data type is not supported in Gemini API. */
5646
+ export declare interface GroundingChunkMapsRoute {
5647
+ /** The total distance of the route, in meters. */
5648
+ distanceMeters?: number;
5649
+ /** The total duration of the route. */
5650
+ duration?: string;
5651
+ /** An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm */
5652
+ encodedPolyline?: string;
5653
+ }
5654
+
5655
+ /** Context retrieved from a data source to ground the model's response. This is used when a retrieval tool fetches information from a user-provided corpus or a public dataset. */
5579
5656
  export declare interface GroundingChunkRetrievedContext {
5580
- /** Output only. The full resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. */
5657
+ /** Output only. The full resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. This field is not supported in Gemini API. */
5581
5658
  documentName?: string;
5582
- /** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. */
5659
+ /** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. This field is not supported in Gemini API. */
5583
5660
  ragChunk?: RagChunk;
5584
5661
  /** The content of the retrieved data source. */
5585
5662
  text?: string;
@@ -5587,6 +5664,16 @@ export declare interface GroundingChunkRetrievedContext {
5587
5664
  title?: string;
5588
5665
  /** The URI of the retrieved data source. */
5589
5666
  uri?: string;
5667
+ /** Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI. */
5668
+ customMetadata?: GroundingChunkCustomMetadata[];
5669
+ /** Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`. This field is not supported in Vertex AI. */
5670
+ fileSearchStore?: string;
5671
+ }
5672
+
5673
+ /** A list of string values. This data type is not supported in Vertex AI. */
5674
+ export declare interface GroundingChunkStringList {
5675
+ /** The string values of the list. */
5676
+ values?: string[];
5590
5677
  }
5591
5678
 
5592
5679
  /** A `Web` chunk is a piece of evidence that comes from a web page. It contains the URI of the web page, the title of the page, and the domain of the page. This is used to provide the user with a link to the source of the information. */
@@ -5601,10 +5688,7 @@ export declare interface GroundingChunkWeb {
5601
5688
 
5602
5689
  /** Information for various kinds of grounding. */
5603
5690
  export declare interface GroundingMetadata {
5604
- /** Optional. The image search queries that were used to generate the
5605
- content. This field is populated only when the grounding source is Google
5606
- Search with the Image Search search_type enabled.
5607
- */
5691
+ /** Optional. The image search queries that were used to generate the content. This field is populated only when the grounding source is Google Search with the Image Search search_type enabled. */
5608
5692
  imageSearchQueries?: string[];
5609
5693
  /** A list of supporting references retrieved from the grounding
5610
5694
  source. This field is populated when the grounding source is Google
@@ -5620,7 +5704,7 @@ export declare interface GroundingMetadata {
5620
5704
  searchEntryPoint?: SearchEntryPoint;
5621
5705
  /** Web search queries for the following-up web search. */
5622
5706
  webSearchQueries?: string[];
5623
- /** Optional. Output only. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps. This field is not supported in Gemini API. */
5707
+ /** Optional. Output only. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps. */
5624
5708
  googleMapsWidgetContextToken?: string;
5625
5709
  /** Optional. The queries that were executed by the retrieval tools. This field is populated only when the grounding source is a retrieval tool, such as Vertex AI Search. This field is not supported in Gemini API. */
5626
5710
  retrievalQueries?: string[];
@@ -5650,6 +5734,8 @@ export declare interface GroundingSupport {
5650
5734
  groundingChunkIndices?: number[];
5651
5735
  /** Segment of the content this support belongs to. */
5652
5736
  segment?: Segment;
5737
+ /** Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message. */
5738
+ renderedParts?: number[];
5653
5739
  }
5654
5740
 
5655
5741
  /** The method for blocking content. If not specified, the default behavior is to use the probability score. This enum is not supported in Gemini API. */
@@ -5943,11 +6029,7 @@ export declare interface ImageConfig {
5943
6029
  /** Controls the generation of people. Supported values are:
5944
6030
  ALLOW_ALL, ALLOW_ADULT, ALLOW_NONE. */
5945
6031
  personGeneration?: string;
5946
- /** Controls whether prominent people (celebrities)
5947
- generation is allowed. If used with personGeneration, personGeneration
5948
- enum would take precedence. For instance, if ALLOW_NONE is set, all person
5949
- generation would be blocked. If this field is unspecified, the default
5950
- behavior is to allow prominent people. */
6032
+ /** Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This field is not supported in Gemini API. */
5951
6033
  prominentPeople?: ProminentPeople;
5952
6034
  /** MIME type of the generated image. This field is not
5953
6035
  supported in Gemini API. */
@@ -5955,7 +6037,7 @@ export declare interface ImageConfig {
5955
6037
  /** Compression quality of the generated image (for
5956
6038
  ``image/jpeg`` only). This field is not supported in Gemini API. */
5957
6039
  outputCompressionQuality?: number;
5958
- /** Optional. The image output format for generated images. */
6040
+ /** Optional. The image output format for generated images. This field is not supported in Gemini API. */
5959
6041
  imageOutputOptions?: ImageConfigImageOutputOptions;
5960
6042
  }
5961
6043
 
@@ -5987,7 +6069,7 @@ declare interface ImageContent {
5987
6069
  /**
5988
6070
  * The mime type of the image.
5989
6071
  */
5990
- mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
6072
+ mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
5991
6073
  /**
5992
6074
  * The resolution of the media.
5993
6075
  */
@@ -6069,7 +6151,6 @@ export declare class ImportFileOperation implements Operation<ImportFileResponse
6069
6151
  response?: ImportFileResponse;
6070
6152
  /**
6071
6153
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
6072
- * @internal
6073
6154
  */
6074
6155
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<ImportFileResponse>;
6075
6156
  /** The full HTTP response. */
@@ -6098,12 +6179,12 @@ export declare class ImportFileResponse {
6098
6179
 
6099
6180
  /** Config for `inlined_embedding_responses` parameter. */
6100
6181
  export declare class InlinedEmbedContentResponse {
6101
- /** The response to the request.
6102
- */
6182
+ /** Output only. The response to the request. */
6103
6183
  response?: SingleEmbedContentResponse;
6104
- /** The error encountered while processing the request.
6105
- */
6184
+ /** Output only. The error encountered while processing the request. */
6106
6185
  error?: JobError;
6186
+ /** Output only. The metadata associated with the request. */
6187
+ metadata?: Record<string, unknown>;
6107
6188
  }
6108
6189
 
6109
6190
  /** Config for inlined request. */
@@ -6138,20 +6219,20 @@ export declare class InlinedResponse {
6138
6219
  */
6139
6220
  declare interface Interaction {
6140
6221
  /**
6141
- * Output only. A unique identifier for the interaction completion.
6222
+ * Required. Output only. A unique identifier for the interaction completion.
6142
6223
  */
6143
6224
  id: string;
6144
6225
  /**
6145
- * Output only. The time at which the response was created in ISO 8601 format
6226
+ * Required. Output only. The time at which the response was created in ISO 8601 format
6146
6227
  * (YYYY-MM-DDThh:mm:ssZ).
6147
6228
  */
6148
6229
  created: string;
6149
6230
  /**
6150
- * Output only. The status of the interaction.
6231
+ * Required. Output only. The status of the interaction.
6151
6232
  */
6152
6233
  status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
6153
6234
  /**
6154
- * Output only. The time at which the response was last updated in ISO 8601 format
6235
+ * Required. Output only. The time at which the response was last updated in ISO 8601 format
6155
6236
  * (YYYY-MM-DDThh:mm:ssZ).
6156
6237
  */
6157
6238
  updated: string;
@@ -6166,7 +6247,7 @@ declare interface Interaction {
6166
6247
  /**
6167
6248
  * The input for the interaction.
6168
6249
  */
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;
6250
+ input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | CodeExecutionCallContent | URLContextCallContent | MCPServerToolCallContent | GoogleSearchCallContent | FileSearchCallContent | GoogleMapsCallContent | FunctionResultContent | CodeExecutionResultContent | URLContextResultContent | GoogleSearchResultContent | MCPServerToolResultContent | FileSearchResultContent | GoogleMapsResultContent;
6170
6251
  /**
6171
6252
  * The name of the `Model` used for generating the interaction.
6172
6253
  */
@@ -6196,6 +6277,10 @@ declare interface Interaction {
6196
6277
  * Output only. The role of the interaction.
6197
6278
  */
6198
6279
  role?: string;
6280
+ /**
6281
+ * The service tier for the interaction.
6282
+ */
6283
+ service_tier?: 'flex' | 'standard' | 'priority';
6199
6284
  /**
6200
6285
  * System instruction for the interaction.
6201
6286
  */
@@ -6220,12 +6305,13 @@ declare interface InteractionCancelParams {
6220
6305
  declare interface InteractionCompleteEvent {
6221
6306
  event_type: 'interaction.complete';
6222
6307
  /**
6223
- * The completed interaction with empty outputs to reduce the payload size.
6308
+ * Required. The completed interaction with empty outputs to reduce the payload size.
6224
6309
  * Use the preceding ContentDelta events for the actual output.
6225
6310
  */
6226
6311
  interaction: Interaction;
6227
6312
  /**
6228
- * The event_id token to be used to resume the interaction stream, from this event.
6313
+ * The event_id token to be used to resume the interaction stream, from
6314
+ * this event.
6229
6315
  */
6230
6316
  event_id?: string;
6231
6317
  }
@@ -6373,7 +6459,8 @@ declare interface InteractionStartEvent {
6373
6459
  */
6374
6460
  interaction: Interaction;
6375
6461
  /**
6376
- * The event_id token to be used to resume the interaction stream, from this event.
6462
+ * The event_id token to be used to resume the interaction stream, from
6463
+ * this event.
6377
6464
  */
6378
6465
  event_id?: string;
6379
6466
  }
@@ -6383,7 +6470,8 @@ declare interface InteractionStatusUpdate {
6383
6470
  interaction_id: string;
6384
6471
  status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
6385
6472
  /**
6386
- * The event_id token to be used to resume the interaction stream, from this event.
6473
+ * The event_id token to be used to resume the interaction stream, from
6474
+ * this event.
6387
6475
  */
6388
6476
  event_id?: string;
6389
6477
  }
@@ -6625,6 +6713,7 @@ export declare interface ListFileSearchStoresParameters {
6625
6713
  export declare class ListFileSearchStoresResponse {
6626
6714
  /** Used to retain the full HTTP response. */
6627
6715
  sdkHttpResponse?: HttpResponse;
6716
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. */
6628
6717
  nextPageToken?: string;
6629
6718
  /** The returned file search stores. */
6630
6719
  fileSearchStores?: FileSearchStore[];
@@ -7493,6 +7582,8 @@ export declare interface LogprobsResult {
7493
7582
  chosenCandidates?: LogprobsResultCandidate[];
7494
7583
  /** A list of the top candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. */
7495
7584
  topCandidates?: LogprobsResultTopCandidates[];
7585
+ /** Sum of log probabilities for all tokens. This field is not supported in Vertex AI. */
7586
+ logProbabilitySum?: number;
7496
7587
  }
7497
7588
 
7498
7589
  /** A single token and its associated log probability. */
@@ -7568,21 +7659,21 @@ export declare interface McpServer {
7568
7659
  */
7569
7660
  declare interface MCPServerToolCallContent {
7570
7661
  /**
7571
- * A unique ID for this specific tool call.
7662
+ * Required. A unique ID for this specific tool call.
7572
7663
  */
7573
7664
  id: string;
7574
7665
  /**
7575
- * The JSON object of arguments for the function.
7666
+ * Required. The JSON object of arguments for the function.
7576
7667
  */
7577
7668
  arguments: {
7578
7669
  [key: string]: unknown;
7579
7670
  };
7580
7671
  /**
7581
- * The name of the tool which was called.
7672
+ * Required. The name of the tool which was called.
7582
7673
  */
7583
7674
  name: string;
7584
7675
  /**
7585
- * The name of the used MCP server.
7676
+ * Required. The name of the used MCP server.
7586
7677
  */
7587
7678
  server_name: string;
7588
7679
  type: 'mcp_server_tool_call';
@@ -7597,7 +7688,7 @@ declare interface MCPServerToolCallContent {
7597
7688
  */
7598
7689
  declare interface MCPServerToolResultContent {
7599
7690
  /**
7600
- * ID to match the ID from the MCP server tool call block.
7691
+ * Required. ID to match the ID from the function call block.
7601
7692
  */
7602
7693
  call_id: string;
7603
7694
  /**
@@ -7773,7 +7864,7 @@ export declare interface Model {
7773
7864
  /**
7774
7865
  * The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
7775
7866
  */
7776
- declare type Model_2 = 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
7867
+ declare type Model_2 = 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'lyria-3-clip-preview' | 'lyria-3-pro-preview' | (string & {});
7777
7868
 
7778
7869
  /** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. This data type is not supported in Gemini API. */
7779
7870
  export declare interface ModelArmorConfig {
@@ -8179,6 +8270,52 @@ export declare interface ModelSelectionConfig {
8179
8270
  featureSelectionPreference?: FeatureSelectionPreference;
8180
8271
  }
8181
8272
 
8273
+ /** The stage of the underlying model. This enum is not supported in Vertex AI. */
8274
+ export declare enum ModelStage {
8275
+ /**
8276
+ * Unspecified model stage.
8277
+ */
8278
+ MODEL_STAGE_UNSPECIFIED = "MODEL_STAGE_UNSPECIFIED",
8279
+ /**
8280
+ * The underlying model is subject to lots of tunings.
8281
+ */
8282
+ UNSTABLE_EXPERIMENTAL = "UNSTABLE_EXPERIMENTAL",
8283
+ /**
8284
+ * Models in this stage are for experimental purposes only.
8285
+ */
8286
+ EXPERIMENTAL = "EXPERIMENTAL",
8287
+ /**
8288
+ * Models in this stage are more mature than experimental models.
8289
+ */
8290
+ PREVIEW = "PREVIEW",
8291
+ /**
8292
+ * Models in this stage are considered stable and ready for production use.
8293
+ */
8294
+ STABLE = "STABLE",
8295
+ /**
8296
+ * If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.
8297
+ */
8298
+ LEGACY = "LEGACY",
8299
+ /**
8300
+ * Models in this stage are deprecated. These models cannot be used.
8301
+ */
8302
+ DEPRECATED = "DEPRECATED",
8303
+ /**
8304
+ * Models in this stage are retired. These models cannot be used.
8305
+ */
8306
+ RETIRED = "RETIRED"
8307
+ }
8308
+
8309
+ /** The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. This data type is not supported in Vertex AI. */
8310
+ export declare interface ModelStatus {
8311
+ /** A message explaining the model status. */
8312
+ message?: string;
8313
+ /** The stage of the underlying model. */
8314
+ modelStage?: ModelStage;
8315
+ /** The time at which the model will be retired. */
8316
+ retirementTime?: string;
8317
+ }
8318
+
8182
8319
  /** Configuration for a multi-speaker text-to-speech request. */
8183
8320
  export declare interface MultiSpeakerVoiceConfig {
8184
8321
  /** Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. */
@@ -8264,7 +8401,6 @@ export declare interface Operation<T> {
8264
8401
  response?: T;
8265
8402
  /**
8266
8403
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
8267
- * @internal
8268
8404
  */
8269
8405
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<T>;
8270
8406
  }
@@ -8543,6 +8679,8 @@ export declare interface Part {
8543
8679
  toolCall?: ToolCall;
8544
8680
  /** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
8545
8681
  toolResponse?: ToolResponse;
8682
+ /** Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. This field is not supported in Vertex AI. */
8683
+ partMetadata?: Record<string, unknown>;
8546
8684
  }
8547
8685
 
8548
8686
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
@@ -8684,6 +8822,8 @@ declare interface PlaceCitation {
8684
8822
  review_snippets?: Array<PlaceCitation.ReviewSnippet>;
8685
8823
  /**
8686
8824
  * Start of segment of the response that is attributed to this source.
8825
+ *
8826
+ * Index indicates the start of the segment, measured in bytes.
8687
8827
  */
8688
8828
  start_index?: number;
8689
8829
  /**
@@ -8801,7 +8941,7 @@ export declare interface ProductImage {
8801
8941
  productImage?: Image_2;
8802
8942
  }
8803
8943
 
8804
- /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
8944
+ /** Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This enum is not supported in Gemini API. */
8805
8945
  export declare enum ProminentPeople {
8806
8946
  /**
8807
8947
  * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
@@ -9078,12 +9218,14 @@ export declare class ReplayResponse {
9078
9218
  sdkResponseSegments?: Record<string, unknown>[];
9079
9219
  }
9080
9220
 
9081
- /** ReplicatedVoiceConfig is used to configure replicated voice. */
9221
+ /** The configuration for the replicated voice to use. */
9082
9222
  export declare interface ReplicatedVoiceConfig {
9083
- /** The mime type of the replicated voice.
9223
+ /** The mimetype of the voice sample. The only currently supported
9224
+ value is `audio/wav`. This represents 16-bit signed little-endian wav
9225
+ data, with a 24kHz sampling rate.
9084
9226
  */
9085
9227
  mimeType?: string;
9086
- /** The sample audio of the replicated voice.
9228
+ /** The sample of the custom voice.
9087
9229
 
9088
9230
  * @remarks Encoded as base64 string. */
9089
9231
  voiceSampleAudio?: string;
@@ -9327,7 +9469,7 @@ export declare interface Schema {
9327
9469
  anyOf?: Schema[];
9328
9470
  /** Optional. Default value to use if the field is not specified. */
9329
9471
  default?: unknown;
9330
- /** Optional. Description of the schema. */
9472
+ /** Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt. */
9331
9473
  description?: string;
9332
9474
  /** Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:["101", "201", "301"]}` */
9333
9475
  enum?: string[];
@@ -9387,12 +9529,11 @@ export declare interface SearchEntryPoint {
9387
9529
  sdkBlob?: string;
9388
9530
  }
9389
9531
 
9390
- /** Tool to support computer use. */
9532
+ /** Different types of search that can be enabled on the GoogleSearch tool. */
9391
9533
  export declare interface SearchTypes {
9392
- /** Setting this field enables web search. Only text results are
9393
- returned. */
9534
+ /** Optional. Setting this field enables web search. Only text results are returned. */
9394
9535
  webSearch?: WebSearch;
9395
- /** Setting this field enables image search. Image bytes are returned. */
9536
+ /** Optional. Setting this field enables image search. Image bytes are returned. */
9396
9537
  imageSearch?: ImageSearch;
9397
9538
  }
9398
9539
 
@@ -9505,6 +9646,26 @@ export declare interface SendMessageParameters {
9505
9646
  config?: GenerateContentConfig;
9506
9647
  }
9507
9648
 
9649
+ /** Pricing and performance service tier. */
9650
+ export declare enum ServiceTier {
9651
+ /**
9652
+ * Default service tier, which is standard.
9653
+ */
9654
+ UNSPECIFIED = "unspecified",
9655
+ /**
9656
+ * Flex service tier.
9657
+ */
9658
+ FLEX = "flex",
9659
+ /**
9660
+ * Standard service tier.
9661
+ */
9662
+ STANDARD = "standard",
9663
+ /**
9664
+ * Priority service tier.
9665
+ */
9666
+ PRIORITY = "priority"
9667
+ }
9668
+
9508
9669
  /**
9509
9670
  Represents a connection to the API.
9510
9671
 
@@ -9694,8 +9855,9 @@ export declare interface SpeakerVoiceConfig {
9694
9855
  voiceConfig?: VoiceConfig;
9695
9856
  }
9696
9857
 
9858
+ /** Config for speech generation and transcription. */
9697
9859
  export declare interface SpeechConfig {
9698
- /** Configuration for the voice of the response. */
9860
+ /** The configuration in case of single-voice output. */
9699
9861
  voiceConfig?: VoiceConfig;
9700
9862
  /** Optional. The language code (ISO 639-1) for the speech synthesis. */
9701
9863
  languageCode?: string;
@@ -9964,7 +10126,7 @@ export declare interface TestTableItem {
9964
10126
  */
9965
10127
  declare interface TextContent {
9966
10128
  /**
9967
- * The text content.
10129
+ * Required. The text content.
9968
10130
  */
9969
10131
  text: string;
9970
10132
  type: 'text';
@@ -9992,6 +10154,10 @@ export declare enum ThinkingLevel {
9992
10154
  * Unspecified thinking level.
9993
10155
  */
9994
10156
  THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
10157
+ /**
10158
+ * MINIMAL thinking level.
10159
+ */
10160
+ MINIMAL = "MINIMAL",
9995
10161
  /**
9996
10162
  * Low thinking level.
9997
10163
  */
@@ -10003,11 +10169,7 @@ export declare enum ThinkingLevel {
10003
10169
  /**
10004
10170
  * High thinking level.
10005
10171
  */
10006
- HIGH = "HIGH",
10007
- /**
10008
- * MINIMAL thinking level.
10009
- */
10010
- MINIMAL = "MINIMAL"
10172
+ HIGH = "HIGH"
10011
10173
  }
10012
10174
 
10013
10175
  declare type ThinkingLevel_2 = 'minimal' | 'low' | 'medium' | 'high';
@@ -10135,9 +10297,9 @@ export declare interface Tool {
10135
10297
  computer. If enabled, it automatically populates computer-use specific
10136
10298
  Function Declarations. */
10137
10299
  computerUse?: ComputerUse;
10138
- /** Optional. Tool to retrieve knowledge from the File Search Stores. */
10300
+ /** Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora. This field is not supported in Vertex AI. */
10139
10301
  fileSearch?: FileSearch;
10140
- /** Enables the model to execute Google Search as part of generation. */
10302
+ /** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
10141
10303
  googleSearch?: GoogleSearch;
10142
10304
  /** Optional. Tool that allows grounding the model's response with
10143
10305
  geospatial context related to the user's query. */
@@ -10161,19 +10323,9 @@ export declare interface Tool {
10161
10323
  /**
10162
10324
  * A tool that can be used by the model.
10163
10325
  */
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;
10326
+ declare type Tool_2 = Function_2 | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.GoogleSearch | Tool_2.FileSearch | Tool_2.GoogleMaps;
10165
10327
 
10166
10328
  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
- }
10177
10329
  /**
10178
10330
  * A tool that can be used by the model to execute code.
10179
10331
  */
@@ -10225,6 +10377,16 @@ declare namespace Tool_2 {
10225
10377
  */
10226
10378
  url?: string;
10227
10379
  }
10380
+ /**
10381
+ * A tool that can be used by the model to search Google.
10382
+ */
10383
+ interface GoogleSearch {
10384
+ type: 'google_search';
10385
+ /**
10386
+ * The types of search grounding to enable.
10387
+ */
10388
+ search_types?: Array<'web_search' | 'image_search'>;
10389
+ }
10228
10390
  /**
10229
10391
  * A tool that can be used by the model to search files.
10230
10392
  */
@@ -10247,6 +10409,7 @@ declare namespace Tool_2 {
10247
10409
  * A tool that can be used by the model to call Google Maps.
10248
10410
  */
10249
10411
  interface GoogleMaps {
10412
+ type: 'google_maps';
10250
10413
  /**
10251
10414
  * Whether to return a widget context token in the tool call result of the
10252
10415
  * response.
@@ -10260,7 +10423,6 @@ declare namespace Tool_2 {
10260
10423
  * The longitude of the user's location.
10261
10424
  */
10262
10425
  longitude?: number;
10263
- type?: 'google_maps';
10264
10426
  }
10265
10427
  }
10266
10428
 
@@ -10388,11 +10550,9 @@ export declare enum TrafficType {
10388
10550
 
10389
10551
  /** Audio transcription in Server Conent. */
10390
10552
  export declare interface Transcription {
10391
- /** Transcription text.
10392
- */
10553
+ /** Optional. Transcription text. */
10393
10554
  text?: string;
10394
- /** The bool indicates the end of the transcription.
10395
- */
10555
+ /** Optional. The bool indicates the end of the transcription. */
10396
10556
  finished?: boolean;
10397
10557
  }
10398
10558
 
@@ -10530,6 +10690,18 @@ export declare interface TuningJob {
10530
10690
  tuningJobState?: TuningJobState;
10531
10691
  /** Tuning Spec for Veo Tuning. */
10532
10692
  veoTuningSpec?: VeoTuningSpec;
10693
+ /** Optional. Spec for creating a distillation dataset. */
10694
+ distillationSamplingSpec?: DistillationSamplingSpec;
10695
+ /** Output only. Tuning Job metadata. */
10696
+ tuningJobMetadata?: TuningJobMetadata;
10697
+ }
10698
+
10699
+ /** Tuning job metadata. This data type is not supported in Gemini API. */
10700
+ export declare interface TuningJobMetadata {
10701
+ /** Output only. The number of epochs that have been completed. */
10702
+ completedEpochCount?: string;
10703
+ /** Output only. The number of steps that have been completed. Set for Multi-Step RL. */
10704
+ completedStepCount?: string;
10533
10705
  }
10534
10706
 
10535
10707
  /** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
@@ -10690,10 +10862,7 @@ export declare interface TuningValidationDataset {
10690
10862
  }
10691
10863
 
10692
10864
  declare interface Turn {
10693
- /**
10694
- * The content of the turn.
10695
- */
10696
- content?: string | Array<Content_2>;
10865
+ content?: Array<Content_2> | string;
10697
10866
  /**
10698
10867
  * The originator of this turn. Must be user for input or model for
10699
10868
  * model output.
@@ -10734,7 +10903,11 @@ export declare enum TurnCoverage {
10734
10903
  /**
10735
10904
  * The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
10736
10905
  */
10737
- TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
10906
+ TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT",
10907
+ /**
10908
+ * Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
10909
+ */
10910
+ TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
10738
10911
  }
10739
10912
 
10740
10913
  /** Data type of the schema field. */
@@ -10790,15 +10963,17 @@ declare namespace types {
10790
10963
  Outcome,
10791
10964
  FunctionResponseScheduling,
10792
10965
  Type,
10793
- PhishBlockThreshold,
10966
+ Environment,
10794
10967
  AuthType,
10795
10968
  HttpElementLocation,
10796
10969
  ApiSpec,
10970
+ PhishBlockThreshold,
10797
10971
  Behavior,
10798
10972
  DynamicRetrievalConfigMode,
10799
10973
  FunctionCallingConfigMode,
10800
10974
  ThinkingLevel,
10801
10975
  PersonGeneration,
10976
+ ProminentPeople,
10802
10977
  HarmCategory,
10803
10978
  HarmBlockMethod,
10804
10979
  HarmBlockThreshold,
@@ -10809,6 +10984,7 @@ declare namespace types {
10809
10984
  BlockedReason,
10810
10985
  TrafficType,
10811
10986
  Modality,
10987
+ ModelStage,
10812
10988
  MediaResolution,
10813
10989
  TuningMode,
10814
10990
  AdapterSize,
@@ -10817,12 +10993,12 @@ declare namespace types {
10817
10993
  AggregationMetric,
10818
10994
  PairwiseChoice,
10819
10995
  TuningTask,
10996
+ DocumentState,
10820
10997
  PartMediaResolutionLevel,
10821
10998
  ToolType,
10822
10999
  ResourceScope,
11000
+ ServiceTier,
10823
11001
  FeatureSelectionPreference,
10824
- Environment,
10825
- ProminentPeople,
10826
11002
  EmbeddingApiType,
10827
11003
  SafetyFilterLevel,
10828
11004
  ImagePromptLanguage,
@@ -10835,7 +11011,6 @@ declare namespace types {
10835
11011
  VideoGenerationMaskMode,
10836
11012
  VideoCompressionQuality,
10837
11013
  TuningMethod,
10838
- DocumentState,
10839
11014
  FileState,
10840
11015
  FileSource,
10841
11016
  TurnCompleteReason,
@@ -10870,12 +11045,6 @@ declare namespace types {
10870
11045
  Schema,
10871
11046
  ModelSelectionConfig,
10872
11047
  ComputerUse,
10873
- FileSearch,
10874
- WebSearch,
10875
- ImageSearch,
10876
- SearchTypes,
10877
- Interval,
10878
- GoogleSearch,
10879
11048
  ApiKeyConfig,
10880
11049
  AuthConfigGoogleServiceAccountConfig,
10881
11050
  AuthConfigHttpBasicAuthConfig,
@@ -10899,6 +11068,12 @@ declare namespace types {
10899
11068
  RagRetrievalConfig,
10900
11069
  VertexRagStore,
10901
11070
  Retrieval,
11071
+ FileSearch,
11072
+ WebSearch,
11073
+ ImageSearch,
11074
+ SearchTypes,
11075
+ Interval,
11076
+ GoogleSearch,
10902
11077
  ToolCodeExecution,
10903
11078
  EnterpriseWebSearch,
10904
11079
  FunctionDeclaration,
@@ -10935,13 +11110,16 @@ declare namespace types {
10935
11110
  GoogleTypeDate,
10936
11111
  Citation,
10937
11112
  CitationMetadata,
10938
- GroundingChunkImage,
10939
11113
  GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
10940
11114
  GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
10941
11115
  GroundingChunkMapsPlaceAnswerSources,
11116
+ GroundingChunkMapsRoute,
10942
11117
  GroundingChunkMaps,
11118
+ GroundingChunkImage,
10943
11119
  RagChunkPageSpan,
10944
11120
  RagChunk,
11121
+ GroundingChunkStringList,
11122
+ GroundingChunkCustomMetadata,
10945
11123
  GroundingChunkRetrievedContext,
10946
11124
  GroundingChunkWeb,
10947
11125
  GroundingChunk,
@@ -10961,6 +11139,7 @@ declare namespace types {
10961
11139
  GenerateContentResponsePromptFeedback,
10962
11140
  ModalityTokenCount,
10963
11141
  GenerateContentResponseUsageMetadata,
11142
+ ModelStatus,
10964
11143
  GenerateContentResponse,
10965
11144
  ReferenceImage,
10966
11145
  EditImageParameters,
@@ -11071,6 +11250,8 @@ declare namespace types {
11071
11250
  FullFineTuningSpec,
11072
11251
  VeoHyperParameters,
11073
11252
  VeoTuningSpec,
11253
+ DistillationSamplingSpec,
11254
+ TuningJobMetadata,
11074
11255
  TuningJob,
11075
11256
  ListTuningJobsConfig,
11076
11257
  ListTuningJobsParameters,
@@ -11444,7 +11625,6 @@ export declare class UploadToFileSearchStoreOperation implements Operation<Uploa
11444
11625
  response?: UploadToFileSearchStoreResponse;
11445
11626
  /**
11446
11627
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
11447
- * @internal
11448
11628
  */
11449
11629
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse>;
11450
11630
  /** The full HTTP response. */
@@ -11557,6 +11737,8 @@ declare interface URLCitation {
11557
11737
  end_index?: number;
11558
11738
  /**
11559
11739
  * Start of segment of the response that is attributed to this source.
11740
+ *
11741
+ * Index indicates the start of the segment, measured in bytes.
11560
11742
  */
11561
11743
  start_index?: number;
11562
11744
  /**
@@ -11588,11 +11770,11 @@ declare interface URLContextCallArguments {
11588
11770
  */
11589
11771
  declare interface URLContextCallContent {
11590
11772
  /**
11591
- * A unique ID for this specific tool call.
11773
+ * Required. A unique ID for this specific tool call.
11592
11774
  */
11593
11775
  id: string;
11594
11776
  /**
11595
- * The arguments to pass to the URL context.
11777
+ * Required. The arguments to pass to the URL context.
11596
11778
  */
11597
11779
  arguments: URLContextCallArguments;
11598
11780
  type: 'url_context_call';
@@ -11627,11 +11809,11 @@ declare interface URLContextResult {
11627
11809
  */
11628
11810
  declare interface URLContextResultContent {
11629
11811
  /**
11630
- * ID to match the ID from the url context call block.
11812
+ * Required. ID to match the ID from the function call block.
11631
11813
  */
11632
11814
  call_id: string;
11633
11815
  /**
11634
- * The results of the URL context.
11816
+ * Required. The results of the URL context.
11635
11817
  */
11636
11818
  result: Array<URLContextResult>;
11637
11819
  type: 'url_context_result';
@@ -12036,16 +12218,17 @@ export declare enum VoiceActivityType {
12036
12218
  ACTIVITY_END = "ACTIVITY_END"
12037
12219
  }
12038
12220
 
12221
+ /** The configuration for the voice to use. */
12039
12222
  export declare interface VoiceConfig {
12040
- /** If true, the model will use a replicated voice for the response. */
12223
+ /** The configuration for a replicated voice, which is a clone of a
12224
+ user's voice that can be used for speech synthesis. If this is unset, a
12225
+ default voice is used. */
12041
12226
  replicatedVoiceConfig?: ReplicatedVoiceConfig;
12042
12227
  /** The configuration for a prebuilt voice. */
12043
12228
  prebuiltVoiceConfig?: PrebuiltVoiceConfig;
12044
12229
  }
12045
12230
 
12046
- /** Standard web search for grounding and related configurations.
12047
-
12048
- Only text results are returned. */
12231
+ /** Standard web search for grounding and related configurations. Only text results are returned. */
12049
12232
  export declare interface WebSearch {
12050
12233
  }
12051
12234