@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/node/node.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
|
/**
|
|
@@ -5293,7 +5352,7 @@ declare interface GoogleMapsCallArguments {
|
|
|
5293
5352
|
*/
|
|
5294
5353
|
declare interface GoogleMapsCallContent {
|
|
5295
5354
|
/**
|
|
5296
|
-
* A unique ID for this specific tool call.
|
|
5355
|
+
* Required. A unique ID for this specific tool call.
|
|
5297
5356
|
*/
|
|
5298
5357
|
id: string;
|
|
5299
5358
|
type: 'google_maps_call';
|
|
@@ -5368,11 +5427,11 @@ declare namespace GoogleMapsResult {
|
|
|
5368
5427
|
*/
|
|
5369
5428
|
declare interface GoogleMapsResultContent {
|
|
5370
5429
|
/**
|
|
5371
|
-
* ID to match the ID from the
|
|
5430
|
+
* Required. ID to match the ID from the function call block.
|
|
5372
5431
|
*/
|
|
5373
5432
|
call_id: string;
|
|
5374
5433
|
/**
|
|
5375
|
-
* The results of the Google Maps.
|
|
5434
|
+
* Required. The results of the Google Maps.
|
|
5376
5435
|
*/
|
|
5377
5436
|
result: Array<GoogleMapsResult>;
|
|
5378
5437
|
type: 'google_maps_result';
|
|
@@ -5392,9 +5451,9 @@ export declare interface GoogleRpcStatus {
|
|
|
5392
5451
|
message?: string;
|
|
5393
5452
|
}
|
|
5394
5453
|
|
|
5395
|
-
/** Tool to support
|
|
5454
|
+
/** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
5396
5455
|
export declare interface GoogleSearch {
|
|
5397
|
-
/**
|
|
5456
|
+
/** Optional. The set of search types to enable. If not set, web search is enabled by default. */
|
|
5398
5457
|
searchTypes?: SearchTypes;
|
|
5399
5458
|
/** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */
|
|
5400
5459
|
blockingConfidence?: PhishBlockThreshold;
|
|
@@ -5419,11 +5478,11 @@ declare interface GoogleSearchCallArguments {
|
|
|
5419
5478
|
*/
|
|
5420
5479
|
declare interface GoogleSearchCallContent {
|
|
5421
5480
|
/**
|
|
5422
|
-
* A unique ID for this specific tool call.
|
|
5481
|
+
* Required. A unique ID for this specific tool call.
|
|
5423
5482
|
*/
|
|
5424
5483
|
id: string;
|
|
5425
5484
|
/**
|
|
5426
|
-
* The arguments to pass to Google Search.
|
|
5485
|
+
* Required. The arguments to pass to Google Search.
|
|
5427
5486
|
*/
|
|
5428
5487
|
arguments: GoogleSearchCallArguments;
|
|
5429
5488
|
type: 'google_search_call';
|
|
@@ -5452,11 +5511,11 @@ declare interface GoogleSearchResult {
|
|
|
5452
5511
|
*/
|
|
5453
5512
|
declare interface GoogleSearchResultContent {
|
|
5454
5513
|
/**
|
|
5455
|
-
* ID to match the ID from the
|
|
5514
|
+
* Required. ID to match the ID from the function call block.
|
|
5456
5515
|
*/
|
|
5457
5516
|
call_id: string;
|
|
5458
5517
|
/**
|
|
5459
|
-
* The results of the Google Search.
|
|
5518
|
+
* Required. The results of the Google Search.
|
|
5460
5519
|
*/
|
|
5461
5520
|
result: Array<GoogleSearchResult>;
|
|
5462
5521
|
type: 'google_search_result';
|
|
@@ -5492,9 +5551,7 @@ export declare interface GoogleTypeDate {
|
|
|
5492
5551
|
is enabled, the model returns a `GroundingChunk` that contains a reference to
|
|
5493
5552
|
the source of the information. */
|
|
5494
5553
|
export declare interface GroundingChunk {
|
|
5495
|
-
/** A grounding chunk from an image search result. See the `Image`
|
|
5496
|
-
message for details.
|
|
5497
|
-
*/
|
|
5554
|
+
/** A grounding chunk from an image search result. See the `Image` message for details. */
|
|
5498
5555
|
image?: GroundingChunkImage;
|
|
5499
5556
|
/** A `Maps` chunk is a piece of evidence that comes from Google Maps.
|
|
5500
5557
|
|
|
@@ -5502,17 +5559,25 @@ export declare interface GroundingChunk {
|
|
|
5502
5559
|
reviews. This is used to provide the user with rich, location-based
|
|
5503
5560
|
information. */
|
|
5504
5561
|
maps?: GroundingChunkMaps;
|
|
5505
|
-
/** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details
|
|
5562
|
+
/** A grounding chunk from a data source retrieved by a retrieval tool, such as Vertex AI Search. See the `RetrievedContext` message for details */
|
|
5506
5563
|
retrievedContext?: GroundingChunkRetrievedContext;
|
|
5507
5564
|
/** A grounding chunk from a web page, typically from Google Search. See the `Web` message for details. */
|
|
5508
5565
|
web?: GroundingChunkWeb;
|
|
5509
5566
|
}
|
|
5510
5567
|
|
|
5511
|
-
/**
|
|
5568
|
+
/** User provided metadata about the GroundingFact. This data type is not supported in Vertex AI. */
|
|
5569
|
+
export declare interface GroundingChunkCustomMetadata {
|
|
5570
|
+
/** The key of the metadata. */
|
|
5571
|
+
key?: string;
|
|
5572
|
+
/** Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. */
|
|
5573
|
+
numericValue?: number;
|
|
5574
|
+
/** Optional. A list of string values for the metadata. */
|
|
5575
|
+
stringListValue?: GroundingChunkStringList;
|
|
5576
|
+
/** Optional. The string value of the metadata. */
|
|
5577
|
+
stringValue?: string;
|
|
5578
|
+
}
|
|
5512
5579
|
|
|
5513
|
-
It contains the URI of the image search result and the URI of the image.
|
|
5514
|
-
This is used to provide the user with a link to the source of the
|
|
5515
|
-
information. */
|
|
5580
|
+
/** An `Image` chunk is a piece of evidence that comes from an image search result. It contains the URI of the image search result and the URI of the image. This is used to provide the user with a link to the source of the information. */
|
|
5516
5581
|
export declare interface GroundingChunkImage {
|
|
5517
5582
|
/** The URI of the image search result page. */
|
|
5518
5583
|
sourceUri?: string;
|
|
@@ -5544,6 +5609,8 @@ export declare interface GroundingChunkMaps {
|
|
|
5544
5609
|
title?: string;
|
|
5545
5610
|
/** The URI of the place. */
|
|
5546
5611
|
uri?: string;
|
|
5612
|
+
/** Output only. Route information. */
|
|
5613
|
+
route?: GroundingChunkMapsRoute;
|
|
5547
5614
|
}
|
|
5548
5615
|
|
|
5549
5616
|
/** The sources that were used to generate the place answer.
|
|
@@ -5587,11 +5654,21 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
|
5587
5654
|
title?: string;
|
|
5588
5655
|
}
|
|
5589
5656
|
|
|
5590
|
-
/**
|
|
5657
|
+
/** Route information from Google Maps. This data type is not supported in Gemini API. */
|
|
5658
|
+
export declare interface GroundingChunkMapsRoute {
|
|
5659
|
+
/** The total distance of the route, in meters. */
|
|
5660
|
+
distanceMeters?: number;
|
|
5661
|
+
/** The total duration of the route. */
|
|
5662
|
+
duration?: string;
|
|
5663
|
+
/** An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm */
|
|
5664
|
+
encodedPolyline?: string;
|
|
5665
|
+
}
|
|
5666
|
+
|
|
5667
|
+
/** Context retrieved from a data source to ground the model's response. This is used when a retrieval tool fetches information from a user-provided corpus or a public dataset. */
|
|
5591
5668
|
export declare interface GroundingChunkRetrievedContext {
|
|
5592
|
-
/** Output only. The full resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. */
|
|
5669
|
+
/** Output only. The full resource name of the referenced Vertex AI Search document. This is used to identify the specific document that was retrieved. The format is `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. This field is not supported in Gemini API. */
|
|
5593
5670
|
documentName?: string;
|
|
5594
|
-
/** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. */
|
|
5671
|
+
/** Additional context for a Retrieval-Augmented Generation (RAG) retrieval result. This is populated only when the RAG retrieval tool is used. This field is not supported in Gemini API. */
|
|
5595
5672
|
ragChunk?: RagChunk;
|
|
5596
5673
|
/** The content of the retrieved data source. */
|
|
5597
5674
|
text?: string;
|
|
@@ -5599,6 +5676,16 @@ export declare interface GroundingChunkRetrievedContext {
|
|
|
5599
5676
|
title?: string;
|
|
5600
5677
|
/** The URI of the retrieved data source. */
|
|
5601
5678
|
uri?: string;
|
|
5679
|
+
/** Optional. User-provided metadata about the retrieved context. This field is not supported in Vertex AI. */
|
|
5680
|
+
customMetadata?: GroundingChunkCustomMetadata[];
|
|
5681
|
+
/** Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`. This field is not supported in Vertex AI. */
|
|
5682
|
+
fileSearchStore?: string;
|
|
5683
|
+
}
|
|
5684
|
+
|
|
5685
|
+
/** A list of string values. This data type is not supported in Vertex AI. */
|
|
5686
|
+
export declare interface GroundingChunkStringList {
|
|
5687
|
+
/** The string values of the list. */
|
|
5688
|
+
values?: string[];
|
|
5602
5689
|
}
|
|
5603
5690
|
|
|
5604
5691
|
/** A `Web` chunk is a piece of evidence that comes from a web page. It contains the URI of the web page, the title of the page, and the domain of the page. This is used to provide the user with a link to the source of the information. */
|
|
@@ -5613,10 +5700,7 @@ export declare interface GroundingChunkWeb {
|
|
|
5613
5700
|
|
|
5614
5701
|
/** Information for various kinds of grounding. */
|
|
5615
5702
|
export declare interface GroundingMetadata {
|
|
5616
|
-
/** Optional. The image search queries that were used to generate the
|
|
5617
|
-
content. This field is populated only when the grounding source is Google
|
|
5618
|
-
Search with the Image Search search_type enabled.
|
|
5619
|
-
*/
|
|
5703
|
+
/** Optional. The image search queries that were used to generate the content. This field is populated only when the grounding source is Google Search with the Image Search search_type enabled. */
|
|
5620
5704
|
imageSearchQueries?: string[];
|
|
5621
5705
|
/** A list of supporting references retrieved from the grounding
|
|
5622
5706
|
source. This field is populated when the grounding source is Google
|
|
@@ -5632,7 +5716,7 @@ export declare interface GroundingMetadata {
|
|
|
5632
5716
|
searchEntryPoint?: SearchEntryPoint;
|
|
5633
5717
|
/** Web search queries for the following-up web search. */
|
|
5634
5718
|
webSearchQueries?: string[];
|
|
5635
|
-
/** Optional. Output only. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps.
|
|
5719
|
+
/** Optional. Output only. A token that can be used to render a Google Maps widget with the contextual data. This field is populated only when the grounding source is Google Maps. */
|
|
5636
5720
|
googleMapsWidgetContextToken?: string;
|
|
5637
5721
|
/** Optional. The queries that were executed by the retrieval tools. This field is populated only when the grounding source is a retrieval tool, such as Vertex AI Search. This field is not supported in Gemini API. */
|
|
5638
5722
|
retrievalQueries?: string[];
|
|
@@ -5662,6 +5746,8 @@ export declare interface GroundingSupport {
|
|
|
5662
5746
|
groundingChunkIndices?: number[];
|
|
5663
5747
|
/** Segment of the content this support belongs to. */
|
|
5664
5748
|
segment?: Segment;
|
|
5749
|
+
/** Indices into the `rendered_parts` field of the `GroundingMetadata` message. These indices specify which rendered parts are associated with this support message. */
|
|
5750
|
+
renderedParts?: number[];
|
|
5665
5751
|
}
|
|
5666
5752
|
|
|
5667
5753
|
/** The method for blocking content. If not specified, the default behavior is to use the probability score. This enum is not supported in Gemini API. */
|
|
@@ -5955,11 +6041,7 @@ export declare interface ImageConfig {
|
|
|
5955
6041
|
/** Controls the generation of people. Supported values are:
|
|
5956
6042
|
ALLOW_ALL, ALLOW_ADULT, ALLOW_NONE. */
|
|
5957
6043
|
personGeneration?: string;
|
|
5958
|
-
/** Controls whether prominent people (celebrities)
|
|
5959
|
-
generation is allowed. If used with personGeneration, personGeneration
|
|
5960
|
-
enum would take precedence. For instance, if ALLOW_NONE is set, all person
|
|
5961
|
-
generation would be blocked. If this field is unspecified, the default
|
|
5962
|
-
behavior is to allow prominent people. */
|
|
6044
|
+
/** Optional. Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This field is not supported in Gemini API. */
|
|
5963
6045
|
prominentPeople?: ProminentPeople;
|
|
5964
6046
|
/** MIME type of the generated image. This field is not
|
|
5965
6047
|
supported in Gemini API. */
|
|
@@ -5967,7 +6049,7 @@ export declare interface ImageConfig {
|
|
|
5967
6049
|
/** Compression quality of the generated image (for
|
|
5968
6050
|
``image/jpeg`` only). This field is not supported in Gemini API. */
|
|
5969
6051
|
outputCompressionQuality?: number;
|
|
5970
|
-
/** Optional. The image output format for generated images. */
|
|
6052
|
+
/** Optional. The image output format for generated images. This field is not supported in Gemini API. */
|
|
5971
6053
|
imageOutputOptions?: ImageConfigImageOutputOptions;
|
|
5972
6054
|
}
|
|
5973
6055
|
|
|
@@ -5999,7 +6081,7 @@ declare interface ImageContent {
|
|
|
5999
6081
|
/**
|
|
6000
6082
|
* The mime type of the image.
|
|
6001
6083
|
*/
|
|
6002
|
-
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif';
|
|
6084
|
+
mime_type?: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/heic' | 'image/heif' | 'image/gif' | 'image/bmp' | 'image/tiff';
|
|
6003
6085
|
/**
|
|
6004
6086
|
* The resolution of the media.
|
|
6005
6087
|
*/
|
|
@@ -6081,7 +6163,6 @@ export declare class ImportFileOperation implements Operation<ImportFileResponse
|
|
|
6081
6163
|
response?: ImportFileResponse;
|
|
6082
6164
|
/**
|
|
6083
6165
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
6084
|
-
* @internal
|
|
6085
6166
|
*/
|
|
6086
6167
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<ImportFileResponse>;
|
|
6087
6168
|
/** The full HTTP response. */
|
|
@@ -6110,12 +6191,12 @@ export declare class ImportFileResponse {
|
|
|
6110
6191
|
|
|
6111
6192
|
/** Config for `inlined_embedding_responses` parameter. */
|
|
6112
6193
|
export declare class InlinedEmbedContentResponse {
|
|
6113
|
-
/** The response to the request.
|
|
6114
|
-
*/
|
|
6194
|
+
/** Output only. The response to the request. */
|
|
6115
6195
|
response?: SingleEmbedContentResponse;
|
|
6116
|
-
/** The error encountered while processing the request.
|
|
6117
|
-
*/
|
|
6196
|
+
/** Output only. The error encountered while processing the request. */
|
|
6118
6197
|
error?: JobError;
|
|
6198
|
+
/** Output only. The metadata associated with the request. */
|
|
6199
|
+
metadata?: Record<string, unknown>;
|
|
6119
6200
|
}
|
|
6120
6201
|
|
|
6121
6202
|
/** Config for inlined request. */
|
|
@@ -6150,20 +6231,20 @@ export declare class InlinedResponse {
|
|
|
6150
6231
|
*/
|
|
6151
6232
|
declare interface Interaction {
|
|
6152
6233
|
/**
|
|
6153
|
-
* Output only. A unique identifier for the interaction completion.
|
|
6234
|
+
* Required. Output only. A unique identifier for the interaction completion.
|
|
6154
6235
|
*/
|
|
6155
6236
|
id: string;
|
|
6156
6237
|
/**
|
|
6157
|
-
* Output only. The time at which the response was created in ISO 8601 format
|
|
6238
|
+
* Required. Output only. The time at which the response was created in ISO 8601 format
|
|
6158
6239
|
* (YYYY-MM-DDThh:mm:ssZ).
|
|
6159
6240
|
*/
|
|
6160
6241
|
created: string;
|
|
6161
6242
|
/**
|
|
6162
|
-
* Output only. The status of the interaction.
|
|
6243
|
+
* Required. Output only. The status of the interaction.
|
|
6163
6244
|
*/
|
|
6164
6245
|
status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
|
|
6165
6246
|
/**
|
|
6166
|
-
* Output only. The time at which the response was last updated in ISO 8601 format
|
|
6247
|
+
* Required. Output only. The time at which the response was last updated in ISO 8601 format
|
|
6167
6248
|
* (YYYY-MM-DDThh:mm:ssZ).
|
|
6168
6249
|
*/
|
|
6169
6250
|
updated: string;
|
|
@@ -6178,7 +6259,7 @@ declare interface Interaction {
|
|
|
6178
6259
|
/**
|
|
6179
6260
|
* The input for the interaction.
|
|
6180
6261
|
*/
|
|
6181
|
-
input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent |
|
|
6262
|
+
input?: Array<Content_2> | string | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | CodeExecutionCallContent | URLContextCallContent | MCPServerToolCallContent | GoogleSearchCallContent | FileSearchCallContent | GoogleMapsCallContent | FunctionResultContent | CodeExecutionResultContent | URLContextResultContent | GoogleSearchResultContent | MCPServerToolResultContent | FileSearchResultContent | GoogleMapsResultContent;
|
|
6182
6263
|
/**
|
|
6183
6264
|
* The name of the `Model` used for generating the interaction.
|
|
6184
6265
|
*/
|
|
@@ -6208,6 +6289,10 @@ declare interface Interaction {
|
|
|
6208
6289
|
* Output only. The role of the interaction.
|
|
6209
6290
|
*/
|
|
6210
6291
|
role?: string;
|
|
6292
|
+
/**
|
|
6293
|
+
* The service tier for the interaction.
|
|
6294
|
+
*/
|
|
6295
|
+
service_tier?: 'flex' | 'standard' | 'priority';
|
|
6211
6296
|
/**
|
|
6212
6297
|
* System instruction for the interaction.
|
|
6213
6298
|
*/
|
|
@@ -6232,12 +6317,13 @@ declare interface InteractionCancelParams {
|
|
|
6232
6317
|
declare interface InteractionCompleteEvent {
|
|
6233
6318
|
event_type: 'interaction.complete';
|
|
6234
6319
|
/**
|
|
6235
|
-
* The completed interaction with empty outputs to reduce the payload size.
|
|
6320
|
+
* Required. The completed interaction with empty outputs to reduce the payload size.
|
|
6236
6321
|
* Use the preceding ContentDelta events for the actual output.
|
|
6237
6322
|
*/
|
|
6238
6323
|
interaction: Interaction;
|
|
6239
6324
|
/**
|
|
6240
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6325
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6326
|
+
* this event.
|
|
6241
6327
|
*/
|
|
6242
6328
|
event_id?: string;
|
|
6243
6329
|
}
|
|
@@ -6385,7 +6471,8 @@ declare interface InteractionStartEvent {
|
|
|
6385
6471
|
*/
|
|
6386
6472
|
interaction: Interaction;
|
|
6387
6473
|
/**
|
|
6388
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6474
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6475
|
+
* this event.
|
|
6389
6476
|
*/
|
|
6390
6477
|
event_id?: string;
|
|
6391
6478
|
}
|
|
@@ -6395,7 +6482,8 @@ declare interface InteractionStatusUpdate {
|
|
|
6395
6482
|
interaction_id: string;
|
|
6396
6483
|
status: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled' | 'incomplete';
|
|
6397
6484
|
/**
|
|
6398
|
-
* The event_id token to be used to resume the interaction stream, from
|
|
6485
|
+
* The event_id token to be used to resume the interaction stream, from
|
|
6486
|
+
* this event.
|
|
6399
6487
|
*/
|
|
6400
6488
|
event_id?: string;
|
|
6401
6489
|
}
|
|
@@ -6637,6 +6725,7 @@ export declare interface ListFileSearchStoresParameters {
|
|
|
6637
6725
|
export declare class ListFileSearchStoresResponse {
|
|
6638
6726
|
/** Used to retain the full HTTP response. */
|
|
6639
6727
|
sdkHttpResponse?: HttpResponse;
|
|
6728
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. */
|
|
6640
6729
|
nextPageToken?: string;
|
|
6641
6730
|
/** The returned file search stores. */
|
|
6642
6731
|
fileSearchStores?: FileSearchStore[];
|
|
@@ -7505,6 +7594,8 @@ export declare interface LogprobsResult {
|
|
|
7505
7594
|
chosenCandidates?: LogprobsResultCandidate[];
|
|
7506
7595
|
/** A list of the top candidate tokens at each decoding step. The length of this list is equal to the total number of decoding steps. */
|
|
7507
7596
|
topCandidates?: LogprobsResultTopCandidates[];
|
|
7597
|
+
/** Sum of log probabilities for all tokens. This field is not supported in Vertex AI. */
|
|
7598
|
+
logProbabilitySum?: number;
|
|
7508
7599
|
}
|
|
7509
7600
|
|
|
7510
7601
|
/** A single token and its associated log probability. */
|
|
@@ -7580,21 +7671,21 @@ export declare interface McpServer {
|
|
|
7580
7671
|
*/
|
|
7581
7672
|
declare interface MCPServerToolCallContent {
|
|
7582
7673
|
/**
|
|
7583
|
-
* A unique ID for this specific tool call.
|
|
7674
|
+
* Required. A unique ID for this specific tool call.
|
|
7584
7675
|
*/
|
|
7585
7676
|
id: string;
|
|
7586
7677
|
/**
|
|
7587
|
-
* The JSON object of arguments for the function.
|
|
7678
|
+
* Required. The JSON object of arguments for the function.
|
|
7588
7679
|
*/
|
|
7589
7680
|
arguments: {
|
|
7590
7681
|
[key: string]: unknown;
|
|
7591
7682
|
};
|
|
7592
7683
|
/**
|
|
7593
|
-
* The name of the tool which was called.
|
|
7684
|
+
* Required. The name of the tool which was called.
|
|
7594
7685
|
*/
|
|
7595
7686
|
name: string;
|
|
7596
7687
|
/**
|
|
7597
|
-
* The name of the used MCP server.
|
|
7688
|
+
* Required. The name of the used MCP server.
|
|
7598
7689
|
*/
|
|
7599
7690
|
server_name: string;
|
|
7600
7691
|
type: 'mcp_server_tool_call';
|
|
@@ -7609,7 +7700,7 @@ declare interface MCPServerToolCallContent {
|
|
|
7609
7700
|
*/
|
|
7610
7701
|
declare interface MCPServerToolResultContent {
|
|
7611
7702
|
/**
|
|
7612
|
-
* ID to match the ID from the
|
|
7703
|
+
* Required. ID to match the ID from the function call block.
|
|
7613
7704
|
*/
|
|
7614
7705
|
call_id: string;
|
|
7615
7706
|
/**
|
|
@@ -7785,7 +7876,7 @@ export declare interface Model {
|
|
|
7785
7876
|
/**
|
|
7786
7877
|
* The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
|
|
7787
7878
|
*/
|
|
7788
|
-
declare type Model_2 = 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | (string & {});
|
|
7879
|
+
declare type Model_2 = 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite-preview' | 'lyria-3-clip-preview' | 'lyria-3-pro-preview' | (string & {});
|
|
7789
7880
|
|
|
7790
7881
|
/** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. This data type is not supported in Gemini API. */
|
|
7791
7882
|
export declare interface ModelArmorConfig {
|
|
@@ -8191,6 +8282,52 @@ export declare interface ModelSelectionConfig {
|
|
|
8191
8282
|
featureSelectionPreference?: FeatureSelectionPreference;
|
|
8192
8283
|
}
|
|
8193
8284
|
|
|
8285
|
+
/** The stage of the underlying model. This enum is not supported in Vertex AI. */
|
|
8286
|
+
export declare enum ModelStage {
|
|
8287
|
+
/**
|
|
8288
|
+
* Unspecified model stage.
|
|
8289
|
+
*/
|
|
8290
|
+
MODEL_STAGE_UNSPECIFIED = "MODEL_STAGE_UNSPECIFIED",
|
|
8291
|
+
/**
|
|
8292
|
+
* The underlying model is subject to lots of tunings.
|
|
8293
|
+
*/
|
|
8294
|
+
UNSTABLE_EXPERIMENTAL = "UNSTABLE_EXPERIMENTAL",
|
|
8295
|
+
/**
|
|
8296
|
+
* Models in this stage are for experimental purposes only.
|
|
8297
|
+
*/
|
|
8298
|
+
EXPERIMENTAL = "EXPERIMENTAL",
|
|
8299
|
+
/**
|
|
8300
|
+
* Models in this stage are more mature than experimental models.
|
|
8301
|
+
*/
|
|
8302
|
+
PREVIEW = "PREVIEW",
|
|
8303
|
+
/**
|
|
8304
|
+
* Models in this stage are considered stable and ready for production use.
|
|
8305
|
+
*/
|
|
8306
|
+
STABLE = "STABLE",
|
|
8307
|
+
/**
|
|
8308
|
+
* 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.
|
|
8309
|
+
*/
|
|
8310
|
+
LEGACY = "LEGACY",
|
|
8311
|
+
/**
|
|
8312
|
+
* Models in this stage are deprecated. These models cannot be used.
|
|
8313
|
+
*/
|
|
8314
|
+
DEPRECATED = "DEPRECATED",
|
|
8315
|
+
/**
|
|
8316
|
+
* Models in this stage are retired. These models cannot be used.
|
|
8317
|
+
*/
|
|
8318
|
+
RETIRED = "RETIRED"
|
|
8319
|
+
}
|
|
8320
|
+
|
|
8321
|
+
/** 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. */
|
|
8322
|
+
export declare interface ModelStatus {
|
|
8323
|
+
/** A message explaining the model status. */
|
|
8324
|
+
message?: string;
|
|
8325
|
+
/** The stage of the underlying model. */
|
|
8326
|
+
modelStage?: ModelStage;
|
|
8327
|
+
/** The time at which the model will be retired. */
|
|
8328
|
+
retirementTime?: string;
|
|
8329
|
+
}
|
|
8330
|
+
|
|
8194
8331
|
/** Configuration for a multi-speaker text-to-speech request. */
|
|
8195
8332
|
export declare interface MultiSpeakerVoiceConfig {
|
|
8196
8333
|
/** Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. */
|
|
@@ -8276,7 +8413,6 @@ export declare interface Operation<T> {
|
|
|
8276
8413
|
response?: T;
|
|
8277
8414
|
/**
|
|
8278
8415
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
8279
|
-
* @internal
|
|
8280
8416
|
*/
|
|
8281
8417
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<T>;
|
|
8282
8418
|
}
|
|
@@ -8555,6 +8691,8 @@ export declare interface Part {
|
|
|
8555
8691
|
toolCall?: ToolCall;
|
|
8556
8692
|
/** The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall. */
|
|
8557
8693
|
toolResponse?: ToolResponse;
|
|
8694
|
+
/** 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. */
|
|
8695
|
+
partMetadata?: Record<string, unknown>;
|
|
8558
8696
|
}
|
|
8559
8697
|
|
|
8560
8698
|
/** Partial argument value of the function call. This data type is not supported in Gemini API. */
|
|
@@ -8696,6 +8834,8 @@ declare interface PlaceCitation {
|
|
|
8696
8834
|
review_snippets?: Array<PlaceCitation.ReviewSnippet>;
|
|
8697
8835
|
/**
|
|
8698
8836
|
* Start of segment of the response that is attributed to this source.
|
|
8837
|
+
*
|
|
8838
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
8699
8839
|
*/
|
|
8700
8840
|
start_index?: number;
|
|
8701
8841
|
/**
|
|
@@ -8813,7 +8953,7 @@ export declare interface ProductImage {
|
|
|
8813
8953
|
productImage?: Image_2;
|
|
8814
8954
|
}
|
|
8815
8955
|
|
|
8816
|
-
/**
|
|
8956
|
+
/** Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This enum is not supported in Gemini API. */
|
|
8817
8957
|
export declare enum ProminentPeople {
|
|
8818
8958
|
/**
|
|
8819
8959
|
* Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
|
|
@@ -9090,12 +9230,14 @@ export declare class ReplayResponse {
|
|
|
9090
9230
|
sdkResponseSegments?: Record<string, unknown>[];
|
|
9091
9231
|
}
|
|
9092
9232
|
|
|
9093
|
-
/**
|
|
9233
|
+
/** The configuration for the replicated voice to use. */
|
|
9094
9234
|
export declare interface ReplicatedVoiceConfig {
|
|
9095
|
-
/** The
|
|
9235
|
+
/** The mimetype of the voice sample. The only currently supported
|
|
9236
|
+
value is `audio/wav`. This represents 16-bit signed little-endian wav
|
|
9237
|
+
data, with a 24kHz sampling rate.
|
|
9096
9238
|
*/
|
|
9097
9239
|
mimeType?: string;
|
|
9098
|
-
/** The sample
|
|
9240
|
+
/** The sample of the custom voice.
|
|
9099
9241
|
|
|
9100
9242
|
* @remarks Encoded as base64 string. */
|
|
9101
9243
|
voiceSampleAudio?: string;
|
|
@@ -9339,7 +9481,7 @@ export declare interface Schema {
|
|
|
9339
9481
|
anyOf?: Schema[];
|
|
9340
9482
|
/** Optional. Default value to use if the field is not specified. */
|
|
9341
9483
|
default?: unknown;
|
|
9342
|
-
/** Optional.
|
|
9484
|
+
/** Optional. Describes the data. The model uses this field to understand the purpose of the schema and how to use it. It is a best practice to provide a clear and descriptive explanation for the schema and its properties here, rather than in the prompt. */
|
|
9343
9485
|
description?: string;
|
|
9344
9486
|
/** Optional. Possible values of the field. This field can be used to restrict a value to a fixed set of values. To mark a field as an enum, set `format` to `enum` and provide the list of possible values in `enum`. For example: 1. To define directions: `{type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", "WEST"]}` 2. To define apartment numbers: `{type:INTEGER, format:enum, enum:["101", "201", "301"]}` */
|
|
9345
9487
|
enum?: string[];
|
|
@@ -9399,12 +9541,11 @@ export declare interface SearchEntryPoint {
|
|
|
9399
9541
|
sdkBlob?: string;
|
|
9400
9542
|
}
|
|
9401
9543
|
|
|
9402
|
-
/**
|
|
9544
|
+
/** Different types of search that can be enabled on the GoogleSearch tool. */
|
|
9403
9545
|
export declare interface SearchTypes {
|
|
9404
|
-
/** Setting this field enables web search. Only text results are
|
|
9405
|
-
returned. */
|
|
9546
|
+
/** Optional. Setting this field enables web search. Only text results are returned. */
|
|
9406
9547
|
webSearch?: WebSearch;
|
|
9407
|
-
/** Setting this field enables image search. Image bytes are returned. */
|
|
9548
|
+
/** Optional. Setting this field enables image search. Image bytes are returned. */
|
|
9408
9549
|
imageSearch?: ImageSearch;
|
|
9409
9550
|
}
|
|
9410
9551
|
|
|
@@ -9517,6 +9658,26 @@ export declare interface SendMessageParameters {
|
|
|
9517
9658
|
config?: GenerateContentConfig;
|
|
9518
9659
|
}
|
|
9519
9660
|
|
|
9661
|
+
/** Pricing and performance service tier. */
|
|
9662
|
+
export declare enum ServiceTier {
|
|
9663
|
+
/**
|
|
9664
|
+
* Default service tier, which is standard.
|
|
9665
|
+
*/
|
|
9666
|
+
UNSPECIFIED = "unspecified",
|
|
9667
|
+
/**
|
|
9668
|
+
* Flex service tier.
|
|
9669
|
+
*/
|
|
9670
|
+
FLEX = "flex",
|
|
9671
|
+
/**
|
|
9672
|
+
* Standard service tier.
|
|
9673
|
+
*/
|
|
9674
|
+
STANDARD = "standard",
|
|
9675
|
+
/**
|
|
9676
|
+
* Priority service tier.
|
|
9677
|
+
*/
|
|
9678
|
+
PRIORITY = "priority"
|
|
9679
|
+
}
|
|
9680
|
+
|
|
9520
9681
|
/**
|
|
9521
9682
|
Represents a connection to the API.
|
|
9522
9683
|
|
|
@@ -9706,8 +9867,9 @@ export declare interface SpeakerVoiceConfig {
|
|
|
9706
9867
|
voiceConfig?: VoiceConfig;
|
|
9707
9868
|
}
|
|
9708
9869
|
|
|
9870
|
+
/** Config for speech generation and transcription. */
|
|
9709
9871
|
export declare interface SpeechConfig {
|
|
9710
|
-
/**
|
|
9872
|
+
/** The configuration in case of single-voice output. */
|
|
9711
9873
|
voiceConfig?: VoiceConfig;
|
|
9712
9874
|
/** Optional. The language code (ISO 639-1) for the speech synthesis. */
|
|
9713
9875
|
languageCode?: string;
|
|
@@ -9976,7 +10138,7 @@ export declare interface TestTableItem {
|
|
|
9976
10138
|
*/
|
|
9977
10139
|
declare interface TextContent {
|
|
9978
10140
|
/**
|
|
9979
|
-
* The text content.
|
|
10141
|
+
* Required. The text content.
|
|
9980
10142
|
*/
|
|
9981
10143
|
text: string;
|
|
9982
10144
|
type: 'text';
|
|
@@ -10004,6 +10166,10 @@ export declare enum ThinkingLevel {
|
|
|
10004
10166
|
* Unspecified thinking level.
|
|
10005
10167
|
*/
|
|
10006
10168
|
THINKING_LEVEL_UNSPECIFIED = "THINKING_LEVEL_UNSPECIFIED",
|
|
10169
|
+
/**
|
|
10170
|
+
* MINIMAL thinking level.
|
|
10171
|
+
*/
|
|
10172
|
+
MINIMAL = "MINIMAL",
|
|
10007
10173
|
/**
|
|
10008
10174
|
* Low thinking level.
|
|
10009
10175
|
*/
|
|
@@ -10015,11 +10181,7 @@ export declare enum ThinkingLevel {
|
|
|
10015
10181
|
/**
|
|
10016
10182
|
* High thinking level.
|
|
10017
10183
|
*/
|
|
10018
|
-
HIGH = "HIGH"
|
|
10019
|
-
/**
|
|
10020
|
-
* MINIMAL thinking level.
|
|
10021
|
-
*/
|
|
10022
|
-
MINIMAL = "MINIMAL"
|
|
10184
|
+
HIGH = "HIGH"
|
|
10023
10185
|
}
|
|
10024
10186
|
|
|
10025
10187
|
declare type ThinkingLevel_2 = 'minimal' | 'low' | 'medium' | 'high';
|
|
@@ -10147,9 +10309,9 @@ export declare interface Tool {
|
|
|
10147
10309
|
computer. If enabled, it automatically populates computer-use specific
|
|
10148
10310
|
Function Declarations. */
|
|
10149
10311
|
computerUse?: ComputerUse;
|
|
10150
|
-
/** Optional. Tool to retrieve knowledge from
|
|
10312
|
+
/** Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora. This field is not supported in Vertex AI. */
|
|
10151
10313
|
fileSearch?: FileSearch;
|
|
10152
|
-
/**
|
|
10314
|
+
/** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
|
|
10153
10315
|
googleSearch?: GoogleSearch;
|
|
10154
10316
|
/** Optional. Tool that allows grounding the model's response with
|
|
10155
10317
|
geospatial context related to the user's query. */
|
|
@@ -10173,19 +10335,9 @@ export declare interface Tool {
|
|
|
10173
10335
|
/**
|
|
10174
10336
|
* A tool that can be used by the model.
|
|
10175
10337
|
*/
|
|
10176
|
-
declare type Tool_2 = Function_2 | Tool_2.
|
|
10338
|
+
declare type Tool_2 = Function_2 | Tool_2.CodeExecution | Tool_2.URLContext | Tool_2.ComputerUse | Tool_2.MCPServer | Tool_2.GoogleSearch | Tool_2.FileSearch | Tool_2.GoogleMaps;
|
|
10177
10339
|
|
|
10178
10340
|
declare namespace Tool_2 {
|
|
10179
|
-
/**
|
|
10180
|
-
* A tool that can be used by the model to search Google.
|
|
10181
|
-
*/
|
|
10182
|
-
interface GoogleSearch {
|
|
10183
|
-
type: 'google_search';
|
|
10184
|
-
/**
|
|
10185
|
-
* The types of search grounding to enable.
|
|
10186
|
-
*/
|
|
10187
|
-
search_types?: Array<'web_search' | 'image_search'>;
|
|
10188
|
-
}
|
|
10189
10341
|
/**
|
|
10190
10342
|
* A tool that can be used by the model to execute code.
|
|
10191
10343
|
*/
|
|
@@ -10237,6 +10389,16 @@ declare namespace Tool_2 {
|
|
|
10237
10389
|
*/
|
|
10238
10390
|
url?: string;
|
|
10239
10391
|
}
|
|
10392
|
+
/**
|
|
10393
|
+
* A tool that can be used by the model to search Google.
|
|
10394
|
+
*/
|
|
10395
|
+
interface GoogleSearch {
|
|
10396
|
+
type: 'google_search';
|
|
10397
|
+
/**
|
|
10398
|
+
* The types of search grounding to enable.
|
|
10399
|
+
*/
|
|
10400
|
+
search_types?: Array<'web_search' | 'image_search'>;
|
|
10401
|
+
}
|
|
10240
10402
|
/**
|
|
10241
10403
|
* A tool that can be used by the model to search files.
|
|
10242
10404
|
*/
|
|
@@ -10259,6 +10421,7 @@ declare namespace Tool_2 {
|
|
|
10259
10421
|
* A tool that can be used by the model to call Google Maps.
|
|
10260
10422
|
*/
|
|
10261
10423
|
interface GoogleMaps {
|
|
10424
|
+
type: 'google_maps';
|
|
10262
10425
|
/**
|
|
10263
10426
|
* Whether to return a widget context token in the tool call result of the
|
|
10264
10427
|
* response.
|
|
@@ -10272,7 +10435,6 @@ declare namespace Tool_2 {
|
|
|
10272
10435
|
* The longitude of the user's location.
|
|
10273
10436
|
*/
|
|
10274
10437
|
longitude?: number;
|
|
10275
|
-
type?: 'google_maps';
|
|
10276
10438
|
}
|
|
10277
10439
|
}
|
|
10278
10440
|
|
|
@@ -10400,11 +10562,9 @@ export declare enum TrafficType {
|
|
|
10400
10562
|
|
|
10401
10563
|
/** Audio transcription in Server Conent. */
|
|
10402
10564
|
export declare interface Transcription {
|
|
10403
|
-
/** Transcription text.
|
|
10404
|
-
*/
|
|
10565
|
+
/** Optional. Transcription text. */
|
|
10405
10566
|
text?: string;
|
|
10406
|
-
/** The bool indicates the end of the transcription.
|
|
10407
|
-
*/
|
|
10567
|
+
/** Optional. The bool indicates the end of the transcription. */
|
|
10408
10568
|
finished?: boolean;
|
|
10409
10569
|
}
|
|
10410
10570
|
|
|
@@ -10542,6 +10702,18 @@ export declare interface TuningJob {
|
|
|
10542
10702
|
tuningJobState?: TuningJobState;
|
|
10543
10703
|
/** Tuning Spec for Veo Tuning. */
|
|
10544
10704
|
veoTuningSpec?: VeoTuningSpec;
|
|
10705
|
+
/** Optional. Spec for creating a distillation dataset. */
|
|
10706
|
+
distillationSamplingSpec?: DistillationSamplingSpec;
|
|
10707
|
+
/** Output only. Tuning Job metadata. */
|
|
10708
|
+
tuningJobMetadata?: TuningJobMetadata;
|
|
10709
|
+
}
|
|
10710
|
+
|
|
10711
|
+
/** Tuning job metadata. This data type is not supported in Gemini API. */
|
|
10712
|
+
export declare interface TuningJobMetadata {
|
|
10713
|
+
/** Output only. The number of epochs that have been completed. */
|
|
10714
|
+
completedEpochCount?: string;
|
|
10715
|
+
/** Output only. The number of steps that have been completed. Set for Multi-Step RL. */
|
|
10716
|
+
completedStepCount?: string;
|
|
10545
10717
|
}
|
|
10546
10718
|
|
|
10547
10719
|
/** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
|
|
@@ -10702,10 +10874,7 @@ export declare interface TuningValidationDataset {
|
|
|
10702
10874
|
}
|
|
10703
10875
|
|
|
10704
10876
|
declare interface Turn {
|
|
10705
|
-
|
|
10706
|
-
* The content of the turn.
|
|
10707
|
-
*/
|
|
10708
|
-
content?: string | Array<Content_2>;
|
|
10877
|
+
content?: Array<Content_2> | string;
|
|
10709
10878
|
/**
|
|
10710
10879
|
* The originator of this turn. Must be user for input or model for
|
|
10711
10880
|
* model output.
|
|
@@ -10746,7 +10915,11 @@ export declare enum TurnCoverage {
|
|
|
10746
10915
|
/**
|
|
10747
10916
|
* The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).
|
|
10748
10917
|
*/
|
|
10749
|
-
TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT"
|
|
10918
|
+
TURN_INCLUDES_ALL_INPUT = "TURN_INCLUDES_ALL_INPUT",
|
|
10919
|
+
/**
|
|
10920
|
+
* Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.
|
|
10921
|
+
*/
|
|
10922
|
+
TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO = "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
|
|
10750
10923
|
}
|
|
10751
10924
|
|
|
10752
10925
|
/** Data type of the schema field. */
|
|
@@ -10802,15 +10975,17 @@ declare namespace types {
|
|
|
10802
10975
|
Outcome,
|
|
10803
10976
|
FunctionResponseScheduling,
|
|
10804
10977
|
Type,
|
|
10805
|
-
|
|
10978
|
+
Environment,
|
|
10806
10979
|
AuthType,
|
|
10807
10980
|
HttpElementLocation,
|
|
10808
10981
|
ApiSpec,
|
|
10982
|
+
PhishBlockThreshold,
|
|
10809
10983
|
Behavior,
|
|
10810
10984
|
DynamicRetrievalConfigMode,
|
|
10811
10985
|
FunctionCallingConfigMode,
|
|
10812
10986
|
ThinkingLevel,
|
|
10813
10987
|
PersonGeneration,
|
|
10988
|
+
ProminentPeople,
|
|
10814
10989
|
HarmCategory,
|
|
10815
10990
|
HarmBlockMethod,
|
|
10816
10991
|
HarmBlockThreshold,
|
|
@@ -10821,6 +10996,7 @@ declare namespace types {
|
|
|
10821
10996
|
BlockedReason,
|
|
10822
10997
|
TrafficType,
|
|
10823
10998
|
Modality,
|
|
10999
|
+
ModelStage,
|
|
10824
11000
|
MediaResolution,
|
|
10825
11001
|
TuningMode,
|
|
10826
11002
|
AdapterSize,
|
|
@@ -10829,12 +11005,12 @@ declare namespace types {
|
|
|
10829
11005
|
AggregationMetric,
|
|
10830
11006
|
PairwiseChoice,
|
|
10831
11007
|
TuningTask,
|
|
11008
|
+
DocumentState,
|
|
10832
11009
|
PartMediaResolutionLevel,
|
|
10833
11010
|
ToolType,
|
|
10834
11011
|
ResourceScope,
|
|
11012
|
+
ServiceTier,
|
|
10835
11013
|
FeatureSelectionPreference,
|
|
10836
|
-
Environment,
|
|
10837
|
-
ProminentPeople,
|
|
10838
11014
|
EmbeddingApiType,
|
|
10839
11015
|
SafetyFilterLevel,
|
|
10840
11016
|
ImagePromptLanguage,
|
|
@@ -10847,7 +11023,6 @@ declare namespace types {
|
|
|
10847
11023
|
VideoGenerationMaskMode,
|
|
10848
11024
|
VideoCompressionQuality,
|
|
10849
11025
|
TuningMethod,
|
|
10850
|
-
DocumentState,
|
|
10851
11026
|
FileState,
|
|
10852
11027
|
FileSource,
|
|
10853
11028
|
TurnCompleteReason,
|
|
@@ -10882,12 +11057,6 @@ declare namespace types {
|
|
|
10882
11057
|
Schema,
|
|
10883
11058
|
ModelSelectionConfig,
|
|
10884
11059
|
ComputerUse,
|
|
10885
|
-
FileSearch,
|
|
10886
|
-
WebSearch,
|
|
10887
|
-
ImageSearch,
|
|
10888
|
-
SearchTypes,
|
|
10889
|
-
Interval,
|
|
10890
|
-
GoogleSearch,
|
|
10891
11060
|
ApiKeyConfig,
|
|
10892
11061
|
AuthConfigGoogleServiceAccountConfig,
|
|
10893
11062
|
AuthConfigHttpBasicAuthConfig,
|
|
@@ -10911,6 +11080,12 @@ declare namespace types {
|
|
|
10911
11080
|
RagRetrievalConfig,
|
|
10912
11081
|
VertexRagStore,
|
|
10913
11082
|
Retrieval,
|
|
11083
|
+
FileSearch,
|
|
11084
|
+
WebSearch,
|
|
11085
|
+
ImageSearch,
|
|
11086
|
+
SearchTypes,
|
|
11087
|
+
Interval,
|
|
11088
|
+
GoogleSearch,
|
|
10914
11089
|
ToolCodeExecution,
|
|
10915
11090
|
EnterpriseWebSearch,
|
|
10916
11091
|
FunctionDeclaration,
|
|
@@ -10947,13 +11122,16 @@ declare namespace types {
|
|
|
10947
11122
|
GoogleTypeDate,
|
|
10948
11123
|
Citation,
|
|
10949
11124
|
CitationMetadata,
|
|
10950
|
-
GroundingChunkImage,
|
|
10951
11125
|
GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution,
|
|
10952
11126
|
GroundingChunkMapsPlaceAnswerSourcesReviewSnippet,
|
|
10953
11127
|
GroundingChunkMapsPlaceAnswerSources,
|
|
11128
|
+
GroundingChunkMapsRoute,
|
|
10954
11129
|
GroundingChunkMaps,
|
|
11130
|
+
GroundingChunkImage,
|
|
10955
11131
|
RagChunkPageSpan,
|
|
10956
11132
|
RagChunk,
|
|
11133
|
+
GroundingChunkStringList,
|
|
11134
|
+
GroundingChunkCustomMetadata,
|
|
10957
11135
|
GroundingChunkRetrievedContext,
|
|
10958
11136
|
GroundingChunkWeb,
|
|
10959
11137
|
GroundingChunk,
|
|
@@ -10973,6 +11151,7 @@ declare namespace types {
|
|
|
10973
11151
|
GenerateContentResponsePromptFeedback,
|
|
10974
11152
|
ModalityTokenCount,
|
|
10975
11153
|
GenerateContentResponseUsageMetadata,
|
|
11154
|
+
ModelStatus,
|
|
10976
11155
|
GenerateContentResponse,
|
|
10977
11156
|
ReferenceImage,
|
|
10978
11157
|
EditImageParameters,
|
|
@@ -11083,6 +11262,8 @@ declare namespace types {
|
|
|
11083
11262
|
FullFineTuningSpec,
|
|
11084
11263
|
VeoHyperParameters,
|
|
11085
11264
|
VeoTuningSpec,
|
|
11265
|
+
DistillationSamplingSpec,
|
|
11266
|
+
TuningJobMetadata,
|
|
11086
11267
|
TuningJob,
|
|
11087
11268
|
ListTuningJobsConfig,
|
|
11088
11269
|
ListTuningJobsParameters,
|
|
@@ -11456,7 +11637,6 @@ export declare class UploadToFileSearchStoreOperation implements Operation<Uploa
|
|
|
11456
11637
|
response?: UploadToFileSearchStoreResponse;
|
|
11457
11638
|
/**
|
|
11458
11639
|
* Instantiates an Operation of the same type as the one being called with the fields set from the API response.
|
|
11459
|
-
* @internal
|
|
11460
11640
|
*/
|
|
11461
11641
|
_fromAPIResponse({ apiResponse, _isVertexAI, }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse>;
|
|
11462
11642
|
/** The full HTTP response. */
|
|
@@ -11569,6 +11749,8 @@ declare interface URLCitation {
|
|
|
11569
11749
|
end_index?: number;
|
|
11570
11750
|
/**
|
|
11571
11751
|
* Start of segment of the response that is attributed to this source.
|
|
11752
|
+
*
|
|
11753
|
+
* Index indicates the start of the segment, measured in bytes.
|
|
11572
11754
|
*/
|
|
11573
11755
|
start_index?: number;
|
|
11574
11756
|
/**
|
|
@@ -11600,11 +11782,11 @@ declare interface URLContextCallArguments {
|
|
|
11600
11782
|
*/
|
|
11601
11783
|
declare interface URLContextCallContent {
|
|
11602
11784
|
/**
|
|
11603
|
-
* A unique ID for this specific tool call.
|
|
11785
|
+
* Required. A unique ID for this specific tool call.
|
|
11604
11786
|
*/
|
|
11605
11787
|
id: string;
|
|
11606
11788
|
/**
|
|
11607
|
-
* The arguments to pass to the URL context.
|
|
11789
|
+
* Required. The arguments to pass to the URL context.
|
|
11608
11790
|
*/
|
|
11609
11791
|
arguments: URLContextCallArguments;
|
|
11610
11792
|
type: 'url_context_call';
|
|
@@ -11639,11 +11821,11 @@ declare interface URLContextResult {
|
|
|
11639
11821
|
*/
|
|
11640
11822
|
declare interface URLContextResultContent {
|
|
11641
11823
|
/**
|
|
11642
|
-
* ID to match the ID from the
|
|
11824
|
+
* Required. ID to match the ID from the function call block.
|
|
11643
11825
|
*/
|
|
11644
11826
|
call_id: string;
|
|
11645
11827
|
/**
|
|
11646
|
-
* The results of the URL context.
|
|
11828
|
+
* Required. The results of the URL context.
|
|
11647
11829
|
*/
|
|
11648
11830
|
result: Array<URLContextResult>;
|
|
11649
11831
|
type: 'url_context_result';
|
|
@@ -12048,16 +12230,17 @@ export declare enum VoiceActivityType {
|
|
|
12048
12230
|
ACTIVITY_END = "ACTIVITY_END"
|
|
12049
12231
|
}
|
|
12050
12232
|
|
|
12233
|
+
/** The configuration for the voice to use. */
|
|
12051
12234
|
export declare interface VoiceConfig {
|
|
12052
|
-
/**
|
|
12235
|
+
/** The configuration for a replicated voice, which is a clone of a
|
|
12236
|
+
user's voice that can be used for speech synthesis. If this is unset, a
|
|
12237
|
+
default voice is used. */
|
|
12053
12238
|
replicatedVoiceConfig?: ReplicatedVoiceConfig;
|
|
12054
12239
|
/** The configuration for a prebuilt voice. */
|
|
12055
12240
|
prebuiltVoiceConfig?: PrebuiltVoiceConfig;
|
|
12056
12241
|
}
|
|
12057
12242
|
|
|
12058
|
-
/** Standard web search for grounding and related configurations.
|
|
12059
|
-
|
|
12060
|
-
Only text results are returned. */
|
|
12243
|
+
/** Standard web search for grounding and related configurations. Only text results are returned. */
|
|
12061
12244
|
export declare interface WebSearch {
|
|
12062
12245
|
}
|
|
12063
12246
|
|