@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/genai.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
|
/**
|
|
@@ -6118,7 +6117,7 @@ declare interface ImageResponseFormat {
|
|
|
6118
6117
|
/**
|
|
6119
6118
|
* The aspect ratio for the image output.
|
|
6120
6119
|
*/
|
|
6121
|
-
|
|
6120
|
+
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';
|
|
6122
6121
|
/**
|
|
6123
6122
|
* The delivery mode for the image output.
|
|
6124
6123
|
*/
|
|
@@ -6126,11 +6125,11 @@ declare interface ImageResponseFormat {
|
|
|
6126
6125
|
/**
|
|
6127
6126
|
* The size of the image output.
|
|
6128
6127
|
*/
|
|
6129
|
-
|
|
6128
|
+
image_size?: '512' | '1K' | '2K' | '4K';
|
|
6130
6129
|
/**
|
|
6131
6130
|
* The MIME type of the image output.
|
|
6132
6131
|
*/
|
|
6133
|
-
|
|
6132
|
+
mime_type?: 'image/jpeg';
|
|
6134
6133
|
}
|
|
6135
6134
|
|
|
6136
6135
|
/** Image search for grounding and related configurations. */
|
|
@@ -10313,7 +10312,7 @@ declare interface TextResponseFormat {
|
|
|
10313
10312
|
/**
|
|
10314
10313
|
* The MIME type of the text output.
|
|
10315
10314
|
*/
|
|
10316
|
-
|
|
10315
|
+
mime_type?: 'application/json' | 'text/plain';
|
|
10317
10316
|
/**
|
|
10318
10317
|
* The JSON schema that the output should conform to. Only applicable when
|
|
10319
10318
|
* mime_type is application/json.
|
|
@@ -10537,7 +10536,7 @@ declare namespace Tool_2 {
|
|
|
10537
10536
|
/**
|
|
10538
10537
|
* The list of predefined functions that are excluded from the model call.
|
|
10539
10538
|
*/
|
|
10540
|
-
|
|
10539
|
+
excluded_predefined_functions?: Array<string>;
|
|
10541
10540
|
}
|
|
10542
10541
|
/**
|
|
10543
10542
|
* A MCPServer is a server that can be called by the model to perform actions.
|
package/dist/index.cjs
CHANGED
|
@@ -7631,7 +7631,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
7631
7631
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
7632
7632
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
7633
7633
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
7634
|
-
const SDK_VERSION = '2.0.
|
|
7634
|
+
const SDK_VERSION = '2.0.1'; // x-release-please-version
|
|
7635
7635
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
7636
7636
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
7637
7637
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
package/dist/index.mjs
CHANGED
|
@@ -7629,7 +7629,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
7629
7629
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
7630
7630
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
7631
7631
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
7632
|
-
const SDK_VERSION = '2.0.
|
|
7632
|
+
const SDK_VERSION = '2.0.1'; // x-release-please-version
|
|
7633
7633
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
7634
7634
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
7635
7635
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|