@google/genai 1.46.0 → 1.47.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.
@@ -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;
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
  }
@@ -1834,7 +1846,7 @@ declare namespace ContentDelta {
1834
1846
  interface Image {
1835
1847
  type: 'image';
1836
1848
  data?: string;
1837
- mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
1849
+ mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
1838
1850
  /**
1839
1851
  * The resolution of the media.
1840
1852
  */
@@ -1844,7 +1856,7 @@ declare namespace ContentDelta {
1844
1856
  interface Audio {
1845
1857
  type: 'audio';
1846
1858
  data?: string;
1847
- mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac';
1859
+ mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a';
1848
1860
  uri?: string;
1849
1861
  }
1850
1862
  interface Document {
@@ -1879,7 +1891,7 @@ declare namespace ContentDelta {
1879
1891
  }
1880
1892
  interface FunctionCall {
1881
1893
  /**
1882
- * A unique ID for this specific tool call.
1894
+ * Required. A unique ID for this specific tool call.
1883
1895
  */
1884
1896
  id: string;
1885
1897
  arguments: {
@@ -1892,198 +1904,193 @@ declare namespace ContentDelta {
1892
1904
  */
1893
1905
  signature?: string;
1894
1906
  }
1895
- interface FunctionResult {
1907
+ interface CodeExecutionCall {
1896
1908
  /**
1897
- * ID to match the ID from the function call block.
1909
+ * Required. A unique ID for this specific tool call.
1898
1910
  */
1899
- call_id: string;
1911
+ id: string;
1900
1912
  /**
1901
- * Tool call result delta.
1913
+ * The arguments to pass to the code execution.
1902
1914
  */
1903
- result: FunctionResult.Items | unknown | string;
1904
- type: 'function_result';
1905
- is_error?: boolean;
1906
- name?: string;
1915
+ arguments: InteractionsAPI.CodeExecutionCallArguments;
1916
+ type: 'code_execution_call';
1907
1917
  /**
1908
1918
  * A signature hash for backend validation.
1909
1919
  */
1910
1920
  signature?: string;
1911
1921
  }
1912
- namespace FunctionResult {
1913
- interface Items {
1914
- items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
1915
- }
1916
- }
1917
- interface CodeExecutionCall {
1922
+ interface URLContextCall {
1918
1923
  /**
1919
- * A unique ID for this specific tool call.
1924
+ * Required. A unique ID for this specific tool call.
1920
1925
  */
1921
1926
  id: string;
1922
1927
  /**
1923
- * The arguments to pass to the code execution.
1928
+ * The arguments to pass to the URL context.
1924
1929
  */
1925
- arguments: InteractionsAPI.CodeExecutionCallArguments;
1926
- type: 'code_execution_call';
1930
+ arguments: InteractionsAPI.URLContextCallArguments;
1931
+ type: 'url_context_call';
1927
1932
  /**
1928
1933
  * A signature hash for backend validation.
1929
1934
  */
1930
1935
  signature?: string;
1931
1936
  }
1932
- interface CodeExecutionResult {
1937
+ interface GoogleSearchCall {
1933
1938
  /**
1934
- * ID to match the ID from the function call block.
1939
+ * Required. A unique ID for this specific tool call.
1935
1940
  */
1936
- call_id: string;
1937
- result: string;
1938
- type: 'code_execution_result';
1939
- is_error?: boolean;
1941
+ id: string;
1942
+ /**
1943
+ * The arguments to pass to Google Search.
1944
+ */
1945
+ arguments: InteractionsAPI.GoogleSearchCallArguments;
1946
+ type: 'google_search_call';
1940
1947
  /**
1941
1948
  * A signature hash for backend validation.
1942
1949
  */
1943
1950
  signature?: string;
1944
1951
  }
1945
- interface URLContextCall {
1952
+ interface MCPServerToolCall {
1946
1953
  /**
1947
- * A unique ID for this specific tool call.
1954
+ * Required. A unique ID for this specific tool call.
1948
1955
  */
1949
1956
  id: string;
1950
- /**
1951
- * The arguments to pass to the URL context.
1952
- */
1953
- arguments: InteractionsAPI.URLContextCallArguments;
1954
- type: 'url_context_call';
1957
+ arguments: {
1958
+ [key: string]: unknown;
1959
+ };
1960
+ name: string;
1961
+ server_name: string;
1962
+ type: 'mcp_server_tool_call';
1955
1963
  /**
1956
1964
  * A signature hash for backend validation.
1957
1965
  */
1958
1966
  signature?: string;
1959
1967
  }
1960
- interface URLContextResult {
1968
+ interface FileSearchCall {
1961
1969
  /**
1962
- * ID to match the ID from the function call block.
1970
+ * Required. A unique ID for this specific tool call.
1963
1971
  */
1964
- call_id: string;
1965
- result: Array<InteractionsAPI.URLContextResult>;
1966
- type: 'url_context_result';
1967
- is_error?: boolean;
1972
+ id: string;
1973
+ type: 'file_search_call';
1968
1974
  /**
1969
1975
  * A signature hash for backend validation.
1970
1976
  */
1971
1977
  signature?: string;
1972
1978
  }
1973
- interface GoogleSearchCall {
1979
+ interface GoogleMapsCall {
1974
1980
  /**
1975
- * A unique ID for this specific tool call.
1981
+ * Required. A unique ID for this specific tool call.
1976
1982
  */
1977
1983
  id: string;
1984
+ type: 'google_maps_call';
1978
1985
  /**
1979
- * The arguments to pass to Google Search.
1986
+ * The arguments to pass to the Google Maps tool.
1980
1987
  */
1981
- arguments: InteractionsAPI.GoogleSearchCallArguments;
1982
- type: 'google_search_call';
1988
+ arguments?: InteractionsAPI.GoogleMapsCallArguments;
1983
1989
  /**
1984
1990
  * A signature hash for backend validation.
1985
1991
  */
1986
1992
  signature?: string;
1987
1993
  }
1988
- interface GoogleSearchResult {
1994
+ interface FunctionResult {
1989
1995
  /**
1990
- * ID to match the ID from the function call block.
1996
+ * Required. ID to match the ID from the function call block.
1991
1997
  */
1992
1998
  call_id: string;
1993
- result: Array<InteractionsAPI.GoogleSearchResult>;
1994
- type: 'google_search_result';
1999
+ result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
2000
+ type: 'function_result';
1995
2001
  is_error?: boolean;
2002
+ name?: string;
1996
2003
  /**
1997
2004
  * A signature hash for backend validation.
1998
2005
  */
1999
2006
  signature?: string;
2000
2007
  }
2001
- interface MCPServerToolCall {
2008
+ interface CodeExecutionResult {
2002
2009
  /**
2003
- * A unique ID for this specific tool call.
2010
+ * Required. ID to match the ID from the function call block.
2004
2011
  */
2005
- id: string;
2006
- arguments: {
2007
- [key: string]: unknown;
2008
- };
2009
- name: string;
2010
- server_name: string;
2011
- type: 'mcp_server_tool_call';
2012
+ call_id: string;
2013
+ result: string;
2014
+ type: 'code_execution_result';
2015
+ is_error?: boolean;
2012
2016
  /**
2013
2017
  * A signature hash for backend validation.
2014
2018
  */
2015
2019
  signature?: string;
2016
2020
  }
2017
- interface MCPServerToolResult {
2021
+ interface URLContextResult {
2018
2022
  /**
2019
- * ID to match the ID from the function call block.
2023
+ * Required. ID to match the ID from the function call block.
2020
2024
  */
2021
2025
  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;
2026
+ result: Array<InteractionsAPI.URLContextResult>;
2027
+ type: 'url_context_result';
2028
+ is_error?: boolean;
2029
2029
  /**
2030
2030
  * A signature hash for backend validation.
2031
2031
  */
2032
2032
  signature?: string;
2033
2033
  }
2034
- namespace MCPServerToolResult {
2035
- interface Items {
2036
- items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
2037
- }
2038
- }
2039
- interface FileSearchCall {
2034
+ interface GoogleSearchResult {
2040
2035
  /**
2041
- * A unique ID for this specific tool call.
2036
+ * Required. ID to match the ID from the function call block.
2042
2037
  */
2043
- id: string;
2044
- type: 'file_search_call';
2038
+ call_id: string;
2039
+ result: Array<InteractionsAPI.GoogleSearchResult>;
2040
+ type: 'google_search_result';
2041
+ is_error?: boolean;
2045
2042
  /**
2046
2043
  * A signature hash for backend validation.
2047
2044
  */
2048
2045
  signature?: string;
2049
2046
  }
2050
- interface FileSearchResult {
2047
+ interface MCPServerToolResult {
2051
2048
  /**
2052
- * ID to match the ID from the function call block.
2049
+ * Required. ID to match the ID from the function call block.
2053
2050
  */
2054
2051
  call_id: string;
2055
- type: 'file_search_result';
2056
- result?: Array<unknown>;
2052
+ result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
2053
+ type: 'mcp_server_tool_result';
2054
+ name?: string;
2055
+ server_name?: string;
2057
2056
  /**
2058
2057
  * A signature hash for backend validation.
2059
2058
  */
2060
2059
  signature?: string;
2061
2060
  }
2062
- interface GoogleMapsCall {
2063
- /**
2064
- * A unique ID for this specific tool call.
2065
- */
2066
- id: string;
2067
- type: 'google_maps_call';
2061
+ interface FileSearchResult {
2068
2062
  /**
2069
- * The arguments to pass to the Google Maps tool.
2063
+ * Required. ID to match the ID from the function call block.
2070
2064
  */
2071
- arguments?: InteractionsAPI.GoogleMapsCallArguments;
2065
+ call_id: string;
2066
+ result: Array<FileSearchResult.Result>;
2067
+ type: 'file_search_result';
2072
2068
  /**
2073
2069
  * A signature hash for backend validation.
2074
2070
  */
2075
2071
  signature?: string;
2076
2072
  }
2073
+ namespace FileSearchResult {
2074
+ /**
2075
+ * The result of the File Search.
2076
+ */
2077
+ interface Result {
2078
+ /**
2079
+ * User provided metadata about the FileSearchResult.
2080
+ */
2081
+ custom_metadata?: Array<unknown>;
2082
+ }
2083
+ }
2077
2084
  interface GoogleMapsResult {
2078
2085
  /**
2079
- * ID to match the ID from the function call block.
2086
+ * Required. ID to match the ID from the function call block.
2080
2087
  */
2081
2088
  call_id: string;
2089
+ type: 'google_maps_result';
2082
2090
  /**
2083
2091
  * The results of the Google Maps.
2084
2092
  */
2085
- result: Array<InteractionsAPI.GoogleMapsResult>;
2086
- type: 'google_maps_result';
2093
+ result?: Array<InteractionsAPI.GoogleMapsResult>;
2087
2094
  /**
2088
2095
  * A signature hash for backend validation.
2089
2096
  */
@@ -2139,7 +2146,8 @@ declare interface ContentStart {
2139
2146
  event_type: 'content.start';
2140
2147
  index: number;
2141
2148
  /**
2142
- * The event_id token to be used to resume the interaction stream, from this event.
2149
+ * The event_id token to be used to resume the interaction stream, from
2150
+ * this event.
2143
2151
  */
2144
2152
  event_id?: string;
2145
2153
  }
@@ -2148,7 +2156,8 @@ declare interface ContentStop {
2148
2156
  event_type: 'content.stop';
2149
2157
  index: number;
2150
2158
  /**
2151
- * The event_id token to be used to resume the interaction stream, from this event.
2159
+ * The event_id token to be used to resume the interaction stream, from
2160
+ * this event.
2152
2161
  */
2153
2162
  event_id?: string;
2154
2163
  }
@@ -2596,7 +2605,7 @@ export declare interface CreateTuningJobConfig {
2596
2605
  preTunedModelCheckpointId?: string;
2597
2606
  /** Adapter size for tuning. */
2598
2607
  adapterSize?: AdapterSize;
2599
- /** Tuning mode for SFT tuning. */
2608
+ /** Tuning mode for tuning. */
2600
2609
  tuningMode?: TuningMode;
2601
2610
  /** Custom base model for tuning. This is only supported for OSS models in Vertex. */
2602
2611
  customBaseModel?: string;
@@ -2908,7 +2917,7 @@ export declare interface DistillationDataStats {
2908
2917
  trainingDatasetStats?: DatasetStats;
2909
2918
  }
2910
2919
 
2911
- /** Hyperparameters for Distillation. This data type is not supported in Gemini API. */
2920
+ /** Hyperparameters for distillation. */
2912
2921
  export declare interface DistillationHyperParameters {
2913
2922
  /** Optional. Adapter size for distillation. */
2914
2923
  adapterSize?: AdapterSize;
@@ -2916,6 +2925,21 @@ export declare interface DistillationHyperParameters {
2916
2925
  epochCount?: string;
2917
2926
  /** Optional. Multiplier for adjusting the default learning rate. */
2918
2927
  learningRateMultiplier?: number;
2928
+ /** The batch size hyperparameter for tuning.
2929
+ This is only supported for OSS models in Vertex. */
2930
+ batchSize?: number;
2931
+ /** The learning rate for tuning. OSS models only. */
2932
+ learningRate?: number;
2933
+ }
2934
+
2935
+ /** Spec for creating a distilled dataset in Vertex Dataset. This data type is not supported in Gemini API. */
2936
+ export declare interface DistillationSamplingSpec {
2937
+ /** 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). */
2938
+ baseTeacherModel?: string;
2939
+ /** Optional. The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. */
2940
+ tunedTeacherModelSource?: string;
2941
+ /** Optional. Cloud Storage path to file containing validation dataset for distillation. The dataset must be formatted as a JSONL file. */
2942
+ validationDatasetUri?: string;
2919
2943
  }
2920
2944
 
2921
2945
  /** Distillation tuning spec for tuning. */
@@ -2936,20 +2960,21 @@ export declare interface DistillationSpec {
2936
2960
  tunedTeacherModelSource?: string;
2937
2961
  /** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
2938
2962
  validationDatasetUri?: string;
2963
+ /** Tuning mode for tuning. */
2964
+ tuningMode?: TuningMode;
2939
2965
  }
2940
2966
 
2941
2967
  /** A Document is a collection of Chunks. */
2942
2968
  declare interface Document_2 {
2943
- /** The resource name of the Document.
2944
- Example: fileSearchStores/file-search-store-foo/documents/documents-bar */
2969
+ /** 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
2970
  name?: string;
2946
- /** The human-readable display name for the Document. */
2971
+ /** 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
2972
  displayName?: string;
2948
- /** The current state of the Document. */
2973
+ /** Output only. Current state of the `Document`. */
2949
2974
  state?: DocumentState;
2950
- /** The size of the Document in bytes. */
2975
+ /** Output only. The size of raw bytes ingested into the Document. */
2951
2976
  sizeBytes?: string;
2952
- /** The MIME type of the Document. */
2977
+ /** Output only. The mime type of the Document. */
2953
2978
  mimeType?: string;
2954
2979
  /** Output only. The Timestamp of when the `Document` was created. */
2955
2980
  createTime?: string;
@@ -3013,11 +3038,23 @@ declare class Documents extends BaseModule {
3013
3038
  private listInternal;
3014
3039
  }
3015
3040
 
3016
- /** State for the lifecycle of a Document. */
3041
+ /** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
3017
3042
  export declare enum DocumentState {
3043
+ /**
3044
+ * The default value. This value is used if the state is omitted.
3045
+ */
3018
3046
  STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
3047
+ /**
3048
+ * Some `Chunks` of the `Document` are being processed (embedding and vector storage).
3049
+ */
3019
3050
  STATE_PENDING = "STATE_PENDING",
3051
+ /**
3052
+ * All `Chunks` of the `Document` is processed and available for querying.
3053
+ */
3020
3054
  STATE_ACTIVE = "STATE_ACTIVE",
3055
+ /**
3056
+ * Some `Chunks` of the `Document` failed processing.
3057
+ */
3021
3058
  STATE_FAILED = "STATE_FAILED"
3022
3059
  }
3023
3060
 
@@ -3359,7 +3396,8 @@ declare interface ErrorEvent_2 {
3359
3396
  */
3360
3397
  error?: ErrorEvent_2.Error;
3361
3398
  /**
3362
- * The event_id token to be used to resume the interaction stream, from this event.
3399
+ * The event_id token to be used to resume the interaction stream, from
3400
+ * this event.
3363
3401
  */
3364
3402
  event_id?: string;
3365
3403
  }
@@ -3416,7 +3454,7 @@ export declare interface EvaluateDatasetRun {
3416
3454
  evaluateDatasetResponse?: EvaluateDatasetResponse;
3417
3455
  /** Output only. The resource name of the evaluation run. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run_id}`. */
3418
3456
  evaluationRun?: string;
3419
- /** Output only. The operation ID of the evaluation run. Format: `projects/{project}/locations/{location}/operations/{operation_id}`. */
3457
+ /** Output only. Deprecated: The updated architecture uses evaluation_run instead. */
3420
3458
  operationName?: string;
3421
3459
  }
3422
3460
 
@@ -3573,6 +3611,8 @@ declare interface FileCitation {
3573
3611
  source?: string;
3574
3612
  /**
3575
3613
  * Start of segment of the response that is attributed to this source.
3614
+ *
3615
+ * Index indicates the start of the segment, measured in bytes.
3576
3616
  */
3577
3617
  start_index?: number;
3578
3618
  }
@@ -3707,14 +3747,13 @@ export declare class Files extends BaseModule {
3707
3747
  private registerFilesInternal;
3708
3748
  }
3709
3749
 
3710
- /** Tool to retrieve knowledge from the File Search Stores. */
3750
+ /** 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
3751
  export declare interface FileSearch {
3712
- /** The names of the file_search_stores to retrieve from.
3713
- Example: `fileSearchStores/my-file-search-store-123` */
3752
+ /** Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` */
3714
3753
  fileSearchStoreNames?: string[];
3715
- /** The number of file search retrieval chunks to retrieve. */
3754
+ /** Optional. The number of semantic retrieval chunks to retrieve. */
3716
3755
  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. */
3756
+ /** Optional. Metadata filter to apply to the semantic retrieval documents and chunks. */
3718
3757
  metadataFilter?: string;
3719
3758
  }
3720
3759
 
@@ -3723,7 +3762,7 @@ export declare interface FileSearch {
3723
3762
  */
3724
3763
  declare interface FileSearchCallContent {
3725
3764
  /**
3726
- * A unique ID for this specific tool call.
3765
+ * Required. A unique ID for this specific tool call.
3727
3766
  */
3728
3767
  id: string;
3729
3768
  type: 'file_search_call';
@@ -3738,20 +3777,32 @@ declare interface FileSearchCallContent {
3738
3777
  */
3739
3778
  declare interface FileSearchResultContent {
3740
3779
  /**
3741
- * ID to match the ID from the file search call block.
3780
+ * Required. ID to match the ID from the function call block.
3742
3781
  */
3743
3782
  call_id: string;
3744
- type: 'file_search_result';
3745
3783
  /**
3746
- * The results of the File Search.
3784
+ * Required. The results of the File Search.
3747
3785
  */
3748
- result?: Array<unknown>;
3786
+ result: Array<FileSearchResultContent.Result>;
3787
+ type: 'file_search_result';
3749
3788
  /**
3750
3789
  * A signature hash for backend validation.
3751
3790
  */
3752
3791
  signature?: string;
3753
3792
  }
3754
3793
 
3794
+ declare namespace FileSearchResultContent {
3795
+ /**
3796
+ * The result of the File Search.
3797
+ */
3798
+ interface Result {
3799
+ /**
3800
+ * User provided metadata about the FileSearchResult.
3801
+ */
3802
+ custom_metadata?: Array<unknown>;
3803
+ }
3804
+ }
3805
+
3755
3806
  /** A collection of Documents. */
3756
3807
  export declare interface FileSearchStore {
3757
3808
  /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */
@@ -4037,17 +4088,17 @@ export declare interface FunctionCall {
4037
4088
  */
4038
4089
  declare interface FunctionCallContent {
4039
4090
  /**
4040
- * A unique ID for this specific tool call.
4091
+ * Required. A unique ID for this specific tool call.
4041
4092
  */
4042
4093
  id: string;
4043
4094
  /**
4044
- * The arguments to pass to the function.
4095
+ * Required. The arguments to pass to the function.
4045
4096
  */
4046
4097
  arguments: {
4047
4098
  [key: string]: unknown;
4048
4099
  };
4049
4100
  /**
4050
- * The name of the tool to call.
4101
+ * Required. The name of the tool to call.
4051
4102
  */
4052
4103
  name: string;
4053
4104
  type: 'function_call';
@@ -4193,7 +4244,7 @@ export declare enum FunctionResponseScheduling {
4193
4244
  */
4194
4245
  declare interface FunctionResultContent {
4195
4246
  /**
4196
- * ID to match the ID from the function call block.
4247
+ * Required. ID to match the ID from the function call block.
4197
4248
  */
4198
4249
  call_id: string;
4199
4250
  /**
@@ -4416,6 +4467,8 @@ export declare interface GenerateContentConfig {
4416
4467
  service. If supplied, safety_settings must not be supplied.
4417
4468
  */
4418
4469
  modelArmorConfig?: ModelArmorConfig;
4470
+ /** The service tier to use for the request. For example, SERVICE_TIER_FLEX. */
4471
+ serviceTier?: ServiceTier;
4419
4472
  }
4420
4473
 
4421
4474
  /** Config for models.generate_content parameters. */
@@ -4452,6 +4505,8 @@ export declare class GenerateContentResponse {
4452
4505
  responseId?: string;
4453
4506
  /** Usage metadata about the response(s). */
4454
4507
  usageMetadata?: GenerateContentResponseUsageMetadata;
4508
+ /** Output only. The current model status of this model. This field is not supported in Vertex AI. */
4509
+ modelStatus?: ModelStatus;
4455
4510
  /**
4456
4511
  * Returns the concatenation of all text parts from the first candidate in the response.
4457
4512
  *
@@ -4781,6 +4836,8 @@ export declare interface GenerateVideosConfig {
4781
4836
  mask?: VideoGenerationMask;
4782
4837
  /** Compression quality of the generated videos. */
4783
4838
  compressionQuality?: VideoCompressionQuality;
4839
+ /** User specified labels to track billing usage. */
4840
+ labels?: Record<string, string>;
4784
4841
  }
4785
4842
 
4786
4843
  /** A video generation operation. */
@@ -4797,7 +4854,6 @@ export declare class GenerateVideosOperation implements Operation<GenerateVideos
4797
4854
  response?: GenerateVideosResponse;
4798
4855
  /**
4799
4856
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
4800
- * @internal
4801
4857
  */
4802
4858
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<GenerateVideosResponse>;
4803
4859
  /** The full HTTP response. */
@@ -4936,7 +4992,7 @@ declare interface GenerationConfig_2 {
4936
4992
  */
4937
4993
  thinking_summaries?: 'auto' | 'none';
4938
4994
  /**
4939
- * The tool choice for the interaction.
4995
+ * The tool choice configuration.
4940
4996
  */
4941
4997
  tool_choice?: ToolChoiceType | ToolChoiceConfig;
4942
4998
  /**
@@ -5293,7 +5349,7 @@ declare interface GoogleMapsCallArguments {
5293
5349
  */
5294
5350
  declare interface GoogleMapsCallContent {
5295
5351
  /**
5296
- * A unique ID for this specific tool call.
5352
+ * Required. A unique ID for this specific tool call.
5297
5353
  */
5298
5354
  id: string;
5299
5355
  type: 'google_maps_call';
@@ -5368,11 +5424,11 @@ declare namespace GoogleMapsResult {
5368
5424
  */
5369
5425
  declare interface GoogleMapsResultContent {
5370
5426
  /**
5371
- * ID to match the ID from the google maps call block.
5427
+ * Required. ID to match the ID from the function call block.
5372
5428
  */
5373
5429
  call_id: string;
5374
5430
  /**
5375
- * The results of the Google Maps.
5431
+ * Required. The results of the Google Maps.
5376
5432
  */
5377
5433
  result: Array<GoogleMapsResult>;
5378
5434
  type: 'google_maps_result';
@@ -5392,9 +5448,9 @@ export declare interface GoogleRpcStatus {
5392
5448
  message?: string;
5393
5449
  }
5394
5450
 
5395
- /** Tool to support web search. */
5451
+ /** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
5396
5452
  export declare interface GoogleSearch {
5397
- /** Different types of search that can be enabled on the GoogleSearch tool. */
5453
+ /** Optional. The set of search types to enable. If not set, web search is enabled by default. */
5398
5454
  searchTypes?: SearchTypes;
5399
5455
  /** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */
5400
5456
  blockingConfidence?: PhishBlockThreshold;
@@ -5419,11 +5475,11 @@ declare interface GoogleSearchCallArguments {
5419
5475
  */
5420
5476
  declare interface GoogleSearchCallContent {
5421
5477
  /**
5422
- * A unique ID for this specific tool call.
5478
+ * Required. A unique ID for this specific tool call.
5423
5479
  */
5424
5480
  id: string;
5425
5481
  /**
5426
- * The arguments to pass to Google Search.
5482
+ * Required. The arguments to pass to Google Search.
5427
5483
  */
5428
5484
  arguments: GoogleSearchCallArguments;
5429
5485
  type: 'google_search_call';
@@ -5452,11 +5508,11 @@ declare interface GoogleSearchResult {
5452
5508
  */
5453
5509
  declare interface GoogleSearchResultContent {
5454
5510
  /**
5455
- * ID to match the ID from the google search call block.
5511
+ * Required. ID to match the ID from the function call block.
5456
5512
  */
5457
5513
  call_id: string;
5458
5514
  /**
5459
- * The results of the Google Search.
5515
+ * Required. The results of the Google Search.
5460
5516
  */
5461
5517
  result: Array<GoogleSearchResult>;
5462
5518
  type: 'google_search_result';
@@ -5492,9 +5548,7 @@ export declare interface GoogleTypeDate {
5492
5548
  is enabled, the model returns a `GroundingChunk` that contains a reference to
5493
5549
  the source of the information. */
5494
5550
  export declare interface GroundingChunk {
5495
- /** A grounding chunk from an image search result. See the `Image`
5496
- message for details.
5497
- */
5551
+ /** A grounding chunk from an image search result. See the `Image` message for details. */
5498
5552
  image?: GroundingChunkImage;
5499
5553
  /** A `Maps` chunk is a piece of evidence that comes from Google Maps.
5500
5554
 
@@ -5502,17 +5556,25 @@ export declare interface GroundingChunk {
5502
5556
  reviews. This is used to provide the user with rich, location-based
5503
5557
  information. */
5504
5558
  maps?: GroundingChunkMaps;
5505
- /** 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. */
5559
+ /** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details */
5506
5560
  retrievedContext?: GroundingChunkRetrievedContext;
5507
5561
  /** A grounding chunk from a web page, typically from Google Search. See the `Web` message for details. */
5508
5562
  web?: GroundingChunkWeb;
5509
5563
  }
5510
5564
 
5511
- /** A piece of evidence that comes from an image search result.
5565
+ /** User provided metadata about the GroundingFact. This data type is not supported in Vertex AI. */
5566
+ export declare interface GroundingChunkCustomMetadata {
5567
+ /** The key of the metadata. */
5568
+ key?: string;
5569
+ /** Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. */
5570
+ numericValue?: number;
5571
+ /** Optional. A list of string values for the metadata. */
5572
+ stringListValue?: GroundingChunkStringList;
5573
+ /** Optional. The string value of the metadata. */
5574
+ stringValue?: string;
5575
+ }
5512
5576
 
5513
- It contains the URI of the image search result and the URI of the image.
5514
- This is used to provide the user with a link to the source of the
5515
- information. */
5577
+ /** 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. */
5516
5578
  export declare interface GroundingChunkImage {
5517
5579
  /** The URI of the image search result page. */
5518
5580
  sourceUri?: string;
@@ -5544,6 +5606,8 @@ export declare interface GroundingChunkMaps {
5544
5606
  title?: string;
5545
5607
  /** The URI of the place. */
5546
5608
  uri?: string;
5609
+ /** Output only. Route information. */
5610
+ route?: GroundingChunkMapsRoute;
5547
5611
  }
5548
5612
 
5549
5613
  /** The sources that were used to generate the place answer.
@@ -5587,11 +5651,21 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
5587
5651
  title?: string;
5588
5652
  }
5589
5653
 
5590
- /** 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. */
5654
+ /** Route information from Google Maps. This data type is not supported in Gemini API. */
5655
+ export declare interface GroundingChunkMapsRoute {
5656
+ /** The total distance of the route, in meters. */
5657
+ distanceMeters?: number;
5658
+ /** The total duration of the route. */
5659
+ duration?: string;
5660
+ /** An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm */
5661
+ encodedPolyline?: string;
5662
+ }
5663
+
5664
+ /** 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. */
5591
5665
  export declare interface GroundingChunkRetrievedContext {
5592
- /** 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}`. */
5666
+ /** 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. */
5593
5667
  documentName?: string;
5594
- /** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. */
5668
+ /** 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. */
5595
5669
  ragChunk?: RagChunk;
5596
5670
  /** The content of the retrieved data source. */
5597
5671
  text?: string;
@@ -5599,6 +5673,16 @@ export declare interface GroundingChunkRetrievedContext {
5599
5673
  title?: string;
5600
5674
  /** The URI of the retrieved data source. */
5601
5675
  uri?: string;
5676
+ /** Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI. */
5677
+ customMetadata?: GroundingChunkCustomMetadata[];
5678
+ /** Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`. This field is not supported in Vertex AI. */
5679
+ fileSearchStore?: string;
5680
+ }
5681
+
5682
+ /** A list of string values. This data type is not supported in Vertex AI. */
5683
+ export declare interface GroundingChunkStringList {
5684
+ /** The string values of the list. */
5685
+ values?: string[];
5602
5686
  }
5603
5687
 
5604
5688
  /** 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. */
@@ -5613,10 +5697,7 @@ export declare interface GroundingChunkWeb {
5613
5697
 
5614
5698
  /** Information for various kinds of grounding. */
5615
5699
  export declare interface GroundingMetadata {
5616
- /** Optional. The image search queries that were used to generate the
5617
- content. This field is populated only when the grounding source is Google
5618
- Search with the Image Search search_type enabled.
5619
- */
5700
+ /** 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. */
5620
5701
  imageSearchQueries?: string[];
5621
5702
  /** A list of supporting references retrieved from the grounding
5622
5703
  source. This field is populated when the grounding source is Google
@@ -5632,7 +5713,7 @@ export declare interface GroundingMetadata {
5632
5713
  searchEntryPoint?: SearchEntryPoint;
5633
5714
  /** Web search queries for the following-up web search. */
5634
5715
  webSearchQueries?: string[];
5635
- /** 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. */
5716
+ /** 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. */
5636
5717
  googleMapsWidgetContextToken?: string;
5637
5718
  /** 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. */
5638
5719
  retrievalQueries?: string[];
@@ -5662,6 +5743,8 @@ export declare interface GroundingSupport {
5662
5743
  groundingChunkIndices?: number[];
5663
5744
  /** Segment of the content this support belongs to. */
5664
5745
  segment?: Segment;
5746
+ /** Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message. */
5747
+ renderedParts?: number[];
5665
5748
  }
5666
5749
 
5667
5750
  /** 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. */
@@ -5955,11 +6038,7 @@ export declare interface ImageConfig {
5955
6038
  /** Controls the generation of people. Supported values are:
5956
6039
  ALLOW_ALL, ALLOW_ADULT, ALLOW_NONE. */
5957
6040
  personGeneration?: string;
5958
- /** Controls whether prominent people (celebrities)
5959
- generation is allowed. If used with personGeneration, personGeneration
5960
- enum would take precedence. For instance, if ALLOW_NONE is set, all person
5961
- generation would be blocked. If this field is unspecified, the default
5962
- behavior is to allow prominent people. */
6041
+ /** 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. */
5963
6042
  prominentPeople?: ProminentPeople;
5964
6043
  /** MIME type of the generated image. This field is not
5965
6044
  supported in Gemini API. */
@@ -5967,7 +6046,7 @@ export declare interface ImageConfig {
5967
6046
  /** Compression quality of the generated image (for
5968
6047
  ``image/jpeg`` only). This field is not supported in Gemini API. */
5969
6048
  outputCompressionQuality?: number;
5970
- /** Optional. The image output format for generated images. */
6049
+ /** Optional. The image output format for generated images. This field is not supported in Gemini API. */
5971
6050
  imageOutputOptions?: ImageConfigImageOutputOptions;
5972
6051
  }
5973
6052
 
@@ -5999,7 +6078,7 @@ declare interface ImageContent {
5999
6078
  /**
6000
6079
  * The mime type of the image.
6001
6080
  */
6002
- mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
6081
+ mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
6003
6082
  /**
6004
6083
  * The resolution of the media.
6005
6084
  */
@@ -6081,7 +6160,6 @@ export declare class ImportFileOperation implements Operation<ImportFileResponse
6081
6160
  response?: ImportFileResponse;
6082
6161
  /**
6083
6162
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
6084
- * @internal
6085
6163
  */
6086
6164
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<ImportFileResponse>;
6087
6165
  /** The full HTTP response. */
@@ -6110,12 +6188,12 @@ export declare class ImportFileResponse {
6110
6188
 
6111
6189
  /** Config for `inlined_embedding_responses` parameter. */
6112
6190
  export declare class InlinedEmbedContentResponse {
6113
- /** The response to the request.
6114
- */
6191
+ /** Output only. The response to the request. */
6115
6192
  response?: SingleEmbedContentResponse;
6116
- /** The error encountered while processing the request.
6117
- */
6193
+ /** Output only. The error encountered while processing the request. */
6118
6194
  error?: JobError;
6195
+ /** Output only. The metadata associated with the request. */
6196
+ metadata?: Record<string, unknown>;
6119
6197
  }
6120
6198
 
6121
6199
  /** Config for inlined request. */
@@ -6150,20 +6228,20 @@ export declare class InlinedResponse {
6150
6228
  */
6151
6229
  declare interface Interaction {
6152
6230
  /**
6153
- * Output only. A unique identifier for the interaction completion.
6231
+ * Required. Output only. A unique identifier for the interaction completion.
6154
6232
  */
6155
6233
  id: string;
6156
6234
  /**
6157
- * Output only. The time at which the response was created in ISO 8601 format
6235
+ * Required. Output only. The time at which the response was created in ISO 8601 format
6158
6236
  * (YYYY-MM-DDThh:mm:ssZ).
6159
6237
  */
6160
6238
  created: string;
6161
6239
  /**
6162
- * Output only. The status of the interaction.
6240
+ * Required. Output only. The status of the interaction.
6163
6241
  */
6164
6242
  status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
6165
6243
  /**
6166
- * Output only. The time at which the response was last updated in ISO 8601 format
6244
+ * Required. Output only. The time at which the response was last updated in ISO 8601 format
6167
6245
  * (YYYY-MM-DDThh:mm:ssZ).
6168
6246
  */
6169
6247
  updated: string;
@@ -6178,7 +6256,7 @@ declare interface Interaction {
6178
6256
  /**
6179
6257
  * The input for the interaction.
6180
6258
  */
6181
- 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;
6259
+ 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;
6182
6260
  /**
6183
6261
  * The name of the `Model` used for generating the interaction.
6184
6262
  */
@@ -6208,6 +6286,10 @@ declare interface Interaction {
6208
6286
  * Output only. The role of the interaction.
6209
6287
  */
6210
6288
  role?: string;
6289
+ /**
6290
+ * The service tier for the interaction.
6291
+ */
6292
+ service_tier?: 'flex' | 'standard' | 'priority';
6211
6293
  /**
6212
6294
  * System instruction for the interaction.
6213
6295
  */
@@ -6232,12 +6314,13 @@ declare interface InteractionCancelParams {
6232
6314
  declare interface InteractionCompleteEvent {
6233
6315
  event_type: 'interaction.complete';
6234
6316
  /**
6235
- * The completed interaction with empty outputs to reduce the payload size.
6317
+ * Required. The completed interaction with empty outputs to reduce the payload size.
6236
6318
  * Use the preceding ContentDelta events for the actual output.
6237
6319
  */
6238
6320
  interaction: Interaction;
6239
6321
  /**
6240
- * The event_id token to be used to resume the interaction stream, from this event.
6322
+ * The event_id token to be used to resume the interaction stream, from
6323
+ * this event.
6241
6324
  */
6242
6325
  event_id?: string;
6243
6326
  }
@@ -6385,7 +6468,8 @@ declare interface InteractionStartEvent {
6385
6468
  */
6386
6469
  interaction: Interaction;
6387
6470
  /**
6388
- * The event_id token to be used to resume the interaction stream, from this event.
6471
+ * The event_id token to be used to resume the interaction stream, from
6472
+ * this event.
6389
6473
  */
6390
6474
  event_id?: string;
6391
6475
  }
@@ -6395,7 +6479,8 @@ declare interface InteractionStatusUpdate {
6395
6479
  interaction_id: string;
6396
6480
  status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
6397
6481
  /**
6398
- * The event_id token to be used to resume the interaction stream, from this event.
6482
+ * The event_id token to be used to resume the interaction stream, from
6483
+ * this event.
6399
6484
  */
6400
6485
  event_id?: string;
6401
6486
  }
@@ -6637,6 +6722,7 @@ export declare interface ListFileSearchStoresParameters {
6637
6722
  export declare class ListFileSearchStoresResponse {
6638
6723
  /** Used to retain the full HTTP response. */
6639
6724
  sdkHttpResponse?: HttpResponse;
6725
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. */
6640
6726
  nextPageToken?: string;
6641
6727
  /** The returned file search stores. */
6642
6728
  fileSearchStores?: FileSearchStore[];
@@ -7505,6 +7591,8 @@ export declare interface LogprobsResult {
7505
7591
  chosenCandidates?: LogprobsResultCandidate[];
7506
7592
  /** 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. */
7507
7593
  topCandidates?: LogprobsResultTopCandidates[];
7594
+ /** Sum of log probabilities for all tokens. This field is not supported in Vertex AI. */
7595
+ logProbabilitySum?: number;
7508
7596
  }
7509
7597
 
7510
7598
  /** A single token and its associated log probability. */
@@ -7580,21 +7668,21 @@ export declare interface McpServer {
7580
7668
  */
7581
7669
  declare interface MCPServerToolCallContent {
7582
7670
  /**
7583
- * A unique ID for this specific tool call.
7671
+ * Required. A unique ID for this specific tool call.
7584
7672
  */
7585
7673
  id: string;
7586
7674
  /**
7587
- * The JSON object of arguments for the function.
7675
+ * Required. The JSON object of arguments for the function.
7588
7676
  */
7589
7677
  arguments: {
7590
7678
  [key: string]: unknown;
7591
7679
  };
7592
7680
  /**
7593
- * The name of the tool which was called.
7681
+ * Required. The name of the tool which was called.
7594
7682
  */
7595
7683
  name: string;
7596
7684
  /**
7597
- * The name of the used MCP server.
7685
+ * Required. The name of the used MCP server.
7598
7686
  */
7599
7687
  server_name: string;
7600
7688
  type: 'mcp_server_tool_call';
@@ -7609,7 +7697,7 @@ declare interface MCPServerToolCallContent {
7609
7697
  */
7610
7698
  declare interface MCPServerToolResultContent {
7611
7699
  /**
7612
- * ID to match the ID from the MCP server tool call block.
7700
+ * Required. ID to match the ID from the function call block.
7613
7701
  */
7614
7702
  call_id: string;
7615
7703
  /**
@@ -7785,7 +7873,7 @@ export declare interface Model {
7785
7873
  /**
7786
7874
  * The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
7787
7875
  */
7788
- 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 & {});
7876
+ 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 & {});
7789
7877
 
7790
7878
  /** 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. */
7791
7879
  export declare interface ModelArmorConfig {
@@ -8191,6 +8279,52 @@ export declare interface ModelSelectionConfig {
8191
8279
  featureSelectionPreference?: FeatureSelectionPreference;
8192
8280
  }
8193
8281
 
8282
+ /** The stage of the underlying model. This enum is not supported in Vertex AI. */
8283
+ export declare enum ModelStage {
8284
+ /**
8285
+ * Unspecified model stage.
8286
+ */
8287
+ MODEL_STAGE_UNSPECIFIED = "MODEL_STAGE_UNSPECIFIED",
8288
+ /**
8289
+ * The underlying model is subject to lots of tunings.
8290
+ */
8291
+ UNSTABLE_EXPERIMENTAL = "UNSTABLE_EXPERIMENTAL",
8292
+ /**
8293
+ * Models in this stage are for experimental purposes only.
8294
+ */
8295
+ EXPERIMENTAL = "EXPERIMENTAL",
8296
+ /**
8297
+ * Models in this stage are more mature than experimental models.
8298
+ */
8299
+ PREVIEW = "PREVIEW",
8300
+ /**
8301
+ * Models in this stage are considered stable and ready for production use.
8302
+ */
8303
+ STABLE = "STABLE",
8304
+ /**
8305
+ * 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.
8306
+ */
8307
+ LEGACY = "LEGACY",
8308
+ /**
8309
+ * Models in this stage are deprecated. These models cannot be used.
8310
+ */
8311
+ DEPRECATED = "DEPRECATED",
8312
+ /**
8313
+ * Models in this stage are retired. These models cannot be used.
8314
+ */
8315
+ RETIRED = "RETIRED"
8316
+ }
8317
+
8318
+ /** 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. */
8319
+ export declare interface ModelStatus {
8320
+ /** A message explaining the model status. */
8321
+ message?: string;
8322
+ /** The stage of the underlying model. */
8323
+ modelStage?: ModelStage;
8324
+ /** The time at which the model will be retired. */
8325
+ retirementTime?: string;
8326
+ }
8327
+
8194
8328
  /** Configuration for a multi-speaker text-to-speech request. */
8195
8329
  export declare interface MultiSpeakerVoiceConfig {
8196
8330
  /** Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. */
@@ -8276,7 +8410,6 @@ export declare interface Operation<T> {
8276
8410
  response?: T;
8277
8411
  /**
8278
8412
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
8279
- * @internal
8280
8413
  */
8281
8414
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<T>;
8282
8415
  }
@@ -8555,6 +8688,8 @@ export declare interface Part {
8555
8688
  toolCall?: ToolCall;
8556
8689
  /** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
8557
8690
  toolResponse?: ToolResponse;
8691
+ /** 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. */
8692
+ partMetadata?: Record<string, unknown>;
8558
8693
  }
8559
8694
 
8560
8695
  /** Partial argument value of the function call. This data type is not supported in Gemini API. */
@@ -8696,6 +8831,8 @@ declare interface PlaceCitation {
8696
8831
  review_snippets?: Array<PlaceCitation.ReviewSnippet>;
8697
8832
  /**
8698
8833
  * Start of segment of the response that is attributed to this source.
8834
+ *
8835
+ * Index indicates the start of the segment, measured in bytes.
8699
8836
  */
8700
8837
  start_index?: number;
8701
8838
  /**
@@ -8813,7 +8950,7 @@ export declare interface ProductImage {
8813
8950
  productImage?: Image_2;
8814
8951
  }
8815
8952
 
8816
- /** Enum for controlling whether the model can generate images of prominent people (celebrities). */
8953
+ /** 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. */
8817
8954
  export declare enum ProminentPeople {
8818
8955
  /**
8819
8956
  * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
@@ -9090,12 +9227,14 @@ export declare class ReplayResponse {
9090
9227
  sdkResponseSegments?: Record<string, unknown>[];
9091
9228
  }
9092
9229
 
9093
- /** ReplicatedVoiceConfig is used to configure replicated voice. */
9230
+ /** The configuration for the replicated voice to use. */
9094
9231
  export declare interface ReplicatedVoiceConfig {
9095
- /** The mime type of the replicated voice.
9232
+ /** The mimetype of the voice sample. The only currently supported
9233
+ value is `audio/wav`. This represents 16-bit signed little-endian wav
9234
+ data, with a 24kHz sampling rate.
9096
9235
  */
9097
9236
  mimeType?: string;
9098
- /** The sample audio of the replicated voice.
9237
+ /** The sample of the custom voice.
9099
9238
 
9100
9239
  * @remarks Encoded as base64 string. */
9101
9240
  voiceSampleAudio?: string;
@@ -9339,7 +9478,7 @@ export declare interface Schema {
9339
9478
  anyOf?: Schema[];
9340
9479
  /** Optional. Default value to use if the field is not specified. */
9341
9480
  default?: unknown;
9342
- /** Optional. Description of the schema. */
9481
+ /** 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. */
9343
9482
  description?: string;
9344
9483
  /** 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"]}` */
9345
9484
  enum?: string[];
@@ -9399,12 +9538,11 @@ export declare interface SearchEntryPoint {
9399
9538
  sdkBlob?: string;
9400
9539
  }
9401
9540
 
9402
- /** Tool to support computer use. */
9541
+ /** Different types of search that can be enabled on the GoogleSearch tool. */
9403
9542
  export declare interface SearchTypes {
9404
- /** Setting this field enables web search. Only text results are
9405
- returned. */
9543
+ /** Optional. Setting this field enables web search. Only text results are returned. */
9406
9544
  webSearch?: WebSearch;
9407
- /** Setting this field enables image search. Image bytes are returned. */
9545
+ /** Optional. Setting this field enables image search. Image bytes are returned. */
9408
9546
  imageSearch?: ImageSearch;
9409
9547
  }
9410
9548
 
@@ -9517,6 +9655,26 @@ export declare interface SendMessageParameters {
9517
9655
  config?: GenerateContentConfig;
9518
9656
  }
9519
9657
 
9658
+ /** Pricing and performance service tier. */
9659
+ export declare enum ServiceTier {
9660
+ /**
9661
+ * Default service tier, which is standard.
9662
+ */
9663
+ SERVICE_TIER_UNSPECIFIED = "SERVICE_TIER_UNSPECIFIED",
9664
+ /**
9665
+ * Flex service tier.
9666
+ */
9667
+ SERVICE_TIER_FLEX = "SERVICE_TIER_FLEX",
9668
+ /**
9669
+ * Standard service tier.
9670
+ */
9671
+ SERVICE_TIER_STANDARD = "SERVICE_TIER_STANDARD",
9672
+ /**
9673
+ * Priority service tier.
9674
+ */
9675
+ SERVICE_TIER_PRIORITY = "SERVICE_TIER_PRIORITY"
9676
+ }
9677
+
9520
9678
  /**
9521
9679
  Represents a connection to the API.
9522
9680
 
@@ -9706,8 +9864,9 @@ export declare interface SpeakerVoiceConfig {
9706
9864
  voiceConfig?: VoiceConfig;
9707
9865
  }
9708
9866
 
9867
+ /** Config for speech generation and transcription. */
9709
9868
  export declare interface SpeechConfig {
9710
- /** Configuration for the voice of the response. */
9869
+ /** The configuration in case of single-voice output. */
9711
9870
  voiceConfig?: VoiceConfig;
9712
9871
  /** Optional. The language code (ISO 639-1) for the speech synthesis. */
9713
9872
  languageCode?: string;
@@ -9976,7 +10135,7 @@ export declare interface TestTableItem {
9976
10135
  */
9977
10136
  declare interface TextContent {
9978
10137
  /**
9979
- * The text content.
10138
+ * Required. The text content.
9980
10139
  */
9981
10140
  text: string;
9982
10141
  type: 'text';
@@ -10004,6 +10163,10 @@ export declare enum ThinkingLevel {
10004
10163
  * Unspecified thinking level.
10005
10164
  */
10006
10165
  THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
10166
+ /**
10167
+ * MINIMAL thinking level.
10168
+ */
10169
+ MINIMAL = "MINIMAL",
10007
10170
  /**
10008
10171
  * Low thinking level.
10009
10172
  */
@@ -10015,11 +10178,7 @@ export declare enum ThinkingLevel {
10015
10178
  /**
10016
10179
  * High thinking level.
10017
10180
  */
10018
- HIGH = "HIGH",
10019
- /**
10020
- * MINIMAL thinking level.
10021
- */
10022
- MINIMAL = "MINIMAL"
10181
+ HIGH = "HIGH"
10023
10182
  }
10024
10183
 
10025
10184
  declare type ThinkingLevel_2 = 'minimal' | 'low' | 'medium' | 'high';
@@ -10147,9 +10306,9 @@ export declare interface Tool {
10147
10306
  computer. If enabled, it automatically populates computer-use specific
10148
10307
  Function Declarations. */
10149
10308
  computerUse?: ComputerUse;
10150
- /** Optional. Tool to retrieve knowledge from the File Search Stores. */
10309
+ /** Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora. This field is not supported in Vertex AI. */
10151
10310
  fileSearch?: FileSearch;
10152
- /** Enables the model to execute Google Search as part of generation. */
10311
+ /** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
10153
10312
  googleSearch?: GoogleSearch;
10154
10313
  /** Optional. Tool that allows grounding the model's response with
10155
10314
  geospatial context related to the user's query. */
@@ -10173,19 +10332,9 @@ export declare interface Tool {
10173
10332
  /**
10174
10333
  * A tool that can be used by the model.
10175
10334
  */
10176
- 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;
10335
+ 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;
10177
10336
 
10178
10337
  declare namespace Tool_2 {
10179
- /**
10180
- * A tool that can be used by the model to search Google.
10181
- */
10182
- interface GoogleSearch {
10183
- type: 'google_search';
10184
- /**
10185
- * The types of search grounding to enable.
10186
- */
10187
- search_types?: Array<'web_search' | 'image_search'>;
10188
- }
10189
10338
  /**
10190
10339
  * A tool that can be used by the model to execute code.
10191
10340
  */
@@ -10237,6 +10386,16 @@ declare namespace Tool_2 {
10237
10386
  */
10238
10387
  url?: string;
10239
10388
  }
10389
+ /**
10390
+ * A tool that can be used by the model to search Google.
10391
+ */
10392
+ interface GoogleSearch {
10393
+ type: 'google_search';
10394
+ /**
10395
+ * The types of search grounding to enable.
10396
+ */
10397
+ search_types?: Array<'web_search' | 'image_search'>;
10398
+ }
10240
10399
  /**
10241
10400
  * A tool that can be used by the model to search files.
10242
10401
  */
@@ -10259,6 +10418,7 @@ declare namespace Tool_2 {
10259
10418
  * A tool that can be used by the model to call Google Maps.
10260
10419
  */
10261
10420
  interface GoogleMaps {
10421
+ type: 'google_maps';
10262
10422
  /**
10263
10423
  * Whether to return a widget context token in the tool call result of the
10264
10424
  * response.
@@ -10272,7 +10432,6 @@ declare namespace Tool_2 {
10272
10432
  * The longitude of the user's location.
10273
10433
  */
10274
10434
  longitude?: number;
10275
- type?: 'google_maps';
10276
10435
  }
10277
10436
  }
10278
10437
 
@@ -10400,11 +10559,9 @@ export declare enum TrafficType {
10400
10559
 
10401
10560
  /** Audio transcription in Server Conent. */
10402
10561
  export declare interface Transcription {
10403
- /** Transcription text.
10404
- */
10562
+ /** Optional. Transcription text. */
10405
10563
  text?: string;
10406
- /** The bool indicates the end of the transcription.
10407
- */
10564
+ /** Optional. The bool indicates the end of the transcription. */
10408
10565
  finished?: boolean;
10409
10566
  }
10410
10567
 
@@ -10542,6 +10699,18 @@ export declare interface TuningJob {
10542
10699
  tuningJobState?: TuningJobState;
10543
10700
  /** Tuning Spec for Veo Tuning. */
10544
10701
  veoTuningSpec?: VeoTuningSpec;
10702
+ /** Optional. Spec for creating a distillation dataset. */
10703
+ distillationSamplingSpec?: DistillationSamplingSpec;
10704
+ /** Output only. Tuning Job metadata. */
10705
+ tuningJobMetadata?: TuningJobMetadata;
10706
+ }
10707
+
10708
+ /** Tuning job metadata. This data type is not supported in Gemini API. */
10709
+ export declare interface TuningJobMetadata {
10710
+ /** Output only. The number of epochs that have been completed. */
10711
+ completedEpochCount?: string;
10712
+ /** Output only. The number of steps that have been completed. Set for Multi-Step RL. */
10713
+ completedStepCount?: string;
10545
10714
  }
10546
10715
 
10547
10716
  /** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
@@ -10702,10 +10871,7 @@ export declare interface TuningValidationDataset {
10702
10871
  }
10703
10872
 
10704
10873
  declare interface Turn {
10705
- /**
10706
- * The content of the turn.
10707
- */
10708
- content?: string | Array<Content_2>;
10874
+ content?: Array<Content_2> | string;
10709
10875
  /**
10710
10876
  * The originator of this turn. Must be user for input or model for
10711
10877
  * model output.
@@ -10746,7 +10912,11 @@ export declare enum TurnCoverage {
10746
10912
  /**
10747
10913
  * The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
10748
10914
  */
10749
- TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
10915
+ TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT",
10916
+ /**
10917
+ * Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
10918
+ */
10919
+ TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
10750
10920
  }
10751
10921
 
10752
10922
  /** Data type of the schema field. */
@@ -10802,15 +10972,17 @@ declare namespace types {
10802
10972
  Outcome,
10803
10973
  FunctionResponseScheduling,
10804
10974
  Type,
10805
- PhishBlockThreshold,
10975
+ Environment,
10806
10976
  AuthType,
10807
10977
  HttpElementLocation,
10808
10978
  ApiSpec,
10979
+ PhishBlockThreshold,
10809
10980
  Behavior,
10810
10981
  DynamicRetrievalConfigMode,
10811
10982
  FunctionCallingConfigMode,
10812
10983
  ThinkingLevel,
10813
10984
  PersonGeneration,
10985
+ ProminentPeople,
10814
10986
  HarmCategory,
10815
10987
  HarmBlockMethod,
10816
10988
  HarmBlockThreshold,
@@ -10821,6 +10993,7 @@ declare namespace types {
10821
10993
  BlockedReason,
10822
10994
  TrafficType,
10823
10995
  Modality,
10996
+ ModelStage,
10824
10997
  MediaResolution,
10825
10998
  TuningMode,
10826
10999
  AdapterSize,
@@ -10829,12 +11002,12 @@ declare namespace types {
10829
11002
  AggregationMetric,
10830
11003
  PairwiseChoice,
10831
11004
  TuningTask,
11005
+ DocumentState,
10832
11006
  PartMediaResolutionLevel,
10833
11007
  ToolType,
10834
11008
  ResourceScope,
11009
+ ServiceTier,
10835
11010
  FeatureSelectionPreference,
10836
- Environment,
10837
- ProminentPeople,
10838
11011
  EmbeddingApiType,
10839
11012
  SafetyFilterLevel,
10840
11013
  ImagePromptLanguage,
@@ -10847,7 +11020,6 @@ declare namespace types {
10847
11020
  VideoGenerationMaskMode,
10848
11021
  VideoCompressionQuality,
10849
11022
  TuningMethod,
10850
- DocumentState,
10851
11023
  FileState,
10852
11024
  FileSource,
10853
11025
  TurnCompleteReason,
@@ -10882,12 +11054,6 @@ declare namespace types {
10882
11054
  Schema,
10883
11055
  ModelSelectionConfig,
10884
11056
  ComputerUse,
10885
- FileSearch,
10886
- WebSearch,
10887
- ImageSearch,
10888
- SearchTypes,
10889
- Interval,
10890
- GoogleSearch,
10891
11057
  ApiKeyConfig,
10892
11058
  AuthConfigGoogleServiceAccountConfig,
10893
11059
  AuthConfigHttpBasicAuthConfig,
@@ -10911,6 +11077,12 @@ declare namespace types {
10911
11077
  RagRetrievalConfig,
10912
11078
  VertexRagStore,
10913
11079
  Retrieval,
11080
+ FileSearch,
11081
+ WebSearch,
11082
+ ImageSearch,
11083
+ SearchTypes,
11084
+ Interval,
11085
+ GoogleSearch,
10914
11086
  ToolCodeExecution,
10915
11087
  EnterpriseWebSearch,
10916
11088
  FunctionDeclaration,
@@ -10947,13 +11119,16 @@ declare namespace types {
10947
11119
  GoogleTypeDate,
10948
11120
  Citation,
10949
11121
  CitationMetadata,
10950
- GroundingChunkImage,
10951
11122
  GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
10952
11123
  GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
10953
11124
  GroundingChunkMapsPlaceAnswerSources,
11125
+ GroundingChunkMapsRoute,
10954
11126
  GroundingChunkMaps,
11127
+ GroundingChunkImage,
10955
11128
  RagChunkPageSpan,
10956
11129
  RagChunk,
11130
+ GroundingChunkStringList,
11131
+ GroundingChunkCustomMetadata,
10957
11132
  GroundingChunkRetrievedContext,
10958
11133
  GroundingChunkWeb,
10959
11134
  GroundingChunk,
@@ -10973,6 +11148,7 @@ declare namespace types {
10973
11148
  GenerateContentResponsePromptFeedback,
10974
11149
  ModalityTokenCount,
10975
11150
  GenerateContentResponseUsageMetadata,
11151
+ ModelStatus,
10976
11152
  GenerateContentResponse,
10977
11153
  ReferenceImage,
10978
11154
  EditImageParameters,
@@ -11083,6 +11259,8 @@ declare namespace types {
11083
11259
  FullFineTuningSpec,
11084
11260
  VeoHyperParameters,
11085
11261
  VeoTuningSpec,
11262
+ DistillationSamplingSpec,
11263
+ TuningJobMetadata,
11086
11264
  TuningJob,
11087
11265
  ListTuningJobsConfig,
11088
11266
  ListTuningJobsParameters,
@@ -11456,7 +11634,6 @@ export declare class UploadToFileSearchStoreOperation implements Operation<Uploa
11456
11634
  response?: UploadToFileSearchStoreResponse;
11457
11635
  /**
11458
11636
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
11459
- * @internal
11460
11637
  */
11461
11638
  _fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse>;
11462
11639
  /** The full HTTP response. */
@@ -11569,6 +11746,8 @@ declare interface URLCitation {
11569
11746
  end_index?: number;
11570
11747
  /**
11571
11748
  * Start of segment of the response that is attributed to this source.
11749
+ *
11750
+ * Index indicates the start of the segment, measured in bytes.
11572
11751
  */
11573
11752
  start_index?: number;
11574
11753
  /**
@@ -11600,11 +11779,11 @@ declare interface URLContextCallArguments {
11600
11779
  */
11601
11780
  declare interface URLContextCallContent {
11602
11781
  /**
11603
- * A unique ID for this specific tool call.
11782
+ * Required. A unique ID for this specific tool call.
11604
11783
  */
11605
11784
  id: string;
11606
11785
  /**
11607
- * The arguments to pass to the URL context.
11786
+ * Required. The arguments to pass to the URL context.
11608
11787
  */
11609
11788
  arguments: URLContextCallArguments;
11610
11789
  type: 'url_context_call';
@@ -11639,11 +11818,11 @@ declare interface URLContextResult {
11639
11818
  */
11640
11819
  declare interface URLContextResultContent {
11641
11820
  /**
11642
- * ID to match the ID from the url context call block.
11821
+ * Required. ID to match the ID from the function call block.
11643
11822
  */
11644
11823
  call_id: string;
11645
11824
  /**
11646
- * The results of the URL context.
11825
+ * Required. The results of the URL context.
11647
11826
  */
11648
11827
  result: Array<URLContextResult>;
11649
11828
  type: 'url_context_result';
@@ -12048,16 +12227,17 @@ export declare enum VoiceActivityType {
12048
12227
  ACTIVITY_END = "ACTIVITY_END"
12049
12228
  }
12050
12229
 
12230
+ /** The configuration for the voice to use. */
12051
12231
  export declare interface VoiceConfig {
12052
- /** If true, the model will use a replicated voice for the response. */
12232
+ /** The configuration for a replicated voice, which is a clone of a
12233
+ user's voice that can be used for speech synthesis. If this is unset, a
12234
+ default voice is used. */
12053
12235
  replicatedVoiceConfig?: ReplicatedVoiceConfig;
12054
12236
  /** The configuration for a prebuilt voice. */
12055
12237
  prebuiltVoiceConfig?: PrebuiltVoiceConfig;
12056
12238
  }
12057
12239
 
12058
- /** Standard web search for grounding and related configurations.
12059
-
12060
- Only text results are returned. */
12240
+ /** Standard web search for grounding and related configurations. Only text results are returned. */
12061
12241
  export declare interface WebSearch {
12062
12242
  }
12063
12243