@google/genai 2.0.0 → 2.0.1
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 +9 -10
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +9 -10
- package/dist/vertex_internal/index.cjs +1 -1
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +1 -1
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +9 -10
- package/package.json +1 -1
package/dist/node/node.d.ts
CHANGED
|
@@ -496,7 +496,7 @@ declare interface AudioResponseFormat {
|
|
|
496
496
|
* Bit rate in bits per second (bps). Only applicable for compressed formats (MP3,
|
|
497
497
|
* Opus).
|
|
498
498
|
*/
|
|
499
|
-
|
|
499
|
+
bit_rate?: number;
|
|
500
500
|
/**
|
|
501
501
|
* The delivery mode for the audio output.
|
|
502
502
|
*/
|
|
@@ -504,11 +504,11 @@ declare interface AudioResponseFormat {
|
|
|
504
504
|
/**
|
|
505
505
|
* The MIME type of the audio output.
|
|
506
506
|
*/
|
|
507
|
-
|
|
507
|
+
mime_type?: 'audio/mp3' | 'audio/ogg_opus' | 'audio/l16' | 'audio/wav' | 'audio/alaw' | 'audio/mulaw';
|
|
508
508
|
/**
|
|
509
509
|
* Sample rate in Hz.
|
|
510
510
|
*/
|
|
511
|
-
|
|
511
|
+
sample_rate?: number;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
/** The audio transcription configuration in Setup. */
|
|
@@ -2585,8 +2585,7 @@ declare interface DeepResearchAgentConfig {
|
|
|
2585
2585
|
/**
|
|
2586
2586
|
* Enables human-in-the-loop planning for the Deep Research agent. If set to true,
|
|
2587
2587
|
* the Deep Research agent will provide a research plan in its response. The agent
|
|
2588
|
-
* will then proceed only if the user confirms the plan in the next turn.
|
|
2589
|
-
* issue: b/482352502.
|
|
2588
|
+
* will then proceed only if the user confirms the plan in the next turn.
|
|
2590
2589
|
*/
|
|
2591
2590
|
collaborative_planning?: boolean;
|
|
2592
2591
|
/**
|
|
@@ -6130,7 +6129,7 @@ declare interface ImageResponseFormat {
|
|
|
6130
6129
|
/**
|
|
6131
6130
|
* The aspect ratio for the image output.
|
|
6132
6131
|
*/
|
|
6133
|
-
|
|
6132
|
+
aspect_ratio?: '1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '16:9' | '21:9' | '1:8' | '8:1' | '1:4' | '4:1';
|
|
6134
6133
|
/**
|
|
6135
6134
|
* The delivery mode for the image output.
|
|
6136
6135
|
*/
|
|
@@ -6138,11 +6137,11 @@ declare interface ImageResponseFormat {
|
|
|
6138
6137
|
/**
|
|
6139
6138
|
* The size of the image output.
|
|
6140
6139
|
*/
|
|
6141
|
-
|
|
6140
|
+
image_size?: '512' | '1K' | '2K' | '4K';
|
|
6142
6141
|
/**
|
|
6143
6142
|
* The MIME type of the image output.
|
|
6144
6143
|
*/
|
|
6145
|
-
|
|
6144
|
+
mime_type?: 'image/jpeg';
|
|
6146
6145
|
}
|
|
6147
6146
|
|
|
6148
6147
|
/** Image search for grounding and related configurations. */
|
|
@@ -10325,7 +10324,7 @@ declare interface TextResponseFormat {
|
|
|
10325
10324
|
/**
|
|
10326
10325
|
* The MIME type of the text output.
|
|
10327
10326
|
*/
|
|
10328
|
-
|
|
10327
|
+
mime_type?: 'application/json' | 'text/plain';
|
|
10329
10328
|
/**
|
|
10330
10329
|
* The JSON schema that the output should conform to. Only applicable when
|
|
10331
10330
|
* mime_type is application/json.
|
|
@@ -10549,7 +10548,7 @@ declare namespace Tool_2 {
|
|
|
10549
10548
|
/**
|
|
10550
10549
|
* The list of predefined functions that are excluded from the model call.
|
|
10551
10550
|
*/
|
|
10552
|
-
|
|
10551
|
+
excluded_predefined_functions?: Array<string>;
|
|
10553
10552
|
}
|
|
10554
10553
|
/**
|
|
10555
10554
|
* A MCPServer is a server that can be called by the model to perform actions.
|
|
@@ -2071,7 +2071,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
2071
2071
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
2072
2072
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
2073
2073
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
2074
|
-
const SDK_VERSION = '2.0.
|
|
2074
|
+
const SDK_VERSION = '2.0.1'; // x-release-please-version
|
|
2075
2075
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
2076
2076
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
2077
2077
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|