@google/genai 1.46.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/genai.d.ts +430 -247
- package/dist/index.cjs +391 -77
- package/dist/index.mjs +392 -78
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +391 -77
- package/dist/node/index.mjs +392 -78
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +430 -247
- 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 +392 -78
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +430 -247
- package/package.json +1 -1
package/dist/web/web.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 | ContentDelta.TextAnnotation;
|
|
1817
1828
|
event_type: 'content.delta';
|
|
1818
1829
|
index: number;
|
|
1819
1830
|
/**
|
|
1820
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
1831
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
1832
|
+
* this event.
|
|
1821
1833
|
*/
|
|
1822
1834
|
event_id?: string;
|
|
1823
1835
|
}
|
|
@@ -1826,15 +1838,11 @@ declare namespace ContentDelta {
|
|
|
1826
1838
|
interface Text {
|
|
1827
1839
|
text: string;
|
|
1828
1840
|
type: 'text';
|
|
1829
|
-
/**
|
|
1830
|
-
* Citation information for model-generated content.
|
|
1831
|
-
*/
|
|
1832
|
-
annotations?: Array<InteractionsAPI.Annotation>;
|
|
1833
1841
|
}
|
|
1834
1842
|
interface Image {
|
|
1835
1843
|
type: 'image';
|
|
1836
1844
|
data?: string;
|
|
1837
|
-
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
|
|
1845
|
+
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
|
|
1838
1846
|
/**
|
|
1839
1847
|
* The resolution of the media.
|
|
1840
1848
|
*/
|
|
@@ -1844,7 +1852,7 @@ declare namespace ContentDelta {
|
|
|
1844
1852
|
interface Audio {
|
|
1845
1853
|
type: 'audio';
|
|
1846
1854
|
data?: string;
|
|
1847
|
-
mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac';
|
|
1855
|
+
mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a';
|
|
1848
1856
|
uri?: string;
|
|
1849
1857
|
}
|
|
1850
1858
|
interface Document {
|
|
@@ -1879,7 +1887,7 @@ declare namespace ContentDelta {
|
|
|
1879
1887
|
}
|
|
1880
1888
|
interface FunctionCall {
|
|
1881
1889
|
/**
|
|
1882
|
-
* A unique ID for this specific tool call.
|
|
1890
|
+
* Required. A unique ID for this specific tool call.
|
|
1883
1891
|
*/
|
|
1884
1892
|
id: string;
|
|
1885
1893
|
arguments: {
|
|
@@ -1892,203 +1900,205 @@ declare namespace ContentDelta {
|
|
|
1892
1900
|
*/
|
|
1893
1901
|
signature?: string;
|
|
1894
1902
|
}
|
|
1895
|
-
interface
|
|
1903
|
+
interface CodeExecutionCall {
|
|
1896
1904
|
/**
|
|
1897
|
-
*
|
|
1905
|
+
* Required. A unique ID for this specific tool call.
|
|
1898
1906
|
*/
|
|
1899
|
-
|
|
1907
|
+
id: string;
|
|
1900
1908
|
/**
|
|
1901
|
-
*
|
|
1909
|
+
* The arguments to pass to the code execution.
|
|
1902
1910
|
*/
|
|
1903
|
-
|
|
1904
|
-
type: '
|
|
1905
|
-
is_error?: boolean;
|
|
1906
|
-
name?: string;
|
|
1911
|
+
arguments: InteractionsAPI.CodeExecutionCallArguments;
|
|
1912
|
+
type: 'code_execution_call';
|
|
1907
1913
|
/**
|
|
1908
1914
|
* A signature hash for backend validation.
|
|
1909
1915
|
*/
|
|
1910
1916
|
signature?: string;
|
|
1911
1917
|
}
|
|
1912
|
-
|
|
1913
|
-
interface Items {
|
|
1914
|
-
items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
interface CodeExecutionCall {
|
|
1918
|
+
interface URLContextCall {
|
|
1918
1919
|
/**
|
|
1919
|
-
* A unique ID for this specific tool call.
|
|
1920
|
+
* Required. A unique ID for this specific tool call.
|
|
1920
1921
|
*/
|
|
1921
1922
|
id: string;
|
|
1922
1923
|
/**
|
|
1923
|
-
* The arguments to pass to the
|
|
1924
|
+
* The arguments to pass to the URL context.
|
|
1924
1925
|
*/
|
|
1925
|
-
arguments: InteractionsAPI.
|
|
1926
|
-
type: '
|
|
1926
|
+
arguments: InteractionsAPI.URLContextCallArguments;
|
|
1927
|
+
type: 'url_context_call';
|
|
1927
1928
|
/**
|
|
1928
1929
|
* A signature hash for backend validation.
|
|
1929
1930
|
*/
|
|
1930
1931
|
signature?: string;
|
|
1931
1932
|
}
|
|
1932
|
-
interface
|
|
1933
|
+
interface GoogleSearchCall {
|
|
1933
1934
|
/**
|
|
1934
|
-
*
|
|
1935
|
+
* Required. A unique ID for this specific tool call.
|
|
1935
1936
|
*/
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1937
|
+
id: string;
|
|
1938
|
+
/**
|
|
1939
|
+
* The arguments to pass to Google Search.
|
|
1940
|
+
*/
|
|
1941
|
+
arguments: InteractionsAPI.GoogleSearchCallArguments;
|
|
1942
|
+
type: 'google_search_call';
|
|
1940
1943
|
/**
|
|
1941
1944
|
* A signature hash for backend validation.
|
|
1942
1945
|
*/
|
|
1943
1946
|
signature?: string;
|
|
1944
1947
|
}
|
|
1945
|
-
interface
|
|
1948
|
+
interface MCPServerToolCall {
|
|
1946
1949
|
/**
|
|
1947
|
-
* A unique ID for this specific tool call.
|
|
1950
|
+
* Required. A unique ID for this specific tool call.
|
|
1948
1951
|
*/
|
|
1949
1952
|
id: string;
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1953
|
+
arguments: {
|
|
1954
|
+
[key: string]: unknown;
|
|
1955
|
+
};
|
|
1956
|
+
name: string;
|
|
1957
|
+
server_name: string;
|
|
1958
|
+
type: 'mcp_server_tool_call';
|
|
1955
1959
|
/**
|
|
1956
1960
|
* A signature hash for backend validation.
|
|
1957
1961
|
*/
|
|
1958
1962
|
signature?: string;
|
|
1959
1963
|
}
|
|
1960
|
-
interface
|
|
1964
|
+
interface FileSearchCall {
|
|
1961
1965
|
/**
|
|
1962
|
-
*
|
|
1966
|
+
* Required. A unique ID for this specific tool call.
|
|
1963
1967
|
*/
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
type: 'url_context_result';
|
|
1967
|
-
is_error?: boolean;
|
|
1968
|
+
id: string;
|
|
1969
|
+
type: 'file_search_call';
|
|
1968
1970
|
/**
|
|
1969
1971
|
* A signature hash for backend validation.
|
|
1970
1972
|
*/
|
|
1971
1973
|
signature?: string;
|
|
1972
1974
|
}
|
|
1973
|
-
interface
|
|
1975
|
+
interface GoogleMapsCall {
|
|
1974
1976
|
/**
|
|
1975
|
-
* A unique ID for this specific tool call.
|
|
1977
|
+
* Required. A unique ID for this specific tool call.
|
|
1976
1978
|
*/
|
|
1977
1979
|
id: string;
|
|
1980
|
+
type: 'google_maps_call';
|
|
1978
1981
|
/**
|
|
1979
|
-
* The arguments to pass to Google
|
|
1982
|
+
* The arguments to pass to the Google Maps tool.
|
|
1980
1983
|
*/
|
|
1981
|
-
arguments
|
|
1982
|
-
type: 'google_search_call';
|
|
1984
|
+
arguments?: InteractionsAPI.GoogleMapsCallArguments;
|
|
1983
1985
|
/**
|
|
1984
1986
|
* A signature hash for backend validation.
|
|
1985
1987
|
*/
|
|
1986
1988
|
signature?: string;
|
|
1987
1989
|
}
|
|
1988
|
-
interface
|
|
1990
|
+
interface FunctionResult {
|
|
1989
1991
|
/**
|
|
1990
|
-
* ID to match the ID from the function call block.
|
|
1992
|
+
* Required. ID to match the ID from the function call block.
|
|
1991
1993
|
*/
|
|
1992
1994
|
call_id: string;
|
|
1993
|
-
result: Array<InteractionsAPI.
|
|
1994
|
-
type: '
|
|
1995
|
+
result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
|
|
1996
|
+
type: 'function_result';
|
|
1995
1997
|
is_error?: boolean;
|
|
1998
|
+
name?: string;
|
|
1996
1999
|
/**
|
|
1997
2000
|
* A signature hash for backend validation.
|
|
1998
2001
|
*/
|
|
1999
2002
|
signature?: string;
|
|
2000
2003
|
}
|
|
2001
|
-
interface
|
|
2004
|
+
interface CodeExecutionResult {
|
|
2002
2005
|
/**
|
|
2003
|
-
*
|
|
2006
|
+
* Required. ID to match the ID from the function call block.
|
|
2004
2007
|
*/
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
name: string;
|
|
2010
|
-
server_name: string;
|
|
2011
|
-
type: 'mcp_server_tool_call';
|
|
2008
|
+
call_id: string;
|
|
2009
|
+
result: string;
|
|
2010
|
+
type: 'code_execution_result';
|
|
2011
|
+
is_error?: boolean;
|
|
2012
2012
|
/**
|
|
2013
2013
|
* A signature hash for backend validation.
|
|
2014
2014
|
*/
|
|
2015
2015
|
signature?: string;
|
|
2016
2016
|
}
|
|
2017
|
-
interface
|
|
2017
|
+
interface URLContextResult {
|
|
2018
2018
|
/**
|
|
2019
|
-
* ID to match the ID from the function call block.
|
|
2019
|
+
* Required. ID to match the ID from the function call block.
|
|
2020
2020
|
*/
|
|
2021
2021
|
call_id: string;
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
result: MCPServerToolResult.Items | unknown | string;
|
|
2026
|
-
type: 'mcp_server_tool_result';
|
|
2027
|
-
name?: string;
|
|
2028
|
-
server_name?: string;
|
|
2022
|
+
result: Array<InteractionsAPI.URLContextResult>;
|
|
2023
|
+
type: 'url_context_result';
|
|
2024
|
+
is_error?: boolean;
|
|
2029
2025
|
/**
|
|
2030
2026
|
* A signature hash for backend validation.
|
|
2031
2027
|
*/
|
|
2032
2028
|
signature?: string;
|
|
2033
2029
|
}
|
|
2034
|
-
|
|
2035
|
-
interface Items {
|
|
2036
|
-
items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent>;
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
interface FileSearchCall {
|
|
2030
|
+
interface GoogleSearchResult {
|
|
2040
2031
|
/**
|
|
2041
|
-
*
|
|
2032
|
+
* Required. ID to match the ID from the function call block.
|
|
2042
2033
|
*/
|
|
2043
|
-
|
|
2044
|
-
|
|
2034
|
+
call_id: string;
|
|
2035
|
+
result: Array<InteractionsAPI.GoogleSearchResult>;
|
|
2036
|
+
type: 'google_search_result';
|
|
2037
|
+
is_error?: boolean;
|
|
2045
2038
|
/**
|
|
2046
2039
|
* A signature hash for backend validation.
|
|
2047
2040
|
*/
|
|
2048
2041
|
signature?: string;
|
|
2049
2042
|
}
|
|
2050
|
-
interface
|
|
2043
|
+
interface MCPServerToolResult {
|
|
2051
2044
|
/**
|
|
2052
|
-
* ID to match the ID from the function call block.
|
|
2045
|
+
* Required. ID to match the ID from the function call block.
|
|
2053
2046
|
*/
|
|
2054
2047
|
call_id: string;
|
|
2055
|
-
|
|
2056
|
-
|
|
2048
|
+
result: unknown | Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent> | string;
|
|
2049
|
+
type: 'mcp_server_tool_result';
|
|
2050
|
+
name?: string;
|
|
2051
|
+
server_name?: string;
|
|
2057
2052
|
/**
|
|
2058
2053
|
* A signature hash for backend validation.
|
|
2059
2054
|
*/
|
|
2060
2055
|
signature?: string;
|
|
2061
2056
|
}
|
|
2062
|
-
interface
|
|
2063
|
-
/**
|
|
2064
|
-
* A unique ID for this specific tool call.
|
|
2065
|
-
*/
|
|
2066
|
-
id: string;
|
|
2067
|
-
type: 'google_maps_call';
|
|
2057
|
+
interface FileSearchResult {
|
|
2068
2058
|
/**
|
|
2069
|
-
*
|
|
2059
|
+
* Required. ID to match the ID from the function call block.
|
|
2070
2060
|
*/
|
|
2071
|
-
|
|
2061
|
+
call_id: string;
|
|
2062
|
+
result: Array<FileSearchResult.Result>;
|
|
2063
|
+
type: 'file_search_result';
|
|
2072
2064
|
/**
|
|
2073
2065
|
* A signature hash for backend validation.
|
|
2074
2066
|
*/
|
|
2075
2067
|
signature?: string;
|
|
2076
2068
|
}
|
|
2069
|
+
namespace FileSearchResult {
|
|
2070
|
+
/**
|
|
2071
|
+
* The result of the File Search.
|
|
2072
|
+
*/
|
|
2073
|
+
interface Result {
|
|
2074
|
+
/**
|
|
2075
|
+
* User provided metadata about the FileSearchResult.
|
|
2076
|
+
*/
|
|
2077
|
+
custom_metadata?: Array<unknown>;
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2077
2080
|
interface GoogleMapsResult {
|
|
2078
2081
|
/**
|
|
2079
|
-
* ID to match the ID from the function call block.
|
|
2082
|
+
* Required. ID to match the ID from the function call block.
|
|
2080
2083
|
*/
|
|
2081
2084
|
call_id: string;
|
|
2085
|
+
type: 'google_maps_result';
|
|
2082
2086
|
/**
|
|
2083
2087
|
* The results of the Google Maps.
|
|
2084
2088
|
*/
|
|
2085
|
-
result
|
|
2086
|
-
type: 'google_maps_result';
|
|
2089
|
+
result?: Array<InteractionsAPI.GoogleMapsResult>;
|
|
2087
2090
|
/**
|
|
2088
2091
|
* A signature hash for backend validation.
|
|
2089
2092
|
*/
|
|
2090
2093
|
signature?: string;
|
|
2091
2094
|
}
|
|
2095
|
+
interface TextAnnotation {
|
|
2096
|
+
type: 'text_annotation';
|
|
2097
|
+
/**
|
|
2098
|
+
* Citation information for model-generated content.
|
|
2099
|
+
*/
|
|
2100
|
+
annotations?: Array<InteractionsAPI.Annotation>;
|
|
2101
|
+
}
|
|
2092
2102
|
}
|
|
2093
2103
|
|
|
2094
2104
|
/** The embedding generated from an input content. */
|
|
@@ -2139,7 +2149,8 @@ declare interface ContentStart {
|
|
|
2139
2149
|
event_type: 'content.start';
|
|
2140
2150
|
index: number;
|
|
2141
2151
|
/**
|
|
2142
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
2152
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
2153
|
+
* this event.
|
|
2143
2154
|
*/
|
|
2144
2155
|
event_id?: string;
|
|
2145
2156
|
}
|
|
@@ -2148,7 +2159,8 @@ declare interface ContentStop {
|
|
|
2148
2159
|
event_type: 'content.stop';
|
|
2149
2160
|
index: number;
|
|
2150
2161
|
/**
|
|
2151
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
2162
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
2163
|
+
* this event.
|
|
2152
2164
|
*/
|
|
2153
2165
|
event_id?: string;
|
|
2154
2166
|
}
|
|
@@ -2596,7 +2608,7 @@ export declare interface CreateTuningJobConfig {
|
|
|
2596
2608
|
preTunedModelCheckpointId?: string;
|
|
2597
2609
|
/** Adapter size for tuning. */
|
|
2598
2610
|
adapterSize?: AdapterSize;
|
|
2599
|
-
/** Tuning mode for
|
|
2611
|
+
/** Tuning mode for tuning. */
|
|
2600
2612
|
tuningMode?: TuningMode;
|
|
2601
2613
|
/** Custom base model for tuning. This is only supported for OSS models in Vertex. */
|
|
2602
2614
|
customBaseModel?: string;
|
|
@@ -2908,7 +2920,7 @@ export declare interface DistillationDataStats {
|
|
|
2908
2920
|
trainingDatasetStats?: DatasetStats;
|
|
2909
2921
|
}
|
|
2910
2922
|
|
|
2911
|
-
/** Hyperparameters for
|
|
2923
|
+
/** Hyperparameters for distillation. */
|
|
2912
2924
|
export declare interface DistillationHyperParameters {
|
|
2913
2925
|
/** Optional. Adapter size for distillation. */
|
|
2914
2926
|
adapterSize?: AdapterSize;
|
|
@@ -2916,6 +2928,21 @@ export declare interface DistillationHyperParameters {
|
|
|
2916
2928
|
epochCount?: string;
|
|
2917
2929
|
/** Optional. Multiplier for adjusting the default learning rate. */
|
|
2918
2930
|
learningRateMultiplier?: number;
|
|
2931
|
+
/** The batch size hyperparameter for tuning.
|
|
2932
|
+
This is only supported for OSS models in Vertex. */
|
|
2933
|
+
batchSize?: number;
|
|
2934
|
+
/** The learning rate for tuning. OSS models only. */
|
|
2935
|
+
learningRate?: number;
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
/** Spec for creating a distilled dataset in Vertex Dataset. This data type is not supported in Gemini API. */
|
|
2939
|
+
export declare interface DistillationSamplingSpec {
|
|
2940
|
+
/** Optional. The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). */
|
|
2941
|
+
baseTeacherModel?: string;
|
|
2942
|
+
/** Optional. The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. */
|
|
2943
|
+
tunedTeacherModelSource?: string;
|
|
2944
|
+
/** Optional. Cloud Storage path to file containing validation dataset for distillation. The dataset must be formatted as a JSONL file. */
|
|
2945
|
+
validationDatasetUri?: string;
|
|
2919
2946
|
}
|
|
2920
2947
|
|
|
2921
2948
|
/** Distillation tuning spec for tuning. */
|
|
@@ -2936,20 +2963,21 @@ export declare interface DistillationSpec {
|
|
|
2936
2963
|
tunedTeacherModelSource?: string;
|
|
2937
2964
|
/** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
|
|
2938
2965
|
validationDatasetUri?: string;
|
|
2966
|
+
/** Tuning mode for tuning. */
|
|
2967
|
+
tuningMode?: TuningMode;
|
|
2939
2968
|
}
|
|
2940
2969
|
|
|
2941
2970
|
/** A Document is a collection of Chunks. */
|
|
2942
2971
|
declare interface Document_2 {
|
|
2943
|
-
/** The resource name
|
|
2944
|
-
Example: fileSearchStores/file-search-store-foo/documents/documents-bar */
|
|
2972
|
+
/** 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
2973
|
name?: string;
|
|
2946
|
-
/** The human-readable display name for the Document. */
|
|
2974
|
+
/** Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation". */
|
|
2947
2975
|
displayName?: string;
|
|
2948
|
-
/**
|
|
2976
|
+
/** Output only. Current state of the `Document`. */
|
|
2949
2977
|
state?: DocumentState;
|
|
2950
|
-
/** The size of the Document
|
|
2978
|
+
/** Output only. The size of raw bytes ingested into the Document. */
|
|
2951
2979
|
sizeBytes?: string;
|
|
2952
|
-
/** The
|
|
2980
|
+
/** Output only. The mime type of the Document. */
|
|
2953
2981
|
mimeType?: string;
|
|
2954
2982
|
/** Output only. The Timestamp of when the `Document` was created. */
|
|
2955
2983
|
createTime?: string;
|
|
@@ -3013,11 +3041,23 @@ declare class Documents extends BaseModule {
|
|
|
3013
3041
|
private listInternal;
|
|
3014
3042
|
}
|
|
3015
3043
|
|
|
3016
|
-
/**
|
|
3044
|
+
/** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */
|
|
3017
3045
|
export declare enum DocumentState {
|
|
3046
|
+
/**
|
|
3047
|
+
* The default value. This value is used if the state is omitted.
|
|
3048
|
+
*/
|
|
3018
3049
|
STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
|
|
3050
|
+
/**
|
|
3051
|
+
* Some `Chunks` of the `Document` are being processed (embedding and vector storage).
|
|
3052
|
+
*/
|
|
3019
3053
|
STATE_PENDING = "STATE_PENDING",
|
|
3054
|
+
/**
|
|
3055
|
+
* All `Chunks` of the `Document` is processed and available for querying.
|
|
3056
|
+
*/
|
|
3020
3057
|
STATE_ACTIVE = "STATE_ACTIVE",
|
|
3058
|
+
/**
|
|
3059
|
+
* Some `Chunks` of the `Document` failed processing.
|
|
3060
|
+
*/
|
|
3021
3061
|
STATE_FAILED = "STATE_FAILED"
|
|
3022
3062
|
}
|
|
3023
3063
|
|
|
@@ -3359,7 +3399,8 @@ declare interface ErrorEvent_2 {
|
|
|
3359
3399
|
*/
|
|
3360
3400
|
error?: ErrorEvent_2.Error;
|
|
3361
3401
|
/**
|
|
3362
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
3402
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
3403
|
+
* this event.
|
|
3363
3404
|
*/
|
|
3364
3405
|
event_id?: string;
|
|
3365
3406
|
}
|
|
@@ -3416,7 +3457,7 @@ export declare interface EvaluateDatasetRun {
|
|
|
3416
3457
|
evaluateDatasetResponse?: EvaluateDatasetResponse;
|
|
3417
3458
|
/** Output only. The resource name of the evaluation run. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run_id}`. */
|
|
3418
3459
|
evaluationRun?: string;
|
|
3419
|
-
/** Output only. The
|
|
3460
|
+
/** Output only. Deprecated: The updated architecture uses evaluation_run instead. */
|
|
3420
3461
|
operationName?: string;
|
|
3421
3462
|
}
|
|
3422
3463
|
|
|
@@ -3573,6 +3614,8 @@ declare interface FileCitation {
|
|
|
3573
3614
|
source?: string;
|
|
3574
3615
|
/**
|
|
3575
3616
|
* Start of segment of the response that is attributed to this source.
|
|
3617
|
+
*
|
|
3618
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
3576
3619
|
*/
|
|
3577
3620
|
start_index?: number;
|
|
3578
3621
|
}
|
|
@@ -3707,14 +3750,13 @@ export declare class Files extends BaseModule {
|
|
|
3707
3750
|
private registerFilesInternal;
|
|
3708
3751
|
}
|
|
3709
3752
|
|
|
3710
|
-
/**
|
|
3753
|
+
/** The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. This data type is not supported in Vertex AI. */
|
|
3711
3754
|
export declare interface FileSearch {
|
|
3712
|
-
/** The names of the file_search_stores to retrieve from.
|
|
3713
|
-
Example: `fileSearchStores/my-file-search-store-123` */
|
|
3755
|
+
/** Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` */
|
|
3714
3756
|
fileSearchStoreNames?: string[];
|
|
3715
|
-
/** The number of
|
|
3757
|
+
/** Optional. The number of semantic retrieval chunks to retrieve. */
|
|
3716
3758
|
topK?: number;
|
|
3717
|
-
/** Metadata filter to apply to the
|
|
3759
|
+
/** Optional. Metadata filter to apply to the semantic retrieval documents and chunks. */
|
|
3718
3760
|
metadataFilter?: string;
|
|
3719
3761
|
}
|
|
3720
3762
|
|
|
@@ -3723,7 +3765,7 @@ export declare interface FileSearch {
|
|
|
3723
3765
|
*/
|
|
3724
3766
|
declare interface FileSearchCallContent {
|
|
3725
3767
|
/**
|
|
3726
|
-
* A unique ID for this specific tool call.
|
|
3768
|
+
* Required. A unique ID for this specific tool call.
|
|
3727
3769
|
*/
|
|
3728
3770
|
id: string;
|
|
3729
3771
|
type: 'file_search_call';
|
|
@@ -3738,20 +3780,32 @@ declare interface FileSearchCallContent {
|
|
|
3738
3780
|
*/
|
|
3739
3781
|
declare interface FileSearchResultContent {
|
|
3740
3782
|
/**
|
|
3741
|
-
* ID to match the ID from the
|
|
3783
|
+
* Required. ID to match the ID from the function call block.
|
|
3742
3784
|
*/
|
|
3743
3785
|
call_id: string;
|
|
3744
|
-
type: 'file_search_result';
|
|
3745
3786
|
/**
|
|
3746
|
-
* The results of the File Search.
|
|
3787
|
+
* Required. The results of the File Search.
|
|
3747
3788
|
*/
|
|
3748
|
-
result
|
|
3789
|
+
result: Array<FileSearchResultContent.Result>;
|
|
3790
|
+
type: 'file_search_result';
|
|
3749
3791
|
/**
|
|
3750
3792
|
* A signature hash for backend validation.
|
|
3751
3793
|
*/
|
|
3752
3794
|
signature?: string;
|
|
3753
3795
|
}
|
|
3754
3796
|
|
|
3797
|
+
declare namespace FileSearchResultContent {
|
|
3798
|
+
/**
|
|
3799
|
+
* The result of the File Search.
|
|
3800
|
+
*/
|
|
3801
|
+
interface Result {
|
|
3802
|
+
/**
|
|
3803
|
+
* User provided metadata about the FileSearchResult.
|
|
3804
|
+
*/
|
|
3805
|
+
custom_metadata?: Array<unknown>;
|
|
3806
|
+
}
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3755
3809
|
/** A collection of Documents. */
|
|
3756
3810
|
export declare interface FileSearchStore {
|
|
3757
3811
|
/** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */
|
|
@@ -4037,17 +4091,17 @@ export declare interface FunctionCall {
|
|
|
4037
4091
|
*/
|
|
4038
4092
|
declare interface FunctionCallContent {
|
|
4039
4093
|
/**
|
|
4040
|
-
* A unique ID for this specific tool call.
|
|
4094
|
+
* Required. A unique ID for this specific tool call.
|
|
4041
4095
|
*/
|
|
4042
4096
|
id: string;
|
|
4043
4097
|
/**
|
|
4044
|
-
* The arguments to pass to the function.
|
|
4098
|
+
* Required. The arguments to pass to the function.
|
|
4045
4099
|
*/
|
|
4046
4100
|
arguments: {
|
|
4047
4101
|
[key: string]: unknown;
|
|
4048
4102
|
};
|
|
4049
4103
|
/**
|
|
4050
|
-
* The name of the tool to call.
|
|
4104
|
+
* Required. The name of the tool to call.
|
|
4051
4105
|
*/
|
|
4052
4106
|
name: string;
|
|
4053
4107
|
type: 'function_call';
|
|
@@ -4193,7 +4247,7 @@ export declare enum FunctionResponseScheduling {
|
|
|
4193
4247
|
*/
|
|
4194
4248
|
declare interface FunctionResultContent {
|
|
4195
4249
|
/**
|
|
4196
|
-
* ID to match the ID from the function call block.
|
|
4250
|
+
* Required. ID to match the ID from the function call block.
|
|
4197
4251
|
*/
|
|
4198
4252
|
call_id: string;
|
|
4199
4253
|
/**
|
|
@@ -4416,6 +4470,8 @@ export declare interface GenerateContentConfig {
|
|
|
4416
4470
|
service. If supplied, safety_settings must not be supplied.
|
|
4417
4471
|
*/
|
|
4418
4472
|
modelArmorConfig?: ModelArmorConfig;
|
|
4473
|
+
/** The service tier to use for the request. For example, ServiceTier.FLEX. */
|
|
4474
|
+
serviceTier?: ServiceTier;
|
|
4419
4475
|
}
|
|
4420
4476
|
|
|
4421
4477
|
/** Config for models.generate_content parameters. */
|
|
@@ -4452,6 +4508,8 @@ export declare class GenerateContentResponse {
|
|
|
4452
4508
|
responseId?: string;
|
|
4453
4509
|
/** Usage metadata about the response(s). */
|
|
4454
4510
|
usageMetadata?: GenerateContentResponseUsageMetadata;
|
|
4511
|
+
/** Output only. The current model status of this model. This field is not supported in Vertex AI. */
|
|
4512
|
+
modelStatus?: ModelStatus;
|
|
4455
4513
|
/**
|
|
4456
4514
|
* Returns the concatenation of all text parts from the first candidate in the response.
|
|
4457
4515
|
*
|
|
@@ -4781,6 +4839,8 @@ export declare interface GenerateVideosConfig {
|
|
|
4781
4839
|
mask?: VideoGenerationMask;
|
|
4782
4840
|
/** Compression quality of the generated videos. */
|
|
4783
4841
|
compressionQuality?: VideoCompressionQuality;
|
|
4842
|
+
/** User specified labels to track billing usage. */
|
|
4843
|
+
labels?: Record<string, string>;
|
|
4784
4844
|
}
|
|
4785
4845
|
|
|
4786
4846
|
/** A video generation operation. */
|
|
@@ -4797,7 +4857,6 @@ export declare class GenerateVideosOperation implements Operation<GenerateVideos
|
|
|
4797
4857
|
response?: GenerateVideosResponse;
|
|
4798
4858
|
/**
|
|
4799
4859
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
4800
|
-
* @internal
|
|
4801
4860
|
*/
|
|
4802
4861
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<GenerateVideosResponse>;
|
|
4803
4862
|
/** The full HTTP response. */
|
|
@@ -4936,7 +4995,7 @@ declare interface GenerationConfig_2 {
|
|
|
4936
4995
|
*/
|
|
4937
4996
|
thinking_summaries?: 'auto' | 'none';
|
|
4938
4997
|
/**
|
|
4939
|
-
* The tool choice
|
|
4998
|
+
* The tool choice configuration.
|
|
4940
4999
|
*/
|
|
4941
5000
|
tool_choice?: ToolChoiceType | ToolChoiceConfig;
|
|
4942
5001
|
/**
|
|
@@ -5286,7 +5345,7 @@ declare interface GoogleMapsCallArguments {
|
|
|
5286
5345
|
*/
|
|
5287
5346
|
declare interface GoogleMapsCallContent {
|
|
5288
5347
|
/**
|
|
5289
|
-
* A unique ID for this specific tool call.
|
|
5348
|
+
* Required. A unique ID for this specific tool call.
|
|
5290
5349
|
*/
|
|
5291
5350
|
id: string;
|
|
5292
5351
|
type: 'google_maps_call';
|
|
@@ -5361,11 +5420,11 @@ declare namespace GoogleMapsResult {
|
|
|
5361
5420
|
*/
|
|
5362
5421
|
declare interface GoogleMapsResultContent {
|
|
5363
5422
|
/**
|
|
5364
|
-
* ID to match the ID from the
|
|
5423
|
+
* Required. ID to match the ID from the function call block.
|
|
5365
5424
|
*/
|
|
5366
5425
|
call_id: string;
|
|
5367
5426
|
/**
|
|
5368
|
-
* The results of the Google Maps.
|
|
5427
|
+
* Required. The results of the Google Maps.
|
|
5369
5428
|
*/
|
|
5370
5429
|
result: Array<GoogleMapsResult>;
|
|
5371
5430
|
type: 'google_maps_result';
|
|
@@ -5385,9 +5444,9 @@ export declare interface GoogleRpcStatus {
|
|
|
5385
5444
|
message?: string;
|
|
5386
5445
|
}
|
|
5387
5446
|
|
|
5388
|
-
/** Tool to support
|
|
5447
|
+
/** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
5389
5448
|
export declare interface GoogleSearch {
|
|
5390
|
-
/**
|
|
5449
|
+
/** Optional. The set of search types to enable. If not set, web search is enabled by default. */
|
|
5391
5450
|
searchTypes?: SearchTypes;
|
|
5392
5451
|
/** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */
|
|
5393
5452
|
blockingConfidence?: PhishBlockThreshold;
|
|
@@ -5412,11 +5471,11 @@ declare interface GoogleSearchCallArguments {
|
|
|
5412
5471
|
*/
|
|
5413
5472
|
declare interface GoogleSearchCallContent {
|
|
5414
5473
|
/**
|
|
5415
|
-
* A unique ID for this specific tool call.
|
|
5474
|
+
* Required. A unique ID for this specific tool call.
|
|
5416
5475
|
*/
|
|
5417
5476
|
id: string;
|
|
5418
5477
|
/**
|
|
5419
|
-
* The arguments to pass to Google Search.
|
|
5478
|
+
* Required. The arguments to pass to Google Search.
|
|
5420
5479
|
*/
|
|
5421
5480
|
arguments: GoogleSearchCallArguments;
|
|
5422
5481
|
type: 'google_search_call';
|
|
@@ -5445,11 +5504,11 @@ declare interface GoogleSearchResult {
|
|
|
5445
5504
|
*/
|
|
5446
5505
|
declare interface GoogleSearchResultContent {
|
|
5447
5506
|
/**
|
|
5448
|
-
* ID to match the ID from the
|
|
5507
|
+
* Required. ID to match the ID from the function call block.
|
|
5449
5508
|
*/
|
|
5450
5509
|
call_id: string;
|
|
5451
5510
|
/**
|
|
5452
|
-
* The results of the Google Search.
|
|
5511
|
+
* Required. The results of the Google Search.
|
|
5453
5512
|
*/
|
|
5454
5513
|
result: Array<GoogleSearchResult>;
|
|
5455
5514
|
type: 'google_search_result';
|
|
@@ -5485,9 +5544,7 @@ export declare interface GoogleTypeDate {
|
|
|
5485
5544
|
is enabled, the model returns a `GroundingChunk` that contains a reference to
|
|
5486
5545
|
the source of the information. */
|
|
5487
5546
|
export declare interface GroundingChunk {
|
|
5488
|
-
/** A grounding chunk from an image search result. See the `Image`
|
|
5489
|
-
message for details.
|
|
5490
|
-
*/
|
|
5547
|
+
/** A grounding chunk from an image search result. See the `Image` message for details. */
|
|
5491
5548
|
image?: GroundingChunkImage;
|
|
5492
5549
|
/** A `Maps` chunk is a piece of evidence that comes from Google Maps.
|
|
5493
5550
|
|
|
@@ -5495,17 +5552,25 @@ export declare interface GroundingChunk {
|
|
|
5495
5552
|
reviews. This is used to provide the user with rich, location-based
|
|
5496
5553
|
information. */
|
|
5497
5554
|
maps?: GroundingChunkMaps;
|
|
5498
|
-
/** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details
|
|
5555
|
+
/** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details */
|
|
5499
5556
|
retrievedContext?: GroundingChunkRetrievedContext;
|
|
5500
5557
|
/** A grounding chunk from a web page, typically from Google Search. See the `Web` message for details. */
|
|
5501
5558
|
web?: GroundingChunkWeb;
|
|
5502
5559
|
}
|
|
5503
5560
|
|
|
5504
|
-
/**
|
|
5561
|
+
/** User provided metadata about the GroundingFact. This data type is not supported in Vertex AI. */
|
|
5562
|
+
export declare interface GroundingChunkCustomMetadata {
|
|
5563
|
+
/** The key of the metadata. */
|
|
5564
|
+
key?: string;
|
|
5565
|
+
/** Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. */
|
|
5566
|
+
numericValue?: number;
|
|
5567
|
+
/** Optional. A list of string values for the metadata. */
|
|
5568
|
+
stringListValue?: GroundingChunkStringList;
|
|
5569
|
+
/** Optional. The string value of the metadata. */
|
|
5570
|
+
stringValue?: string;
|
|
5571
|
+
}
|
|
5505
5572
|
|
|
5506
|
-
It contains the URI of the image search result and the URI of the image.
|
|
5507
|
-
This is used to provide the user with a link to the source of the
|
|
5508
|
-
information. */
|
|
5573
|
+
/** 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. */
|
|
5509
5574
|
export declare interface GroundingChunkImage {
|
|
5510
5575
|
/** The URI of the image search result page. */
|
|
5511
5576
|
sourceUri?: string;
|
|
@@ -5537,6 +5602,8 @@ export declare interface GroundingChunkMaps {
|
|
|
5537
5602
|
title?: string;
|
|
5538
5603
|
/** The URI of the place. */
|
|
5539
5604
|
uri?: string;
|
|
5605
|
+
/** Output only. Route information. */
|
|
5606
|
+
route?: GroundingChunkMapsRoute;
|
|
5540
5607
|
}
|
|
5541
5608
|
|
|
5542
5609
|
/** The sources that were used to generate the place answer.
|
|
@@ -5580,11 +5647,21 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
|
5580
5647
|
title?: string;
|
|
5581
5648
|
}
|
|
5582
5649
|
|
|
5583
|
-
/**
|
|
5650
|
+
/** Route information from Google Maps. This data type is not supported in Gemini API. */
|
|
5651
|
+
export declare interface GroundingChunkMapsRoute {
|
|
5652
|
+
/** The total distance of the route, in meters. */
|
|
5653
|
+
distanceMeters?: number;
|
|
5654
|
+
/** The total duration of the route. */
|
|
5655
|
+
duration?: string;
|
|
5656
|
+
/** An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm */
|
|
5657
|
+
encodedPolyline?: string;
|
|
5658
|
+
}
|
|
5659
|
+
|
|
5660
|
+
/** 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. */
|
|
5584
5661
|
export declare interface GroundingChunkRetrievedContext {
|
|
5585
|
-
/** 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}`. */
|
|
5662
|
+
/** 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. */
|
|
5586
5663
|
documentName?: string;
|
|
5587
|
-
/** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. */
|
|
5664
|
+
/** 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. */
|
|
5588
5665
|
ragChunk?: RagChunk;
|
|
5589
5666
|
/** The content of the retrieved data source. */
|
|
5590
5667
|
text?: string;
|
|
@@ -5592,6 +5669,16 @@ export declare interface GroundingChunkRetrievedContext {
|
|
|
5592
5669
|
title?: string;
|
|
5593
5670
|
/** The URI of the retrieved data source. */
|
|
5594
5671
|
uri?: string;
|
|
5672
|
+
/** Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI. */
|
|
5673
|
+
customMetadata?: GroundingChunkCustomMetadata[];
|
|
5674
|
+
/** Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`. This field is not supported in Vertex AI. */
|
|
5675
|
+
fileSearchStore?: string;
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5678
|
+
/** A list of string values. This data type is not supported in Vertex AI. */
|
|
5679
|
+
export declare interface GroundingChunkStringList {
|
|
5680
|
+
/** The string values of the list. */
|
|
5681
|
+
values?: string[];
|
|
5595
5682
|
}
|
|
5596
5683
|
|
|
5597
5684
|
/** 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. */
|
|
@@ -5606,10 +5693,7 @@ export declare interface GroundingChunkWeb {
|
|
|
5606
5693
|
|
|
5607
5694
|
/** Information for various kinds of grounding. */
|
|
5608
5695
|
export declare interface GroundingMetadata {
|
|
5609
|
-
/** Optional. The image search queries that were used to generate the
|
|
5610
|
-
content. This field is populated only when the grounding source is Google
|
|
5611
|
-
Search with the Image Search search_type enabled.
|
|
5612
|
-
*/
|
|
5696
|
+
/** 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. */
|
|
5613
5697
|
imageSearchQueries?: string[];
|
|
5614
5698
|
/** A list of supporting references retrieved from the grounding
|
|
5615
5699
|
source. This field is populated when the grounding source is Google
|
|
@@ -5625,7 +5709,7 @@ export declare interface GroundingMetadata {
|
|
|
5625
5709
|
searchEntryPoint?: SearchEntryPoint;
|
|
5626
5710
|
/** Web search queries for the following-up web search. */
|
|
5627
5711
|
webSearchQueries?: string[];
|
|
5628
|
-
/** 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.
|
|
5712
|
+
/** 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. */
|
|
5629
5713
|
googleMapsWidgetContextToken?: string;
|
|
5630
5714
|
/** 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. */
|
|
5631
5715
|
retrievalQueries?: string[];
|
|
@@ -5655,6 +5739,8 @@ export declare interface GroundingSupport {
|
|
|
5655
5739
|
groundingChunkIndices?: number[];
|
|
5656
5740
|
/** Segment of the content this support belongs to. */
|
|
5657
5741
|
segment?: Segment;
|
|
5742
|
+
/** Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message. */
|
|
5743
|
+
renderedParts?: number[];
|
|
5658
5744
|
}
|
|
5659
5745
|
|
|
5660
5746
|
/** 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. */
|
|
@@ -5948,11 +6034,7 @@ export declare interface ImageConfig {
|
|
|
5948
6034
|
/** Controls the generation of people. Supported values are:
|
|
5949
6035
|
ALLOW_ALL, ALLOW_ADULT, ALLOW_NONE. */
|
|
5950
6036
|
personGeneration?: string;
|
|
5951
|
-
/** Controls whether prominent people (celebrities)
|
|
5952
|
-
generation is allowed. If used with personGeneration, personGeneration
|
|
5953
|
-
enum would take precedence. For instance, if ALLOW_NONE is set, all person
|
|
5954
|
-
generation would be blocked. If this field is unspecified, the default
|
|
5955
|
-
behavior is to allow prominent people. */
|
|
6037
|
+
/** 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. */
|
|
5956
6038
|
prominentPeople?: ProminentPeople;
|
|
5957
6039
|
/** MIME type of the generated image. This field is not
|
|
5958
6040
|
supported in Gemini API. */
|
|
@@ -5960,7 +6042,7 @@ export declare interface ImageConfig {
|
|
|
5960
6042
|
/** Compression quality of the generated image (for
|
|
5961
6043
|
``image/jpeg`` only). This field is not supported in Gemini API. */
|
|
5962
6044
|
outputCompressionQuality?: number;
|
|
5963
|
-
/** Optional. The image output format for generated images. */
|
|
6045
|
+
/** Optional. The image output format for generated images. This field is not supported in Gemini API. */
|
|
5964
6046
|
imageOutputOptions?: ImageConfigImageOutputOptions;
|
|
5965
6047
|
}
|
|
5966
6048
|
|
|
@@ -5992,7 +6074,7 @@ declare interface ImageContent {
|
|
|
5992
6074
|
/**
|
|
5993
6075
|
* The mime type of the image.
|
|
5994
6076
|
*/
|
|
5995
|
-
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
|
|
6077
|
+
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
|
|
5996
6078
|
/**
|
|
5997
6079
|
* The resolution of the media.
|
|
5998
6080
|
*/
|
|
@@ -6074,7 +6156,6 @@ export declare class ImportFileOperation implements Operation<ImportFileResponse
|
|
|
6074
6156
|
response?: ImportFileResponse;
|
|
6075
6157
|
/**
|
|
6076
6158
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
6077
|
-
* @internal
|
|
6078
6159
|
*/
|
|
6079
6160
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<ImportFileResponse>;
|
|
6080
6161
|
/** The full HTTP response. */
|
|
@@ -6103,12 +6184,12 @@ export declare class ImportFileResponse {
|
|
|
6103
6184
|
|
|
6104
6185
|
/** Config for `inlined_embedding_responses` parameter. */
|
|
6105
6186
|
export declare class InlinedEmbedContentResponse {
|
|
6106
|
-
/** The response to the request.
|
|
6107
|
-
*/
|
|
6187
|
+
/** Output only. The response to the request. */
|
|
6108
6188
|
response?: SingleEmbedContentResponse;
|
|
6109
|
-
/** The error encountered while processing the request.
|
|
6110
|
-
*/
|
|
6189
|
+
/** Output only. The error encountered while processing the request. */
|
|
6111
6190
|
error?: JobError;
|
|
6191
|
+
/** Output only. The metadata associated with the request. */
|
|
6192
|
+
metadata?: Record<string, unknown>;
|
|
6112
6193
|
}
|
|
6113
6194
|
|
|
6114
6195
|
/** Config for inlined request. */
|
|
@@ -6143,20 +6224,20 @@ export declare class InlinedResponse {
|
|
|
6143
6224
|
*/
|
|
6144
6225
|
declare interface Interaction {
|
|
6145
6226
|
/**
|
|
6146
|
-
* Output only. A unique identifier for the interaction completion.
|
|
6227
|
+
* Required. Output only. A unique identifier for the interaction completion.
|
|
6147
6228
|
*/
|
|
6148
6229
|
id: string;
|
|
6149
6230
|
/**
|
|
6150
|
-
* Output only. The time at which the response was created in ISO 8601 format
|
|
6231
|
+
* Required. Output only. The time at which the response was created in ISO 8601 format
|
|
6151
6232
|
* (YYYY-MM-DDThh:mm:ssZ).
|
|
6152
6233
|
*/
|
|
6153
6234
|
created: string;
|
|
6154
6235
|
/**
|
|
6155
|
-
* Output only. The status of the interaction.
|
|
6236
|
+
* Required. Output only. The status of the interaction.
|
|
6156
6237
|
*/
|
|
6157
6238
|
status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
|
|
6158
6239
|
/**
|
|
6159
|
-
* Output only. The time at which the response was last updated in ISO 8601 format
|
|
6240
|
+
* Required. Output only. The time at which the response was last updated in ISO 8601 format
|
|
6160
6241
|
* (YYYY-MM-DDThh:mm:ssZ).
|
|
6161
6242
|
*/
|
|
6162
6243
|
updated: string;
|
|
@@ -6171,7 +6252,7 @@ declare interface Interaction {
|
|
|
6171
6252
|
/**
|
|
6172
6253
|
* The input for the interaction.
|
|
6173
6254
|
*/
|
|
6174
|
-
input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent |
|
|
6255
|
+
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;
|
|
6175
6256
|
/**
|
|
6176
6257
|
* The name of the `Model` used for generating the interaction.
|
|
6177
6258
|
*/
|
|
@@ -6201,6 +6282,10 @@ declare interface Interaction {
|
|
|
6201
6282
|
* Output only. The role of the interaction.
|
|
6202
6283
|
*/
|
|
6203
6284
|
role?: string;
|
|
6285
|
+
/**
|
|
6286
|
+
* The service tier for the interaction.
|
|
6287
|
+
*/
|
|
6288
|
+
service_tier?: 'flex' | 'standard' | 'priority';
|
|
6204
6289
|
/**
|
|
6205
6290
|
* System instruction for the interaction.
|
|
6206
6291
|
*/
|
|
@@ -6225,12 +6310,13 @@ declare interface InteractionCancelParams {
|
|
|
6225
6310
|
declare interface InteractionCompleteEvent {
|
|
6226
6311
|
event_type: 'interaction.complete';
|
|
6227
6312
|
/**
|
|
6228
|
-
* The completed interaction with empty outputs to reduce the payload size.
|
|
6313
|
+
* Required. The completed interaction with empty outputs to reduce the payload size.
|
|
6229
6314
|
* Use the preceding ContentDelta events for the actual output.
|
|
6230
6315
|
*/
|
|
6231
6316
|
interaction: Interaction;
|
|
6232
6317
|
/**
|
|
6233
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6318
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6319
|
+
* this event.
|
|
6234
6320
|
*/
|
|
6235
6321
|
event_id?: string;
|
|
6236
6322
|
}
|
|
@@ -6378,7 +6464,8 @@ declare interface InteractionStartEvent {
|
|
|
6378
6464
|
*/
|
|
6379
6465
|
interaction: Interaction;
|
|
6380
6466
|
/**
|
|
6381
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6467
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6468
|
+
* this event.
|
|
6382
6469
|
*/
|
|
6383
6470
|
event_id?: string;
|
|
6384
6471
|
}
|
|
@@ -6388,7 +6475,8 @@ declare interface InteractionStatusUpdate {
|
|
|
6388
6475
|
interaction_id: string;
|
|
6389
6476
|
status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
|
|
6390
6477
|
/**
|
|
6391
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6478
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6479
|
+
* this event.
|
|
6392
6480
|
*/
|
|
6393
6481
|
event_id?: string;
|
|
6394
6482
|
}
|
|
@@ -6630,6 +6718,7 @@ export declare interface ListFileSearchStoresParameters {
|
|
|
6630
6718
|
export declare class ListFileSearchStoresResponse {
|
|
6631
6719
|
/** Used to retain the full HTTP response. */
|
|
6632
6720
|
sdkHttpResponse?: HttpResponse;
|
|
6721
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. */
|
|
6633
6722
|
nextPageToken?: string;
|
|
6634
6723
|
/** The returned file search stores. */
|
|
6635
6724
|
fileSearchStores?: FileSearchStore[];
|
|
@@ -7498,6 +7587,8 @@ export declare interface LogprobsResult {
|
|
|
7498
7587
|
chosenCandidates?: LogprobsResultCandidate[];
|
|
7499
7588
|
/** 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. */
|
|
7500
7589
|
topCandidates?: LogprobsResultTopCandidates[];
|
|
7590
|
+
/** Sum of log probabilities for all tokens. This field is not supported in Vertex AI. */
|
|
7591
|
+
logProbabilitySum?: number;
|
|
7501
7592
|
}
|
|
7502
7593
|
|
|
7503
7594
|
/** A single token and its associated log probability. */
|
|
@@ -7573,21 +7664,21 @@ export declare interface McpServer {
|
|
|
7573
7664
|
*/
|
|
7574
7665
|
declare interface MCPServerToolCallContent {
|
|
7575
7666
|
/**
|
|
7576
|
-
* A unique ID for this specific tool call.
|
|
7667
|
+
* Required. A unique ID for this specific tool call.
|
|
7577
7668
|
*/
|
|
7578
7669
|
id: string;
|
|
7579
7670
|
/**
|
|
7580
|
-
* The JSON object of arguments for the function.
|
|
7671
|
+
* Required. The JSON object of arguments for the function.
|
|
7581
7672
|
*/
|
|
7582
7673
|
arguments: {
|
|
7583
7674
|
[key: string]: unknown;
|
|
7584
7675
|
};
|
|
7585
7676
|
/**
|
|
7586
|
-
* The name of the tool which was called.
|
|
7677
|
+
* Required. The name of the tool which was called.
|
|
7587
7678
|
*/
|
|
7588
7679
|
name: string;
|
|
7589
7680
|
/**
|
|
7590
|
-
* The name of the used MCP server.
|
|
7681
|
+
* Required. The name of the used MCP server.
|
|
7591
7682
|
*/
|
|
7592
7683
|
server_name: string;
|
|
7593
7684
|
type: 'mcp_server_tool_call';
|
|
@@ -7602,7 +7693,7 @@ declare interface MCPServerToolCallContent {
|
|
|
7602
7693
|
*/
|
|
7603
7694
|
declare interface MCPServerToolResultContent {
|
|
7604
7695
|
/**
|
|
7605
|
-
* ID to match the ID from the
|
|
7696
|
+
* Required. ID to match the ID from the function call block.
|
|
7606
7697
|
*/
|
|
7607
7698
|
call_id: string;
|
|
7608
7699
|
/**
|
|
@@ -7778,7 +7869,7 @@ export declare interface Model {
|
|
|
7778
7869
|
/**
|
|
7779
7870
|
* The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
|
|
7780
7871
|
*/
|
|
7781
|
-
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 & {});
|
|
7872
|
+
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 & {});
|
|
7782
7873
|
|
|
7783
7874
|
/** 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. */
|
|
7784
7875
|
export declare interface ModelArmorConfig {
|
|
@@ -8184,6 +8275,52 @@ export declare interface ModelSelectionConfig {
|
|
|
8184
8275
|
featureSelectionPreference?: FeatureSelectionPreference;
|
|
8185
8276
|
}
|
|
8186
8277
|
|
|
8278
|
+
/** The stage of the underlying model. This enum is not supported in Vertex AI. */
|
|
8279
|
+
export declare enum ModelStage {
|
|
8280
|
+
/**
|
|
8281
|
+
* Unspecified model stage.
|
|
8282
|
+
*/
|
|
8283
|
+
MODEL_STAGE_UNSPECIFIED = "MODEL_STAGE_UNSPECIFIED",
|
|
8284
|
+
/**
|
|
8285
|
+
* The underlying model is subject to lots of tunings.
|
|
8286
|
+
*/
|
|
8287
|
+
UNSTABLE_EXPERIMENTAL = "UNSTABLE_EXPERIMENTAL",
|
|
8288
|
+
/**
|
|
8289
|
+
* Models in this stage are for experimental purposes only.
|
|
8290
|
+
*/
|
|
8291
|
+
EXPERIMENTAL = "EXPERIMENTAL",
|
|
8292
|
+
/**
|
|
8293
|
+
* Models in this stage are more mature than experimental models.
|
|
8294
|
+
*/
|
|
8295
|
+
PREVIEW = "PREVIEW",
|
|
8296
|
+
/**
|
|
8297
|
+
* Models in this stage are considered stable and ready for production use.
|
|
8298
|
+
*/
|
|
8299
|
+
STABLE = "STABLE",
|
|
8300
|
+
/**
|
|
8301
|
+
* 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.
|
|
8302
|
+
*/
|
|
8303
|
+
LEGACY = "LEGACY",
|
|
8304
|
+
/**
|
|
8305
|
+
* Models in this stage are deprecated. These models cannot be used.
|
|
8306
|
+
*/
|
|
8307
|
+
DEPRECATED = "DEPRECATED",
|
|
8308
|
+
/**
|
|
8309
|
+
* Models in this stage are retired. These models cannot be used.
|
|
8310
|
+
*/
|
|
8311
|
+
RETIRED = "RETIRED"
|
|
8312
|
+
}
|
|
8313
|
+
|
|
8314
|
+
/** 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. */
|
|
8315
|
+
export declare interface ModelStatus {
|
|
8316
|
+
/** A message explaining the model status. */
|
|
8317
|
+
message?: string;
|
|
8318
|
+
/** The stage of the underlying model. */
|
|
8319
|
+
modelStage?: ModelStage;
|
|
8320
|
+
/** The time at which the model will be retired. */
|
|
8321
|
+
retirementTime?: string;
|
|
8322
|
+
}
|
|
8323
|
+
|
|
8187
8324
|
/** Configuration for a multi-speaker text-to-speech request. */
|
|
8188
8325
|
export declare interface MultiSpeakerVoiceConfig {
|
|
8189
8326
|
/** Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. */
|
|
@@ -8269,7 +8406,6 @@ export declare interface Operation<T> {
|
|
|
8269
8406
|
response?: T;
|
|
8270
8407
|
/**
|
|
8271
8408
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
8272
|
-
* @internal
|
|
8273
8409
|
*/
|
|
8274
8410
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<T>;
|
|
8275
8411
|
}
|
|
@@ -8548,6 +8684,8 @@ export declare interface Part {
|
|
|
8548
8684
|
toolCall?: ToolCall;
|
|
8549
8685
|
/** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
|
|
8550
8686
|
toolResponse?: ToolResponse;
|
|
8687
|
+
/** 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. */
|
|
8688
|
+
partMetadata?: Record<string, unknown>;
|
|
8551
8689
|
}
|
|
8552
8690
|
|
|
8553
8691
|
/** Partial argument value of the function call. This data type is not supported in Gemini API. */
|
|
@@ -8689,6 +8827,8 @@ declare interface PlaceCitation {
|
|
|
8689
8827
|
review_snippets?: Array<PlaceCitation.ReviewSnippet>;
|
|
8690
8828
|
/**
|
|
8691
8829
|
* Start of segment of the response that is attributed to this source.
|
|
8830
|
+
*
|
|
8831
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
8692
8832
|
*/
|
|
8693
8833
|
start_index?: number;
|
|
8694
8834
|
/**
|
|
@@ -8806,7 +8946,7 @@ export declare interface ProductImage {
|
|
|
8806
8946
|
productImage?: Image_2;
|
|
8807
8947
|
}
|
|
8808
8948
|
|
|
8809
|
-
/**
|
|
8949
|
+
/** 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. */
|
|
8810
8950
|
export declare enum ProminentPeople {
|
|
8811
8951
|
/**
|
|
8812
8952
|
* Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
|
|
@@ -9083,12 +9223,14 @@ export declare class ReplayResponse {
|
|
|
9083
9223
|
sdkResponseSegments?: Record<string, unknown>[];
|
|
9084
9224
|
}
|
|
9085
9225
|
|
|
9086
|
-
/**
|
|
9226
|
+
/** The configuration for the replicated voice to use. */
|
|
9087
9227
|
export declare interface ReplicatedVoiceConfig {
|
|
9088
|
-
/** The
|
|
9228
|
+
/** The mimetype of the voice sample. The only currently supported
|
|
9229
|
+
value is `audio/wav`. This represents 16-bit signed little-endian wav
|
|
9230
|
+
data, with a 24kHz sampling rate.
|
|
9089
9231
|
*/
|
|
9090
9232
|
mimeType?: string;
|
|
9091
|
-
/** The sample
|
|
9233
|
+
/** The sample of the custom voice.
|
|
9092
9234
|
|
|
9093
9235
|
* @remarks Encoded as base64 string. */
|
|
9094
9236
|
voiceSampleAudio?: string;
|
|
@@ -9332,7 +9474,7 @@ export declare interface Schema {
|
|
|
9332
9474
|
anyOf?: Schema[];
|
|
9333
9475
|
/** Optional. Default value to use if the field is not specified. */
|
|
9334
9476
|
default?: unknown;
|
|
9335
|
-
/** Optional.
|
|
9477
|
+
/** 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. */
|
|
9336
9478
|
description?: string;
|
|
9337
9479
|
/** 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"]}` */
|
|
9338
9480
|
enum?: string[];
|
|
@@ -9392,12 +9534,11 @@ export declare interface SearchEntryPoint {
|
|
|
9392
9534
|
sdkBlob?: string;
|
|
9393
9535
|
}
|
|
9394
9536
|
|
|
9395
|
-
/**
|
|
9537
|
+
/** Different types of search that can be enabled on the GoogleSearch tool. */
|
|
9396
9538
|
export declare interface SearchTypes {
|
|
9397
|
-
/** Setting this field enables web search. Only text results are
|
|
9398
|
-
returned. */
|
|
9539
|
+
/** Optional. Setting this field enables web search. Only text results are returned. */
|
|
9399
9540
|
webSearch?: WebSearch;
|
|
9400
|
-
/** Setting this field enables image search. Image bytes are returned. */
|
|
9541
|
+
/** Optional. Setting this field enables image search. Image bytes are returned. */
|
|
9401
9542
|
imageSearch?: ImageSearch;
|
|
9402
9543
|
}
|
|
9403
9544
|
|
|
@@ -9510,6 +9651,26 @@ export declare interface SendMessageParameters {
|
|
|
9510
9651
|
config?: GenerateContentConfig;
|
|
9511
9652
|
}
|
|
9512
9653
|
|
|
9654
|
+
/** Pricing and performance service tier. */
|
|
9655
|
+
export declare enum ServiceTier {
|
|
9656
|
+
/**
|
|
9657
|
+
* Default service tier, which is standard.
|
|
9658
|
+
*/
|
|
9659
|
+
UNSPECIFIED = "unspecified",
|
|
9660
|
+
/**
|
|
9661
|
+
* Flex service tier.
|
|
9662
|
+
*/
|
|
9663
|
+
FLEX = "flex",
|
|
9664
|
+
/**
|
|
9665
|
+
* Standard service tier.
|
|
9666
|
+
*/
|
|
9667
|
+
STANDARD = "standard",
|
|
9668
|
+
/**
|
|
9669
|
+
* Priority service tier.
|
|
9670
|
+
*/
|
|
9671
|
+
PRIORITY = "priority"
|
|
9672
|
+
}
|
|
9673
|
+
|
|
9513
9674
|
/**
|
|
9514
9675
|
Represents a connection to the API.
|
|
9515
9676
|
|
|
@@ -9699,8 +9860,9 @@ export declare interface SpeakerVoiceConfig {
|
|
|
9699
9860
|
voiceConfig?: VoiceConfig;
|
|
9700
9861
|
}
|
|
9701
9862
|
|
|
9863
|
+
/** Config for speech generation and transcription. */
|
|
9702
9864
|
export declare interface SpeechConfig {
|
|
9703
|
-
/**
|
|
9865
|
+
/** The configuration in case of single-voice output. */
|
|
9704
9866
|
voiceConfig?: VoiceConfig;
|
|
9705
9867
|
/** Optional. The language code (ISO 639-1) for the speech synthesis. */
|
|
9706
9868
|
languageCode?: string;
|
|
@@ -9969,7 +10131,7 @@ export declare interface TestTableItem {
|
|
|
9969
10131
|
*/
|
|
9970
10132
|
declare interface TextContent {
|
|
9971
10133
|
/**
|
|
9972
|
-
* The text content.
|
|
10134
|
+
* Required. The text content.
|
|
9973
10135
|
*/
|
|
9974
10136
|
text: string;
|
|
9975
10137
|
type: 'text';
|
|
@@ -9997,6 +10159,10 @@ export declare enum ThinkingLevel {
|
|
|
9997
10159
|
* Unspecified thinking level.
|
|
9998
10160
|
*/
|
|
9999
10161
|
THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
|
|
10162
|
+
/**
|
|
10163
|
+
* MINIMAL thinking level.
|
|
10164
|
+
*/
|
|
10165
|
+
MINIMAL = "MINIMAL",
|
|
10000
10166
|
/**
|
|
10001
10167
|
* Low thinking level.
|
|
10002
10168
|
*/
|
|
@@ -10008,11 +10174,7 @@ export declare enum ThinkingLevel {
|
|
|
10008
10174
|
/**
|
|
10009
10175
|
* High thinking level.
|
|
10010
10176
|
*/
|
|
10011
|
-
HIGH = "HIGH"
|
|
10012
|
-
/**
|
|
10013
|
-
* MINIMAL thinking level.
|
|
10014
|
-
*/
|
|
10015
|
-
MINIMAL = "MINIMAL"
|
|
10177
|
+
HIGH = "HIGH"
|
|
10016
10178
|
}
|
|
10017
10179
|
|
|
10018
10180
|
declare type ThinkingLevel_2 = 'minimal' | 'low' | 'medium' | 'high';
|
|
@@ -10140,9 +10302,9 @@ export declare interface Tool {
|
|
|
10140
10302
|
computer. If enabled, it automatically populates computer-use specific
|
|
10141
10303
|
Function Declarations. */
|
|
10142
10304
|
computerUse?: ComputerUse;
|
|
10143
|
-
/** Optional. Tool to retrieve knowledge from
|
|
10305
|
+
/** Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora. This field is not supported in Vertex AI. */
|
|
10144
10306
|
fileSearch?: FileSearch;
|
|
10145
|
-
/**
|
|
10307
|
+
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
10146
10308
|
googleSearch?: GoogleSearch;
|
|
10147
10309
|
/** Optional. Tool that allows grounding the model's response with
|
|
10148
10310
|
geospatial context related to the user's query. */
|
|
@@ -10166,19 +10328,9 @@ export declare interface Tool {
|
|
|
10166
10328
|
/**
|
|
10167
10329
|
* A tool that can be used by the model.
|
|
10168
10330
|
*/
|
|
10169
|
-
declare type Tool_2 = Function_2 | Tool_2.
|
|
10331
|
+
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;
|
|
10170
10332
|
|
|
10171
10333
|
declare namespace Tool_2 {
|
|
10172
|
-
/**
|
|
10173
|
-
* A tool that can be used by the model to search Google.
|
|
10174
|
-
*/
|
|
10175
|
-
interface GoogleSearch {
|
|
10176
|
-
type: 'google_search';
|
|
10177
|
-
/**
|
|
10178
|
-
* The types of search grounding to enable.
|
|
10179
|
-
*/
|
|
10180
|
-
search_types?: Array<'web_search' | 'image_search'>;
|
|
10181
|
-
}
|
|
10182
10334
|
/**
|
|
10183
10335
|
* A tool that can be used by the model to execute code.
|
|
10184
10336
|
*/
|
|
@@ -10230,6 +10382,16 @@ declare namespace Tool_2 {
|
|
|
10230
10382
|
*/
|
|
10231
10383
|
url?: string;
|
|
10232
10384
|
}
|
|
10385
|
+
/**
|
|
10386
|
+
* A tool that can be used by the model to search Google.
|
|
10387
|
+
*/
|
|
10388
|
+
interface GoogleSearch {
|
|
10389
|
+
type: 'google_search';
|
|
10390
|
+
/**
|
|
10391
|
+
* The types of search grounding to enable.
|
|
10392
|
+
*/
|
|
10393
|
+
search_types?: Array<'web_search' | 'image_search'>;
|
|
10394
|
+
}
|
|
10233
10395
|
/**
|
|
10234
10396
|
* A tool that can be used by the model to search files.
|
|
10235
10397
|
*/
|
|
@@ -10252,6 +10414,7 @@ declare namespace Tool_2 {
|
|
|
10252
10414
|
* A tool that can be used by the model to call Google Maps.
|
|
10253
10415
|
*/
|
|
10254
10416
|
interface GoogleMaps {
|
|
10417
|
+
type: 'google_maps';
|
|
10255
10418
|
/**
|
|
10256
10419
|
* Whether to return a widget context token in the tool call result of the
|
|
10257
10420
|
* response.
|
|
@@ -10265,7 +10428,6 @@ declare namespace Tool_2 {
|
|
|
10265
10428
|
* The longitude of the user's location.
|
|
10266
10429
|
*/
|
|
10267
10430
|
longitude?: number;
|
|
10268
|
-
type?: 'google_maps';
|
|
10269
10431
|
}
|
|
10270
10432
|
}
|
|
10271
10433
|
|
|
@@ -10393,11 +10555,9 @@ export declare enum TrafficType {
|
|
|
10393
10555
|
|
|
10394
10556
|
/** Audio transcription in Server Conent. */
|
|
10395
10557
|
export declare interface Transcription {
|
|
10396
|
-
/** Transcription text.
|
|
10397
|
-
*/
|
|
10558
|
+
/** Optional. Transcription text. */
|
|
10398
10559
|
text?: string;
|
|
10399
|
-
/** The bool indicates the end of the transcription.
|
|
10400
|
-
*/
|
|
10560
|
+
/** Optional. The bool indicates the end of the transcription. */
|
|
10401
10561
|
finished?: boolean;
|
|
10402
10562
|
}
|
|
10403
10563
|
|
|
@@ -10535,6 +10695,18 @@ export declare interface TuningJob {
|
|
|
10535
10695
|
tuningJobState?: TuningJobState;
|
|
10536
10696
|
/** Tuning Spec for Veo Tuning. */
|
|
10537
10697
|
veoTuningSpec?: VeoTuningSpec;
|
|
10698
|
+
/** Optional. Spec for creating a distillation dataset. */
|
|
10699
|
+
distillationSamplingSpec?: DistillationSamplingSpec;
|
|
10700
|
+
/** Output only. Tuning Job metadata. */
|
|
10701
|
+
tuningJobMetadata?: TuningJobMetadata;
|
|
10702
|
+
}
|
|
10703
|
+
|
|
10704
|
+
/** Tuning job metadata. This data type is not supported in Gemini API. */
|
|
10705
|
+
export declare interface TuningJobMetadata {
|
|
10706
|
+
/** Output only. The number of epochs that have been completed. */
|
|
10707
|
+
completedEpochCount?: string;
|
|
10708
|
+
/** Output only. The number of steps that have been completed. Set for Multi-Step RL. */
|
|
10709
|
+
completedStepCount?: string;
|
|
10538
10710
|
}
|
|
10539
10711
|
|
|
10540
10712
|
/** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
|
|
@@ -10695,10 +10867,7 @@ export declare interface TuningValidationDataset {
|
|
|
10695
10867
|
}
|
|
10696
10868
|
|
|
10697
10869
|
declare interface Turn {
|
|
10698
|
-
|
|
10699
|
-
* The content of the turn.
|
|
10700
|
-
*/
|
|
10701
|
-
content?: string | Array<Content_2>;
|
|
10870
|
+
content?: Array<Content_2> | string;
|
|
10702
10871
|
/**
|
|
10703
10872
|
* The originator of this turn. Must be user for input or model for
|
|
10704
10873
|
* model output.
|
|
@@ -10739,7 +10908,11 @@ export declare enum TurnCoverage {
|
|
|
10739
10908
|
/**
|
|
10740
10909
|
* The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
|
|
10741
10910
|
*/
|
|
10742
|
-
TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
|
|
10911
|
+
TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT",
|
|
10912
|
+
/**
|
|
10913
|
+
* Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
|
|
10914
|
+
*/
|
|
10915
|
+
TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
|
|
10743
10916
|
}
|
|
10744
10917
|
|
|
10745
10918
|
/** Data type of the schema field. */
|
|
@@ -10795,15 +10968,17 @@ declare namespace types {
|
|
|
10795
10968
|
Outcome,
|
|
10796
10969
|
FunctionResponseScheduling,
|
|
10797
10970
|
Type,
|
|
10798
|
-
|
|
10971
|
+
Environment,
|
|
10799
10972
|
AuthType,
|
|
10800
10973
|
HttpElementLocation,
|
|
10801
10974
|
ApiSpec,
|
|
10975
|
+
PhishBlockThreshold,
|
|
10802
10976
|
Behavior,
|
|
10803
10977
|
DynamicRetrievalConfigMode,
|
|
10804
10978
|
FunctionCallingConfigMode,
|
|
10805
10979
|
ThinkingLevel,
|
|
10806
10980
|
PersonGeneration,
|
|
10981
|
+
ProminentPeople,
|
|
10807
10982
|
HarmCategory,
|
|
10808
10983
|
HarmBlockMethod,
|
|
10809
10984
|
HarmBlockThreshold,
|
|
@@ -10814,6 +10989,7 @@ declare namespace types {
|
|
|
10814
10989
|
BlockedReason,
|
|
10815
10990
|
TrafficType,
|
|
10816
10991
|
Modality,
|
|
10992
|
+
ModelStage,
|
|
10817
10993
|
MediaResolution,
|
|
10818
10994
|
TuningMode,
|
|
10819
10995
|
AdapterSize,
|
|
@@ -10822,12 +10998,12 @@ declare namespace types {
|
|
|
10822
10998
|
AggregationMetric,
|
|
10823
10999
|
PairwiseChoice,
|
|
10824
11000
|
TuningTask,
|
|
11001
|
+
DocumentState,
|
|
10825
11002
|
PartMediaResolutionLevel,
|
|
10826
11003
|
ToolType,
|
|
10827
11004
|
ResourceScope,
|
|
11005
|
+
ServiceTier,
|
|
10828
11006
|
FeatureSelectionPreference,
|
|
10829
|
-
Environment,
|
|
10830
|
-
ProminentPeople,
|
|
10831
11007
|
EmbeddingApiType,
|
|
10832
11008
|
SafetyFilterLevel,
|
|
10833
11009
|
ImagePromptLanguage,
|
|
@@ -10840,7 +11016,6 @@ declare namespace types {
|
|
|
10840
11016
|
VideoGenerationMaskMode,
|
|
10841
11017
|
VideoCompressionQuality,
|
|
10842
11018
|
TuningMethod,
|
|
10843
|
-
DocumentState,
|
|
10844
11019
|
FileState,
|
|
10845
11020
|
FileSource,
|
|
10846
11021
|
TurnCompleteReason,
|
|
@@ -10875,12 +11050,6 @@ declare namespace types {
|
|
|
10875
11050
|
Schema,
|
|
10876
11051
|
ModelSelectionConfig,
|
|
10877
11052
|
ComputerUse,
|
|
10878
|
-
FileSearch,
|
|
10879
|
-
WebSearch,
|
|
10880
|
-
ImageSearch,
|
|
10881
|
-
SearchTypes,
|
|
10882
|
-
Interval,
|
|
10883
|
-
GoogleSearch,
|
|
10884
11053
|
ApiKeyConfig,
|
|
10885
11054
|
AuthConfigGoogleServiceAccountConfig,
|
|
10886
11055
|
AuthConfigHttpBasicAuthConfig,
|
|
@@ -10904,6 +11073,12 @@ declare namespace types {
|
|
|
10904
11073
|
RagRetrievalConfig,
|
|
10905
11074
|
VertexRagStore,
|
|
10906
11075
|
Retrieval,
|
|
11076
|
+
FileSearch,
|
|
11077
|
+
WebSearch,
|
|
11078
|
+
ImageSearch,
|
|
11079
|
+
SearchTypes,
|
|
11080
|
+
Interval,
|
|
11081
|
+
GoogleSearch,
|
|
10907
11082
|
ToolCodeExecution,
|
|
10908
11083
|
EnterpriseWebSearch,
|
|
10909
11084
|
FunctionDeclaration,
|
|
@@ -10940,13 +11115,16 @@ declare namespace types {
|
|
|
10940
11115
|
GoogleTypeDate,
|
|
10941
11116
|
Citation,
|
|
10942
11117
|
CitationMetadata,
|
|
10943
|
-
GroundingChunkImage,
|
|
10944
11118
|
GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
|
|
10945
11119
|
GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
|
|
10946
11120
|
GroundingChunkMapsPlaceAnswerSources,
|
|
11121
|
+
GroundingChunkMapsRoute,
|
|
10947
11122
|
GroundingChunkMaps,
|
|
11123
|
+
GroundingChunkImage,
|
|
10948
11124
|
RagChunkPageSpan,
|
|
10949
11125
|
RagChunk,
|
|
11126
|
+
GroundingChunkStringList,
|
|
11127
|
+
GroundingChunkCustomMetadata,
|
|
10950
11128
|
GroundingChunkRetrievedContext,
|
|
10951
11129
|
GroundingChunkWeb,
|
|
10952
11130
|
GroundingChunk,
|
|
@@ -10966,6 +11144,7 @@ declare namespace types {
|
|
|
10966
11144
|
GenerateContentResponsePromptFeedback,
|
|
10967
11145
|
ModalityTokenCount,
|
|
10968
11146
|
GenerateContentResponseUsageMetadata,
|
|
11147
|
+
ModelStatus,
|
|
10969
11148
|
GenerateContentResponse,
|
|
10970
11149
|
ReferenceImage,
|
|
10971
11150
|
EditImageParameters,
|
|
@@ -11076,6 +11255,8 @@ declare namespace types {
|
|
|
11076
11255
|
FullFineTuningSpec,
|
|
11077
11256
|
VeoHyperParameters,
|
|
11078
11257
|
VeoTuningSpec,
|
|
11258
|
+
DistillationSamplingSpec,
|
|
11259
|
+
TuningJobMetadata,
|
|
11079
11260
|
TuningJob,
|
|
11080
11261
|
ListTuningJobsConfig,
|
|
11081
11262
|
ListTuningJobsParameters,
|
|
@@ -11449,7 +11630,6 @@ export declare class UploadToFileSearchStoreOperation implements Operation<Uploa
|
|
|
11449
11630
|
response?: UploadToFileSearchStoreResponse;
|
|
11450
11631
|
/**
|
|
11451
11632
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
11452
|
-
* @internal
|
|
11453
11633
|
*/
|
|
11454
11634
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse>;
|
|
11455
11635
|
/** The full HTTP response. */
|
|
@@ -11562,6 +11742,8 @@ declare interface URLCitation {
|
|
|
11562
11742
|
end_index?: number;
|
|
11563
11743
|
/**
|
|
11564
11744
|
* Start of segment of the response that is attributed to this source.
|
|
11745
|
+
*
|
|
11746
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
11565
11747
|
*/
|
|
11566
11748
|
start_index?: number;
|
|
11567
11749
|
/**
|
|
@@ -11593,11 +11775,11 @@ declare interface URLContextCallArguments {
|
|
|
11593
11775
|
*/
|
|
11594
11776
|
declare interface URLContextCallContent {
|
|
11595
11777
|
/**
|
|
11596
|
-
* A unique ID for this specific tool call.
|
|
11778
|
+
* Required. A unique ID for this specific tool call.
|
|
11597
11779
|
*/
|
|
11598
11780
|
id: string;
|
|
11599
11781
|
/**
|
|
11600
|
-
* The arguments to pass to the URL context.
|
|
11782
|
+
* Required. The arguments to pass to the URL context.
|
|
11601
11783
|
*/
|
|
11602
11784
|
arguments: URLContextCallArguments;
|
|
11603
11785
|
type: 'url_context_call';
|
|
@@ -11632,11 +11814,11 @@ declare interface URLContextResult {
|
|
|
11632
11814
|
*/
|
|
11633
11815
|
declare interface URLContextResultContent {
|
|
11634
11816
|
/**
|
|
11635
|
-
* ID to match the ID from the
|
|
11817
|
+
* Required. ID to match the ID from the function call block.
|
|
11636
11818
|
*/
|
|
11637
11819
|
call_id: string;
|
|
11638
11820
|
/**
|
|
11639
|
-
* The results of the URL context.
|
|
11821
|
+
* Required. The results of the URL context.
|
|
11640
11822
|
*/
|
|
11641
11823
|
result: Array<URLContextResult>;
|
|
11642
11824
|
type: 'url_context_result';
|
|
@@ -12041,16 +12223,17 @@ export declare enum VoiceActivityType {
|
|
|
12041
12223
|
ACTIVITY_END = "ACTIVITY_END"
|
|
12042
12224
|
}
|
|
12043
12225
|
|
|
12226
|
+
/** The configuration for the voice to use. */
|
|
12044
12227
|
export declare interface VoiceConfig {
|
|
12045
|
-
/**
|
|
12228
|
+
/** The configuration for a replicated voice, which is a clone of a
|
|
12229
|
+
user's voice that can be used for speech synthesis. If this is unset, a
|
|
12230
|
+
default voice is used. */
|
|
12046
12231
|
replicatedVoiceConfig?: ReplicatedVoiceConfig;
|
|
12047
12232
|
/** The configuration for a prebuilt voice. */
|
|
12048
12233
|
prebuiltVoiceConfig?: PrebuiltVoiceConfig;
|
|
12049
12234
|
}
|
|
12050
12235
|
|
|
12051
|
-
/** Standard web search for grounding and related configurations.
|
|
12052
|
-
|
|
12053
|
-
Only text results are returned. */
|
|
12236
|
+
/** Standard web search for grounding and related configurations. Only text results are returned. */
|
|
12054
12237
|
export declare interface WebSearch {
|
|
12055
12238
|
}
|
|
12056
12239
|
|