@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/web/web.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
|
/**
|
|
@@ -6123,7 +6122,7 @@ declare interface ImageResponseFormat {
|
|
|
6123
6122
|
/**
|
|
6124
6123
|
* The aspect ratio for the image output.
|
|
6125
6124
|
*/
|
|
6126
|
-
|
|
6125
|
+
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';
|
|
6127
6126
|
/**
|
|
6128
6127
|
* The delivery mode for the image output.
|
|
6129
6128
|
*/
|
|
@@ -6131,11 +6130,11 @@ declare interface ImageResponseFormat {
|
|
|
6131
6130
|
/**
|
|
6132
6131
|
* The size of the image output.
|
|
6133
6132
|
*/
|
|
6134
|
-
|
|
6133
|
+
image_size?: '512' | '1K' | '2K' | '4K';
|
|
6135
6134
|
/**
|
|
6136
6135
|
* The MIME type of the image output.
|
|
6137
6136
|
*/
|
|
6138
|
-
|
|
6137
|
+
mime_type?: 'image/jpeg';
|
|
6139
6138
|
}
|
|
6140
6139
|
|
|
6141
6140
|
/** Image search for grounding and related configurations. */
|
|
@@ -10318,7 +10317,7 @@ declare interface TextResponseFormat {
|
|
|
10318
10317
|
/**
|
|
10319
10318
|
* The MIME type of the text output.
|
|
10320
10319
|
*/
|
|
10321
|
-
|
|
10320
|
+
mime_type?: 'application/json' | 'text/plain';
|
|
10322
10321
|
/**
|
|
10323
10322
|
* The JSON schema that the output should conform to. Only applicable when
|
|
10324
10323
|
* mime_type is application/json.
|
|
@@ -10542,7 +10541,7 @@ declare namespace Tool_2 {
|
|
|
10542
10541
|
/**
|
|
10543
10542
|
* The list of predefined functions that are excluded from the model call.
|
|
10544
10543
|
*/
|
|
10545
|
-
|
|
10544
|
+
excluded_predefined_functions?: Array<string>;
|
|
10546
10545
|
}
|
|
10547
10546
|
/**
|
|
10548
10547
|
* A MCPServer is a server that can be called by the model to perform actions.
|