@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.
- package/dist/genai.d.ts +423 -243
- package/dist/index.cjs +390 -77
- package/dist/index.mjs +391 -78
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +390 -77
- package/dist/node/index.mjs +391 -78
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +423 -243
- package/dist/tokenizer/node.cjs +140 -68
- package/dist/tokenizer/node.d.ts +31 -27
- package/dist/tokenizer/node.mjs +140 -68
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +146 -70
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +232 -84
- package/dist/vertex_internal/index.js +146 -70
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +391 -78
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +423 -243
- package/package.json +1 -1
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 |
|
|
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 |
|
|
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-
|
|
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
|
|
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 |
|
|
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
|
-
|
|
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
|
|
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
|
|
1907
|
+
interface CodeExecutionCall {
|
|
1896
1908
|
/**
|
|
1897
|
-
*
|
|
1909
|
+
* Required. A unique ID for this specific tool call.
|
|
1898
1910
|
*/
|
|
1899
|
-
|
|
1911
|
+
id: string;
|
|
1900
1912
|
/**
|
|
1901
|
-
*
|
|
1913
|
+
* The arguments to pass to the code execution.
|
|
1902
1914
|
*/
|
|
1903
|
-
|
|
1904
|
-
type: '
|
|
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
|
-
|
|
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
|
|
1928
|
+
* The arguments to pass to the URL context.
|
|
1924
1929
|
*/
|
|
1925
|
-
arguments: InteractionsAPI.
|
|
1926
|
-
type: '
|
|
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
|
|
1937
|
+
interface GoogleSearchCall {
|
|
1933
1938
|
/**
|
|
1934
|
-
*
|
|
1939
|
+
* Required. A unique ID for this specific tool call.
|
|
1935
1940
|
*/
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
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
|
|
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
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
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
|
|
1968
|
+
interface FileSearchCall {
|
|
1961
1969
|
/**
|
|
1962
|
-
*
|
|
1970
|
+
* Required. A unique ID for this specific tool call.
|
|
1963
1971
|
*/
|
|
1964
|
-
|
|
1965
|
-
|
|
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
|
|
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
|
|
1986
|
+
* The arguments to pass to the Google Maps tool.
|
|
1980
1987
|
*/
|
|
1981
|
-
arguments
|
|
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
|
|
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.
|
|
1994
|
-
type: '
|
|
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
|
|
2008
|
+
interface CodeExecutionResult {
|
|
2002
2009
|
/**
|
|
2003
|
-
*
|
|
2010
|
+
* Required. ID to match the ID from the function call block.
|
|
2004
2011
|
*/
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
2035
|
-
interface Items {
|
|
2036
|
-
items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
interface FileSearchCall {
|
|
2034
|
+
interface GoogleSearchResult {
|
|
2040
2035
|
/**
|
|
2041
|
-
*
|
|
2036
|
+
* Required. ID to match the ID from the function call block.
|
|
2042
2037
|
*/
|
|
2043
|
-
|
|
2044
|
-
|
|
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
|
|
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
|
-
|
|
2056
|
-
|
|
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
|
|
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
|
-
*
|
|
2063
|
+
* Required. ID to match the ID from the function call block.
|
|
2070
2064
|
*/
|
|
2071
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2944
|
-
Example: fileSearchStores/file-search-store-foo/documents/documents-bar */
|
|
2969
|
+
/** Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/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
|
-
/**
|
|
2973
|
+
/** Output only. Current state of the `Document`. */
|
|
2949
2974
|
state?: DocumentState;
|
|
2950
|
-
/** The size of the Document
|
|
2975
|
+
/** Output only. The size of raw bytes ingested into the Document. */
|
|
2951
2976
|
sizeBytes?: string;
|
|
2952
|
-
/** The
|
|
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
|
-
/**
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
3754
|
+
/** Optional. The number of semantic retrieval chunks to retrieve. */
|
|
3716
3755
|
topK?: number;
|
|
3717
|
-
/** Metadata filter to apply to the
|
|
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
|
|
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
|
|
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
|
|
4995
|
+
* The tool choice configuration.
|
|
4940
4996
|
*/
|
|
4941
4997
|
tool_choice?: ToolChoiceType | ToolChoiceConfig;
|
|
4942
4998
|
/**
|
|
@@ -5281,7 +5337,7 @@ declare interface GoogleMapsCallArguments {
|
|
|
5281
5337
|
*/
|
|
5282
5338
|
declare interface GoogleMapsCallContent {
|
|
5283
5339
|
/**
|
|
5284
|
-
* A unique ID for this specific tool call.
|
|
5340
|
+
* Required. A unique ID for this specific tool call.
|
|
5285
5341
|
*/
|
|
5286
5342
|
id: string;
|
|
5287
5343
|
type: 'google_maps_call';
|
|
@@ -5356,11 +5412,11 @@ declare namespace GoogleMapsResult {
|
|
|
5356
5412
|
*/
|
|
5357
5413
|
declare interface GoogleMapsResultContent {
|
|
5358
5414
|
/**
|
|
5359
|
-
* ID to match the ID from the
|
|
5415
|
+
* Required. ID to match the ID from the function call block.
|
|
5360
5416
|
*/
|
|
5361
5417
|
call_id: string;
|
|
5362
5418
|
/**
|
|
5363
|
-
* The results of the Google Maps.
|
|
5419
|
+
* Required. The results of the Google Maps.
|
|
5364
5420
|
*/
|
|
5365
5421
|
result: Array<GoogleMapsResult>;
|
|
5366
5422
|
type: 'google_maps_result';
|
|
@@ -5380,9 +5436,9 @@ export declare interface GoogleRpcStatus {
|
|
|
5380
5436
|
message?: string;
|
|
5381
5437
|
}
|
|
5382
5438
|
|
|
5383
|
-
/** Tool to support
|
|
5439
|
+
/** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
5384
5440
|
export declare interface GoogleSearch {
|
|
5385
|
-
/**
|
|
5441
|
+
/** Optional. The set of search types to enable. If not set, web search is enabled by default. */
|
|
5386
5442
|
searchTypes?: SearchTypes;
|
|
5387
5443
|
/** 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
5444
|
blockingConfidence?: PhishBlockThreshold;
|
|
@@ -5407,11 +5463,11 @@ declare interface GoogleSearchCallArguments {
|
|
|
5407
5463
|
*/
|
|
5408
5464
|
declare interface GoogleSearchCallContent {
|
|
5409
5465
|
/**
|
|
5410
|
-
* A unique ID for this specific tool call.
|
|
5466
|
+
* Required. A unique ID for this specific tool call.
|
|
5411
5467
|
*/
|
|
5412
5468
|
id: string;
|
|
5413
5469
|
/**
|
|
5414
|
-
* The arguments to pass to Google Search.
|
|
5470
|
+
* Required. The arguments to pass to Google Search.
|
|
5415
5471
|
*/
|
|
5416
5472
|
arguments: GoogleSearchCallArguments;
|
|
5417
5473
|
type: 'google_search_call';
|
|
@@ -5440,11 +5496,11 @@ declare interface GoogleSearchResult {
|
|
|
5440
5496
|
*/
|
|
5441
5497
|
declare interface GoogleSearchResultContent {
|
|
5442
5498
|
/**
|
|
5443
|
-
* ID to match the ID from the
|
|
5499
|
+
* Required. ID to match the ID from the function call block.
|
|
5444
5500
|
*/
|
|
5445
5501
|
call_id: string;
|
|
5446
5502
|
/**
|
|
5447
|
-
* The results of the Google Search.
|
|
5503
|
+
* Required. The results of the Google Search.
|
|
5448
5504
|
*/
|
|
5449
5505
|
result: Array<GoogleSearchResult>;
|
|
5450
5506
|
type: 'google_search_result';
|
|
@@ -5480,9 +5536,7 @@ export declare interface GoogleTypeDate {
|
|
|
5480
5536
|
is enabled, the model returns a `GroundingChunk` that contains a reference to
|
|
5481
5537
|
the source of the information. */
|
|
5482
5538
|
export declare interface GroundingChunk {
|
|
5483
|
-
/** A grounding chunk from an image search result. See the `Image`
|
|
5484
|
-
message for details.
|
|
5485
|
-
*/
|
|
5539
|
+
/** A grounding chunk from an image search result. See the `Image` message for details. */
|
|
5486
5540
|
image?: GroundingChunkImage;
|
|
5487
5541
|
/** A `Maps` chunk is a piece of evidence that comes from Google Maps.
|
|
5488
5542
|
|
|
@@ -5490,17 +5544,25 @@ export declare interface GroundingChunk {
|
|
|
5490
5544
|
reviews. This is used to provide the user with rich, location-based
|
|
5491
5545
|
information. */
|
|
5492
5546
|
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
|
|
5547
|
+
/** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details */
|
|
5494
5548
|
retrievedContext?: GroundingChunkRetrievedContext;
|
|
5495
5549
|
/** A grounding chunk from a web page, typically from Google Search. See the `Web` message for details. */
|
|
5496
5550
|
web?: GroundingChunkWeb;
|
|
5497
5551
|
}
|
|
5498
5552
|
|
|
5499
|
-
/**
|
|
5553
|
+
/** User provided metadata about the GroundingFact. This data type is not supported in Vertex AI. */
|
|
5554
|
+
export declare interface GroundingChunkCustomMetadata {
|
|
5555
|
+
/** The key of the metadata. */
|
|
5556
|
+
key?: string;
|
|
5557
|
+
/** Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. */
|
|
5558
|
+
numericValue?: number;
|
|
5559
|
+
/** Optional. A list of string values for the metadata. */
|
|
5560
|
+
stringListValue?: GroundingChunkStringList;
|
|
5561
|
+
/** Optional. The string value of the metadata. */
|
|
5562
|
+
stringValue?: string;
|
|
5563
|
+
}
|
|
5500
5564
|
|
|
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. */
|
|
5565
|
+
/** 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
5566
|
export declare interface GroundingChunkImage {
|
|
5505
5567
|
/** The URI of the image search result page. */
|
|
5506
5568
|
sourceUri?: string;
|
|
@@ -5532,6 +5594,8 @@ export declare interface GroundingChunkMaps {
|
|
|
5532
5594
|
title?: string;
|
|
5533
5595
|
/** The URI of the place. */
|
|
5534
5596
|
uri?: string;
|
|
5597
|
+
/** Output only. Route information. */
|
|
5598
|
+
route?: GroundingChunkMapsRoute;
|
|
5535
5599
|
}
|
|
5536
5600
|
|
|
5537
5601
|
/** The sources that were used to generate the place answer.
|
|
@@ -5575,11 +5639,21 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
|
5575
5639
|
title?: string;
|
|
5576
5640
|
}
|
|
5577
5641
|
|
|
5578
|
-
/**
|
|
5642
|
+
/** Route information from Google Maps. This data type is not supported in Gemini API. */
|
|
5643
|
+
export declare interface GroundingChunkMapsRoute {
|
|
5644
|
+
/** The total distance of the route, in meters. */
|
|
5645
|
+
distanceMeters?: number;
|
|
5646
|
+
/** The total duration of the route. */
|
|
5647
|
+
duration?: string;
|
|
5648
|
+
/** An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm */
|
|
5649
|
+
encodedPolyline?: string;
|
|
5650
|
+
}
|
|
5651
|
+
|
|
5652
|
+
/** 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
5653
|
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}`. */
|
|
5654
|
+
/** 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
5655
|
documentName?: string;
|
|
5582
|
-
/** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. */
|
|
5656
|
+
/** 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
5657
|
ragChunk?: RagChunk;
|
|
5584
5658
|
/** The content of the retrieved data source. */
|
|
5585
5659
|
text?: string;
|
|
@@ -5587,6 +5661,16 @@ export declare interface GroundingChunkRetrievedContext {
|
|
|
5587
5661
|
title?: string;
|
|
5588
5662
|
/** The URI of the retrieved data source. */
|
|
5589
5663
|
uri?: string;
|
|
5664
|
+
/** Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI. */
|
|
5665
|
+
customMetadata?: GroundingChunkCustomMetadata[];
|
|
5666
|
+
/** Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`. This field is not supported in Vertex AI. */
|
|
5667
|
+
fileSearchStore?: string;
|
|
5668
|
+
}
|
|
5669
|
+
|
|
5670
|
+
/** A list of string values. This data type is not supported in Vertex AI. */
|
|
5671
|
+
export declare interface GroundingChunkStringList {
|
|
5672
|
+
/** The string values of the list. */
|
|
5673
|
+
values?: string[];
|
|
5590
5674
|
}
|
|
5591
5675
|
|
|
5592
5676
|
/** 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 +5685,7 @@ export declare interface GroundingChunkWeb {
|
|
|
5601
5685
|
|
|
5602
5686
|
/** Information for various kinds of grounding. */
|
|
5603
5687
|
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
|
-
*/
|
|
5688
|
+
/** 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
5689
|
imageSearchQueries?: string[];
|
|
5609
5690
|
/** A list of supporting references retrieved from the grounding
|
|
5610
5691
|
source. This field is populated when the grounding source is Google
|
|
@@ -5620,7 +5701,7 @@ export declare interface GroundingMetadata {
|
|
|
5620
5701
|
searchEntryPoint?: SearchEntryPoint;
|
|
5621
5702
|
/** Web search queries for the following-up web search. */
|
|
5622
5703
|
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.
|
|
5704
|
+
/** 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
5705
|
googleMapsWidgetContextToken?: string;
|
|
5625
5706
|
/** 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
5707
|
retrievalQueries?: string[];
|
|
@@ -5650,6 +5731,8 @@ export declare interface GroundingSupport {
|
|
|
5650
5731
|
groundingChunkIndices?: number[];
|
|
5651
5732
|
/** Segment of the content this support belongs to. */
|
|
5652
5733
|
segment?: Segment;
|
|
5734
|
+
/** Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message. */
|
|
5735
|
+
renderedParts?: number[];
|
|
5653
5736
|
}
|
|
5654
5737
|
|
|
5655
5738
|
/** 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 +6026,7 @@ export declare interface ImageConfig {
|
|
|
5943
6026
|
/** Controls the generation of people. Supported values are:
|
|
5944
6027
|
ALLOW_ALL, ALLOW_ADULT, ALLOW_NONE. */
|
|
5945
6028
|
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. */
|
|
6029
|
+
/** 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
6030
|
prominentPeople?: ProminentPeople;
|
|
5952
6031
|
/** MIME type of the generated image. This field is not
|
|
5953
6032
|
supported in Gemini API. */
|
|
@@ -5955,7 +6034,7 @@ export declare interface ImageConfig {
|
|
|
5955
6034
|
/** Compression quality of the generated image (for
|
|
5956
6035
|
``image/jpeg`` only). This field is not supported in Gemini API. */
|
|
5957
6036
|
outputCompressionQuality?: number;
|
|
5958
|
-
/** Optional. The image output format for generated images. */
|
|
6037
|
+
/** Optional. The image output format for generated images. This field is not supported in Gemini API. */
|
|
5959
6038
|
imageOutputOptions?: ImageConfigImageOutputOptions;
|
|
5960
6039
|
}
|
|
5961
6040
|
|
|
@@ -5987,7 +6066,7 @@ declare interface ImageContent {
|
|
|
5987
6066
|
/**
|
|
5988
6067
|
* The mime type of the image.
|
|
5989
6068
|
*/
|
|
5990
|
-
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
|
|
6069
|
+
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
|
|
5991
6070
|
/**
|
|
5992
6071
|
* The resolution of the media.
|
|
5993
6072
|
*/
|
|
@@ -6069,7 +6148,6 @@ export declare class ImportFileOperation implements Operation<ImportFileResponse
|
|
|
6069
6148
|
response?: ImportFileResponse;
|
|
6070
6149
|
/**
|
|
6071
6150
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
6072
|
-
* @internal
|
|
6073
6151
|
*/
|
|
6074
6152
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<ImportFileResponse>;
|
|
6075
6153
|
/** The full HTTP response. */
|
|
@@ -6098,12 +6176,12 @@ export declare class ImportFileResponse {
|
|
|
6098
6176
|
|
|
6099
6177
|
/** Config for `inlined_embedding_responses` parameter. */
|
|
6100
6178
|
export declare class InlinedEmbedContentResponse {
|
|
6101
|
-
/** The response to the request.
|
|
6102
|
-
*/
|
|
6179
|
+
/** Output only. The response to the request. */
|
|
6103
6180
|
response?: SingleEmbedContentResponse;
|
|
6104
|
-
/** The error encountered while processing the request.
|
|
6105
|
-
*/
|
|
6181
|
+
/** Output only. The error encountered while processing the request. */
|
|
6106
6182
|
error?: JobError;
|
|
6183
|
+
/** Output only. The metadata associated with the request. */
|
|
6184
|
+
metadata?: Record<string, unknown>;
|
|
6107
6185
|
}
|
|
6108
6186
|
|
|
6109
6187
|
/** Config for inlined request. */
|
|
@@ -6138,20 +6216,20 @@ export declare class InlinedResponse {
|
|
|
6138
6216
|
*/
|
|
6139
6217
|
declare interface Interaction {
|
|
6140
6218
|
/**
|
|
6141
|
-
* Output only. A unique identifier for the interaction completion.
|
|
6219
|
+
* Required. Output only. A unique identifier for the interaction completion.
|
|
6142
6220
|
*/
|
|
6143
6221
|
id: string;
|
|
6144
6222
|
/**
|
|
6145
|
-
* Output only. The time at which the response was created in ISO 8601 format
|
|
6223
|
+
* Required. Output only. The time at which the response was created in ISO 8601 format
|
|
6146
6224
|
* (YYYY-MM-DDThh:mm:ssZ).
|
|
6147
6225
|
*/
|
|
6148
6226
|
created: string;
|
|
6149
6227
|
/**
|
|
6150
|
-
* Output only. The status of the interaction.
|
|
6228
|
+
* Required. Output only. The status of the interaction.
|
|
6151
6229
|
*/
|
|
6152
6230
|
status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
|
|
6153
6231
|
/**
|
|
6154
|
-
* Output only. The time at which the response was last updated in ISO 8601 format
|
|
6232
|
+
* Required. Output only. The time at which the response was last updated in ISO 8601 format
|
|
6155
6233
|
* (YYYY-MM-DDThh:mm:ssZ).
|
|
6156
6234
|
*/
|
|
6157
6235
|
updated: string;
|
|
@@ -6166,7 +6244,7 @@ declare interface Interaction {
|
|
|
6166
6244
|
/**
|
|
6167
6245
|
* The input for the interaction.
|
|
6168
6246
|
*/
|
|
6169
|
-
input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent |
|
|
6247
|
+
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
6248
|
/**
|
|
6171
6249
|
* The name of the `Model` used for generating the interaction.
|
|
6172
6250
|
*/
|
|
@@ -6196,6 +6274,10 @@ declare interface Interaction {
|
|
|
6196
6274
|
* Output only. The role of the interaction.
|
|
6197
6275
|
*/
|
|
6198
6276
|
role?: string;
|
|
6277
|
+
/**
|
|
6278
|
+
* The service tier for the interaction.
|
|
6279
|
+
*/
|
|
6280
|
+
service_tier?: 'flex' | 'standard' | 'priority';
|
|
6199
6281
|
/**
|
|
6200
6282
|
* System instruction for the interaction.
|
|
6201
6283
|
*/
|
|
@@ -6220,12 +6302,13 @@ declare interface InteractionCancelParams {
|
|
|
6220
6302
|
declare interface InteractionCompleteEvent {
|
|
6221
6303
|
event_type: 'interaction.complete';
|
|
6222
6304
|
/**
|
|
6223
|
-
* The completed interaction with empty outputs to reduce the payload size.
|
|
6305
|
+
* Required. The completed interaction with empty outputs to reduce the payload size.
|
|
6224
6306
|
* Use the preceding ContentDelta events for the actual output.
|
|
6225
6307
|
*/
|
|
6226
6308
|
interaction: Interaction;
|
|
6227
6309
|
/**
|
|
6228
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6310
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6311
|
+
* this event.
|
|
6229
6312
|
*/
|
|
6230
6313
|
event_id?: string;
|
|
6231
6314
|
}
|
|
@@ -6373,7 +6456,8 @@ declare interface InteractionStartEvent {
|
|
|
6373
6456
|
*/
|
|
6374
6457
|
interaction: Interaction;
|
|
6375
6458
|
/**
|
|
6376
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6459
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6460
|
+
* this event.
|
|
6377
6461
|
*/
|
|
6378
6462
|
event_id?: string;
|
|
6379
6463
|
}
|
|
@@ -6383,7 +6467,8 @@ declare interface InteractionStatusUpdate {
|
|
|
6383
6467
|
interaction_id: string;
|
|
6384
6468
|
status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
|
|
6385
6469
|
/**
|
|
6386
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6470
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6471
|
+
* this event.
|
|
6387
6472
|
*/
|
|
6388
6473
|
event_id?: string;
|
|
6389
6474
|
}
|
|
@@ -6625,6 +6710,7 @@ export declare interface ListFileSearchStoresParameters {
|
|
|
6625
6710
|
export declare class ListFileSearchStoresResponse {
|
|
6626
6711
|
/** Used to retain the full HTTP response. */
|
|
6627
6712
|
sdkHttpResponse?: HttpResponse;
|
|
6713
|
+
/** 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
6714
|
nextPageToken?: string;
|
|
6629
6715
|
/** The returned file search stores. */
|
|
6630
6716
|
fileSearchStores?: FileSearchStore[];
|
|
@@ -7493,6 +7579,8 @@ export declare interface LogprobsResult {
|
|
|
7493
7579
|
chosenCandidates?: LogprobsResultCandidate[];
|
|
7494
7580
|
/** 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
7581
|
topCandidates?: LogprobsResultTopCandidates[];
|
|
7582
|
+
/** Sum of log probabilities for all tokens. This field is not supported in Vertex AI. */
|
|
7583
|
+
logProbabilitySum?: number;
|
|
7496
7584
|
}
|
|
7497
7585
|
|
|
7498
7586
|
/** A single token and its associated log probability. */
|
|
@@ -7568,21 +7656,21 @@ export declare interface McpServer {
|
|
|
7568
7656
|
*/
|
|
7569
7657
|
declare interface MCPServerToolCallContent {
|
|
7570
7658
|
/**
|
|
7571
|
-
* A unique ID for this specific tool call.
|
|
7659
|
+
* Required. A unique ID for this specific tool call.
|
|
7572
7660
|
*/
|
|
7573
7661
|
id: string;
|
|
7574
7662
|
/**
|
|
7575
|
-
* The JSON object of arguments for the function.
|
|
7663
|
+
* Required. The JSON object of arguments for the function.
|
|
7576
7664
|
*/
|
|
7577
7665
|
arguments: {
|
|
7578
7666
|
[key: string]: unknown;
|
|
7579
7667
|
};
|
|
7580
7668
|
/**
|
|
7581
|
-
* The name of the tool which was called.
|
|
7669
|
+
* Required. The name of the tool which was called.
|
|
7582
7670
|
*/
|
|
7583
7671
|
name: string;
|
|
7584
7672
|
/**
|
|
7585
|
-
* The name of the used MCP server.
|
|
7673
|
+
* Required. The name of the used MCP server.
|
|
7586
7674
|
*/
|
|
7587
7675
|
server_name: string;
|
|
7588
7676
|
type: 'mcp_server_tool_call';
|
|
@@ -7597,7 +7685,7 @@ declare interface MCPServerToolCallContent {
|
|
|
7597
7685
|
*/
|
|
7598
7686
|
declare interface MCPServerToolResultContent {
|
|
7599
7687
|
/**
|
|
7600
|
-
* ID to match the ID from the
|
|
7688
|
+
* Required. ID to match the ID from the function call block.
|
|
7601
7689
|
*/
|
|
7602
7690
|
call_id: string;
|
|
7603
7691
|
/**
|
|
@@ -7773,7 +7861,7 @@ export declare interface Model {
|
|
|
7773
7861
|
/**
|
|
7774
7862
|
* The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
|
|
7775
7863
|
*/
|
|
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 & {});
|
|
7864
|
+
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
7865
|
|
|
7778
7866
|
/** 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
7867
|
export declare interface ModelArmorConfig {
|
|
@@ -8179,6 +8267,52 @@ export declare interface ModelSelectionConfig {
|
|
|
8179
8267
|
featureSelectionPreference?: FeatureSelectionPreference;
|
|
8180
8268
|
}
|
|
8181
8269
|
|
|
8270
|
+
/** The stage of the underlying model. This enum is not supported in Vertex AI. */
|
|
8271
|
+
export declare enum ModelStage {
|
|
8272
|
+
/**
|
|
8273
|
+
* Unspecified model stage.
|
|
8274
|
+
*/
|
|
8275
|
+
MODEL_STAGE_UNSPECIFIED = "MODEL_STAGE_UNSPECIFIED",
|
|
8276
|
+
/**
|
|
8277
|
+
* The underlying model is subject to lots of tunings.
|
|
8278
|
+
*/
|
|
8279
|
+
UNSTABLE_EXPERIMENTAL = "UNSTABLE_EXPERIMENTAL",
|
|
8280
|
+
/**
|
|
8281
|
+
* Models in this stage are for experimental purposes only.
|
|
8282
|
+
*/
|
|
8283
|
+
EXPERIMENTAL = "EXPERIMENTAL",
|
|
8284
|
+
/**
|
|
8285
|
+
* Models in this stage are more mature than experimental models.
|
|
8286
|
+
*/
|
|
8287
|
+
PREVIEW = "PREVIEW",
|
|
8288
|
+
/**
|
|
8289
|
+
* Models in this stage are considered stable and ready for production use.
|
|
8290
|
+
*/
|
|
8291
|
+
STABLE = "STABLE",
|
|
8292
|
+
/**
|
|
8293
|
+
* 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.
|
|
8294
|
+
*/
|
|
8295
|
+
LEGACY = "LEGACY",
|
|
8296
|
+
/**
|
|
8297
|
+
* Models in this stage are deprecated. These models cannot be used.
|
|
8298
|
+
*/
|
|
8299
|
+
DEPRECATED = "DEPRECATED",
|
|
8300
|
+
/**
|
|
8301
|
+
* Models in this stage are retired. These models cannot be used.
|
|
8302
|
+
*/
|
|
8303
|
+
RETIRED = "RETIRED"
|
|
8304
|
+
}
|
|
8305
|
+
|
|
8306
|
+
/** 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. */
|
|
8307
|
+
export declare interface ModelStatus {
|
|
8308
|
+
/** A message explaining the model status. */
|
|
8309
|
+
message?: string;
|
|
8310
|
+
/** The stage of the underlying model. */
|
|
8311
|
+
modelStage?: ModelStage;
|
|
8312
|
+
/** The time at which the model will be retired. */
|
|
8313
|
+
retirementTime?: string;
|
|
8314
|
+
}
|
|
8315
|
+
|
|
8182
8316
|
/** Configuration for a multi-speaker text-to-speech request. */
|
|
8183
8317
|
export declare interface MultiSpeakerVoiceConfig {
|
|
8184
8318
|
/** Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. */
|
|
@@ -8264,7 +8398,6 @@ export declare interface Operation<T> {
|
|
|
8264
8398
|
response?: T;
|
|
8265
8399
|
/**
|
|
8266
8400
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
8267
|
-
* @internal
|
|
8268
8401
|
*/
|
|
8269
8402
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<T>;
|
|
8270
8403
|
}
|
|
@@ -8543,6 +8676,8 @@ export declare interface Part {
|
|
|
8543
8676
|
toolCall?: ToolCall;
|
|
8544
8677
|
/** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
|
|
8545
8678
|
toolResponse?: ToolResponse;
|
|
8679
|
+
/** 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. */
|
|
8680
|
+
partMetadata?: Record<string, unknown>;
|
|
8546
8681
|
}
|
|
8547
8682
|
|
|
8548
8683
|
/** Partial argument value of the function call. This data type is not supported in Gemini API. */
|
|
@@ -8684,6 +8819,8 @@ declare interface PlaceCitation {
|
|
|
8684
8819
|
review_snippets?: Array<PlaceCitation.ReviewSnippet>;
|
|
8685
8820
|
/**
|
|
8686
8821
|
* Start of segment of the response that is attributed to this source.
|
|
8822
|
+
*
|
|
8823
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
8687
8824
|
*/
|
|
8688
8825
|
start_index?: number;
|
|
8689
8826
|
/**
|
|
@@ -8801,7 +8938,7 @@ export declare interface ProductImage {
|
|
|
8801
8938
|
productImage?: Image_2;
|
|
8802
8939
|
}
|
|
8803
8940
|
|
|
8804
|
-
/**
|
|
8941
|
+
/** 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
8942
|
export declare enum ProminentPeople {
|
|
8806
8943
|
/**
|
|
8807
8944
|
* Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
|
|
@@ -9078,12 +9215,14 @@ export declare class ReplayResponse {
|
|
|
9078
9215
|
sdkResponseSegments?: Record<string, unknown>[];
|
|
9079
9216
|
}
|
|
9080
9217
|
|
|
9081
|
-
/**
|
|
9218
|
+
/** The configuration for the replicated voice to use. */
|
|
9082
9219
|
export declare interface ReplicatedVoiceConfig {
|
|
9083
|
-
/** The
|
|
9220
|
+
/** The mimetype of the voice sample. The only currently supported
|
|
9221
|
+
value is `audio/wav`. This represents 16-bit signed little-endian wav
|
|
9222
|
+
data, with a 24kHz sampling rate.
|
|
9084
9223
|
*/
|
|
9085
9224
|
mimeType?: string;
|
|
9086
|
-
/** The sample
|
|
9225
|
+
/** The sample of the custom voice.
|
|
9087
9226
|
|
|
9088
9227
|
* @remarks Encoded as base64 string. */
|
|
9089
9228
|
voiceSampleAudio?: string;
|
|
@@ -9327,7 +9466,7 @@ export declare interface Schema {
|
|
|
9327
9466
|
anyOf?: Schema[];
|
|
9328
9467
|
/** Optional. Default value to use if the field is not specified. */
|
|
9329
9468
|
default?: unknown;
|
|
9330
|
-
/** Optional.
|
|
9469
|
+
/** 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
9470
|
description?: string;
|
|
9332
9471
|
/** 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
9472
|
enum?: string[];
|
|
@@ -9387,12 +9526,11 @@ export declare interface SearchEntryPoint {
|
|
|
9387
9526
|
sdkBlob?: string;
|
|
9388
9527
|
}
|
|
9389
9528
|
|
|
9390
|
-
/**
|
|
9529
|
+
/** Different types of search that can be enabled on the GoogleSearch tool. */
|
|
9391
9530
|
export declare interface SearchTypes {
|
|
9392
|
-
/** Setting this field enables web search. Only text results are
|
|
9393
|
-
returned. */
|
|
9531
|
+
/** Optional. Setting this field enables web search. Only text results are returned. */
|
|
9394
9532
|
webSearch?: WebSearch;
|
|
9395
|
-
/** Setting this field enables image search. Image bytes are returned. */
|
|
9533
|
+
/** Optional. Setting this field enables image search. Image bytes are returned. */
|
|
9396
9534
|
imageSearch?: ImageSearch;
|
|
9397
9535
|
}
|
|
9398
9536
|
|
|
@@ -9505,6 +9643,26 @@ export declare interface SendMessageParameters {
|
|
|
9505
9643
|
config?: GenerateContentConfig;
|
|
9506
9644
|
}
|
|
9507
9645
|
|
|
9646
|
+
/** Pricing and performance service tier. */
|
|
9647
|
+
export declare enum ServiceTier {
|
|
9648
|
+
/**
|
|
9649
|
+
* Default service tier, which is standard.
|
|
9650
|
+
*/
|
|
9651
|
+
SERVICE_TIER_UNSPECIFIED = "SERVICE_TIER_UNSPECIFIED",
|
|
9652
|
+
/**
|
|
9653
|
+
* Flex service tier.
|
|
9654
|
+
*/
|
|
9655
|
+
SERVICE_TIER_FLEX = "SERVICE_TIER_FLEX",
|
|
9656
|
+
/**
|
|
9657
|
+
* Standard service tier.
|
|
9658
|
+
*/
|
|
9659
|
+
SERVICE_TIER_STANDARD = "SERVICE_TIER_STANDARD",
|
|
9660
|
+
/**
|
|
9661
|
+
* Priority service tier.
|
|
9662
|
+
*/
|
|
9663
|
+
SERVICE_TIER_PRIORITY = "SERVICE_TIER_PRIORITY"
|
|
9664
|
+
}
|
|
9665
|
+
|
|
9508
9666
|
/**
|
|
9509
9667
|
Represents a connection to the API.
|
|
9510
9668
|
|
|
@@ -9694,8 +9852,9 @@ export declare interface SpeakerVoiceConfig {
|
|
|
9694
9852
|
voiceConfig?: VoiceConfig;
|
|
9695
9853
|
}
|
|
9696
9854
|
|
|
9855
|
+
/** Config for speech generation and transcription. */
|
|
9697
9856
|
export declare interface SpeechConfig {
|
|
9698
|
-
/**
|
|
9857
|
+
/** The configuration in case of single-voice output. */
|
|
9699
9858
|
voiceConfig?: VoiceConfig;
|
|
9700
9859
|
/** Optional. The language code (ISO 639-1) for the speech synthesis. */
|
|
9701
9860
|
languageCode?: string;
|
|
@@ -9964,7 +10123,7 @@ export declare interface TestTableItem {
|
|
|
9964
10123
|
*/
|
|
9965
10124
|
declare interface TextContent {
|
|
9966
10125
|
/**
|
|
9967
|
-
* The text content.
|
|
10126
|
+
* Required. The text content.
|
|
9968
10127
|
*/
|
|
9969
10128
|
text: string;
|
|
9970
10129
|
type: 'text';
|
|
@@ -9992,6 +10151,10 @@ export declare enum ThinkingLevel {
|
|
|
9992
10151
|
* Unspecified thinking level.
|
|
9993
10152
|
*/
|
|
9994
10153
|
THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
|
|
10154
|
+
/**
|
|
10155
|
+
* MINIMAL thinking level.
|
|
10156
|
+
*/
|
|
10157
|
+
MINIMAL = "MINIMAL",
|
|
9995
10158
|
/**
|
|
9996
10159
|
* Low thinking level.
|
|
9997
10160
|
*/
|
|
@@ -10003,11 +10166,7 @@ export declare enum ThinkingLevel {
|
|
|
10003
10166
|
/**
|
|
10004
10167
|
* High thinking level.
|
|
10005
10168
|
*/
|
|
10006
|
-
HIGH = "HIGH"
|
|
10007
|
-
/**
|
|
10008
|
-
* MINIMAL thinking level.
|
|
10009
|
-
*/
|
|
10010
|
-
MINIMAL = "MINIMAL"
|
|
10169
|
+
HIGH = "HIGH"
|
|
10011
10170
|
}
|
|
10012
10171
|
|
|
10013
10172
|
declare type ThinkingLevel_2 = 'minimal' | 'low' | 'medium' | 'high';
|
|
@@ -10135,9 +10294,9 @@ export declare interface Tool {
|
|
|
10135
10294
|
computer. If enabled, it automatically populates computer-use specific
|
|
10136
10295
|
Function Declarations. */
|
|
10137
10296
|
computerUse?: ComputerUse;
|
|
10138
|
-
/** Optional. Tool to retrieve knowledge from
|
|
10297
|
+
/** Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora. This field is not supported in Vertex AI. */
|
|
10139
10298
|
fileSearch?: FileSearch;
|
|
10140
|
-
/**
|
|
10299
|
+
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
10141
10300
|
googleSearch?: GoogleSearch;
|
|
10142
10301
|
/** Optional. Tool that allows grounding the model's response with
|
|
10143
10302
|
geospatial context related to the user's query. */
|
|
@@ -10161,19 +10320,9 @@ export declare interface Tool {
|
|
|
10161
10320
|
/**
|
|
10162
10321
|
* A tool that can be used by the model.
|
|
10163
10322
|
*/
|
|
10164
|
-
declare type Tool_2 = Function_2 | Tool_2.
|
|
10323
|
+
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
10324
|
|
|
10166
10325
|
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
10326
|
/**
|
|
10178
10327
|
* A tool that can be used by the model to execute code.
|
|
10179
10328
|
*/
|
|
@@ -10225,6 +10374,16 @@ declare namespace Tool_2 {
|
|
|
10225
10374
|
*/
|
|
10226
10375
|
url?: string;
|
|
10227
10376
|
}
|
|
10377
|
+
/**
|
|
10378
|
+
* A tool that can be used by the model to search Google.
|
|
10379
|
+
*/
|
|
10380
|
+
interface GoogleSearch {
|
|
10381
|
+
type: 'google_search';
|
|
10382
|
+
/**
|
|
10383
|
+
* The types of search grounding to enable.
|
|
10384
|
+
*/
|
|
10385
|
+
search_types?: Array<'web_search' | 'image_search'>;
|
|
10386
|
+
}
|
|
10228
10387
|
/**
|
|
10229
10388
|
* A tool that can be used by the model to search files.
|
|
10230
10389
|
*/
|
|
@@ -10247,6 +10406,7 @@ declare namespace Tool_2 {
|
|
|
10247
10406
|
* A tool that can be used by the model to call Google Maps.
|
|
10248
10407
|
*/
|
|
10249
10408
|
interface GoogleMaps {
|
|
10409
|
+
type: 'google_maps';
|
|
10250
10410
|
/**
|
|
10251
10411
|
* Whether to return a widget context token in the tool call result of the
|
|
10252
10412
|
* response.
|
|
@@ -10260,7 +10420,6 @@ declare namespace Tool_2 {
|
|
|
10260
10420
|
* The longitude of the user's location.
|
|
10261
10421
|
*/
|
|
10262
10422
|
longitude?: number;
|
|
10263
|
-
type?: 'google_maps';
|
|
10264
10423
|
}
|
|
10265
10424
|
}
|
|
10266
10425
|
|
|
@@ -10388,11 +10547,9 @@ export declare enum TrafficType {
|
|
|
10388
10547
|
|
|
10389
10548
|
/** Audio transcription in Server Conent. */
|
|
10390
10549
|
export declare interface Transcription {
|
|
10391
|
-
/** Transcription text.
|
|
10392
|
-
*/
|
|
10550
|
+
/** Optional. Transcription text. */
|
|
10393
10551
|
text?: string;
|
|
10394
|
-
/** The bool indicates the end of the transcription.
|
|
10395
|
-
*/
|
|
10552
|
+
/** Optional. The bool indicates the end of the transcription. */
|
|
10396
10553
|
finished?: boolean;
|
|
10397
10554
|
}
|
|
10398
10555
|
|
|
@@ -10530,6 +10687,18 @@ export declare interface TuningJob {
|
|
|
10530
10687
|
tuningJobState?: TuningJobState;
|
|
10531
10688
|
/** Tuning Spec for Veo Tuning. */
|
|
10532
10689
|
veoTuningSpec?: VeoTuningSpec;
|
|
10690
|
+
/** Optional. Spec for creating a distillation dataset. */
|
|
10691
|
+
distillationSamplingSpec?: DistillationSamplingSpec;
|
|
10692
|
+
/** Output only. Tuning Job metadata. */
|
|
10693
|
+
tuningJobMetadata?: TuningJobMetadata;
|
|
10694
|
+
}
|
|
10695
|
+
|
|
10696
|
+
/** Tuning job metadata. This data type is not supported in Gemini API. */
|
|
10697
|
+
export declare interface TuningJobMetadata {
|
|
10698
|
+
/** Output only. The number of epochs that have been completed. */
|
|
10699
|
+
completedEpochCount?: string;
|
|
10700
|
+
/** Output only. The number of steps that have been completed. Set for Multi-Step RL. */
|
|
10701
|
+
completedStepCount?: string;
|
|
10533
10702
|
}
|
|
10534
10703
|
|
|
10535
10704
|
/** 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 +10859,7 @@ export declare interface TuningValidationDataset {
|
|
|
10690
10859
|
}
|
|
10691
10860
|
|
|
10692
10861
|
declare interface Turn {
|
|
10693
|
-
|
|
10694
|
-
* The content of the turn.
|
|
10695
|
-
*/
|
|
10696
|
-
content?: string | Array<Content_2>;
|
|
10862
|
+
content?: Array<Content_2> | string;
|
|
10697
10863
|
/**
|
|
10698
10864
|
* The originator of this turn. Must be user for input or model for
|
|
10699
10865
|
* model output.
|
|
@@ -10734,7 +10900,11 @@ export declare enum TurnCoverage {
|
|
|
10734
10900
|
/**
|
|
10735
10901
|
* The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
|
|
10736
10902
|
*/
|
|
10737
|
-
TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
|
|
10903
|
+
TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT",
|
|
10904
|
+
/**
|
|
10905
|
+
* Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
|
|
10906
|
+
*/
|
|
10907
|
+
TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
|
|
10738
10908
|
}
|
|
10739
10909
|
|
|
10740
10910
|
/** Data type of the schema field. */
|
|
@@ -10790,15 +10960,17 @@ declare namespace types {
|
|
|
10790
10960
|
Outcome,
|
|
10791
10961
|
FunctionResponseScheduling,
|
|
10792
10962
|
Type,
|
|
10793
|
-
|
|
10963
|
+
Environment,
|
|
10794
10964
|
AuthType,
|
|
10795
10965
|
HttpElementLocation,
|
|
10796
10966
|
ApiSpec,
|
|
10967
|
+
PhishBlockThreshold,
|
|
10797
10968
|
Behavior,
|
|
10798
10969
|
DynamicRetrievalConfigMode,
|
|
10799
10970
|
FunctionCallingConfigMode,
|
|
10800
10971
|
ThinkingLevel,
|
|
10801
10972
|
PersonGeneration,
|
|
10973
|
+
ProminentPeople,
|
|
10802
10974
|
HarmCategory,
|
|
10803
10975
|
HarmBlockMethod,
|
|
10804
10976
|
HarmBlockThreshold,
|
|
@@ -10809,6 +10981,7 @@ declare namespace types {
|
|
|
10809
10981
|
BlockedReason,
|
|
10810
10982
|
TrafficType,
|
|
10811
10983
|
Modality,
|
|
10984
|
+
ModelStage,
|
|
10812
10985
|
MediaResolution,
|
|
10813
10986
|
TuningMode,
|
|
10814
10987
|
AdapterSize,
|
|
@@ -10817,12 +10990,12 @@ declare namespace types {
|
|
|
10817
10990
|
AggregationMetric,
|
|
10818
10991
|
PairwiseChoice,
|
|
10819
10992
|
TuningTask,
|
|
10993
|
+
DocumentState,
|
|
10820
10994
|
PartMediaResolutionLevel,
|
|
10821
10995
|
ToolType,
|
|
10822
10996
|
ResourceScope,
|
|
10997
|
+
ServiceTier,
|
|
10823
10998
|
FeatureSelectionPreference,
|
|
10824
|
-
Environment,
|
|
10825
|
-
ProminentPeople,
|
|
10826
10999
|
EmbeddingApiType,
|
|
10827
11000
|
SafetyFilterLevel,
|
|
10828
11001
|
ImagePromptLanguage,
|
|
@@ -10835,7 +11008,6 @@ declare namespace types {
|
|
|
10835
11008
|
VideoGenerationMaskMode,
|
|
10836
11009
|
VideoCompressionQuality,
|
|
10837
11010
|
TuningMethod,
|
|
10838
|
-
DocumentState,
|
|
10839
11011
|
FileState,
|
|
10840
11012
|
FileSource,
|
|
10841
11013
|
TurnCompleteReason,
|
|
@@ -10870,12 +11042,6 @@ declare namespace types {
|
|
|
10870
11042
|
Schema,
|
|
10871
11043
|
ModelSelectionConfig,
|
|
10872
11044
|
ComputerUse,
|
|
10873
|
-
FileSearch,
|
|
10874
|
-
WebSearch,
|
|
10875
|
-
ImageSearch,
|
|
10876
|
-
SearchTypes,
|
|
10877
|
-
Interval,
|
|
10878
|
-
GoogleSearch,
|
|
10879
11045
|
ApiKeyConfig,
|
|
10880
11046
|
AuthConfigGoogleServiceAccountConfig,
|
|
10881
11047
|
AuthConfigHttpBasicAuthConfig,
|
|
@@ -10899,6 +11065,12 @@ declare namespace types {
|
|
|
10899
11065
|
RagRetrievalConfig,
|
|
10900
11066
|
VertexRagStore,
|
|
10901
11067
|
Retrieval,
|
|
11068
|
+
FileSearch,
|
|
11069
|
+
WebSearch,
|
|
11070
|
+
ImageSearch,
|
|
11071
|
+
SearchTypes,
|
|
11072
|
+
Interval,
|
|
11073
|
+
GoogleSearch,
|
|
10902
11074
|
ToolCodeExecution,
|
|
10903
11075
|
EnterpriseWebSearch,
|
|
10904
11076
|
FunctionDeclaration,
|
|
@@ -10935,13 +11107,16 @@ declare namespace types {
|
|
|
10935
11107
|
GoogleTypeDate,
|
|
10936
11108
|
Citation,
|
|
10937
11109
|
CitationMetadata,
|
|
10938
|
-
GroundingChunkImage,
|
|
10939
11110
|
GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
|
|
10940
11111
|
GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
|
|
10941
11112
|
GroundingChunkMapsPlaceAnswerSources,
|
|
11113
|
+
GroundingChunkMapsRoute,
|
|
10942
11114
|
GroundingChunkMaps,
|
|
11115
|
+
GroundingChunkImage,
|
|
10943
11116
|
RagChunkPageSpan,
|
|
10944
11117
|
RagChunk,
|
|
11118
|
+
GroundingChunkStringList,
|
|
11119
|
+
GroundingChunkCustomMetadata,
|
|
10945
11120
|
GroundingChunkRetrievedContext,
|
|
10946
11121
|
GroundingChunkWeb,
|
|
10947
11122
|
GroundingChunk,
|
|
@@ -10961,6 +11136,7 @@ declare namespace types {
|
|
|
10961
11136
|
GenerateContentResponsePromptFeedback,
|
|
10962
11137
|
ModalityTokenCount,
|
|
10963
11138
|
GenerateContentResponseUsageMetadata,
|
|
11139
|
+
ModelStatus,
|
|
10964
11140
|
GenerateContentResponse,
|
|
10965
11141
|
ReferenceImage,
|
|
10966
11142
|
EditImageParameters,
|
|
@@ -11071,6 +11247,8 @@ declare namespace types {
|
|
|
11071
11247
|
FullFineTuningSpec,
|
|
11072
11248
|
VeoHyperParameters,
|
|
11073
11249
|
VeoTuningSpec,
|
|
11250
|
+
DistillationSamplingSpec,
|
|
11251
|
+
TuningJobMetadata,
|
|
11074
11252
|
TuningJob,
|
|
11075
11253
|
ListTuningJobsConfig,
|
|
11076
11254
|
ListTuningJobsParameters,
|
|
@@ -11444,7 +11622,6 @@ export declare class UploadToFileSearchStoreOperation implements Operation<Uploa
|
|
|
11444
11622
|
response?: UploadToFileSearchStoreResponse;
|
|
11445
11623
|
/**
|
|
11446
11624
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
11447
|
-
* @internal
|
|
11448
11625
|
*/
|
|
11449
11626
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse>;
|
|
11450
11627
|
/** The full HTTP response. */
|
|
@@ -11557,6 +11734,8 @@ declare interface URLCitation {
|
|
|
11557
11734
|
end_index?: number;
|
|
11558
11735
|
/**
|
|
11559
11736
|
* Start of segment of the response that is attributed to this source.
|
|
11737
|
+
*
|
|
11738
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
11560
11739
|
*/
|
|
11561
11740
|
start_index?: number;
|
|
11562
11741
|
/**
|
|
@@ -11588,11 +11767,11 @@ declare interface URLContextCallArguments {
|
|
|
11588
11767
|
*/
|
|
11589
11768
|
declare interface URLContextCallContent {
|
|
11590
11769
|
/**
|
|
11591
|
-
* A unique ID for this specific tool call.
|
|
11770
|
+
* Required. A unique ID for this specific tool call.
|
|
11592
11771
|
*/
|
|
11593
11772
|
id: string;
|
|
11594
11773
|
/**
|
|
11595
|
-
* The arguments to pass to the URL context.
|
|
11774
|
+
* Required. The arguments to pass to the URL context.
|
|
11596
11775
|
*/
|
|
11597
11776
|
arguments: URLContextCallArguments;
|
|
11598
11777
|
type: 'url_context_call';
|
|
@@ -11627,11 +11806,11 @@ declare interface URLContextResult {
|
|
|
11627
11806
|
*/
|
|
11628
11807
|
declare interface URLContextResultContent {
|
|
11629
11808
|
/**
|
|
11630
|
-
* ID to match the ID from the
|
|
11809
|
+
* Required. ID to match the ID from the function call block.
|
|
11631
11810
|
*/
|
|
11632
11811
|
call_id: string;
|
|
11633
11812
|
/**
|
|
11634
|
-
* The results of the URL context.
|
|
11813
|
+
* Required. The results of the URL context.
|
|
11635
11814
|
*/
|
|
11636
11815
|
result: Array<URLContextResult>;
|
|
11637
11816
|
type: 'url_context_result';
|
|
@@ -12036,16 +12215,17 @@ export declare enum VoiceActivityType {
|
|
|
12036
12215
|
ACTIVITY_END = "ACTIVITY_END"
|
|
12037
12216
|
}
|
|
12038
12217
|
|
|
12218
|
+
/** The configuration for the voice to use. */
|
|
12039
12219
|
export declare interface VoiceConfig {
|
|
12040
|
-
/**
|
|
12220
|
+
/** The configuration for a replicated voice, which is a clone of a
|
|
12221
|
+
user's voice that can be used for speech synthesis. If this is unset, a
|
|
12222
|
+
default voice is used. */
|
|
12041
12223
|
replicatedVoiceConfig?: ReplicatedVoiceConfig;
|
|
12042
12224
|
/** The configuration for a prebuilt voice. */
|
|
12043
12225
|
prebuiltVoiceConfig?: PrebuiltVoiceConfig;
|
|
12044
12226
|
}
|
|
12045
12227
|
|
|
12046
|
-
/** Standard web search for grounding and related configurations.
|
|
12047
|
-
|
|
12048
|
-
Only text results are returned. */
|
|
12228
|
+
/** Standard web search for grounding and related configurations. Only text results are returned. */
|
|
12049
12229
|
export declare interface WebSearch {
|
|
12050
12230
|
}
|
|
12051
12231
|
|