@google/genai 2.0.1 → 2.1.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 +147 -12
- package/dist/index.cjs +352 -322
- package/dist/index.mjs +352 -322
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +447 -417
- package/dist/node/index.mjs +447 -417
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +147 -12
- package/dist/tokenizer/node.cjs +2 -2
- package/dist/tokenizer/node.d.ts +3 -3
- package/dist/tokenizer/node.mjs +2 -2
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +3 -3
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +3 -3
- package/dist/vertex_internal/index.js +3 -3
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +447 -417
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +147 -12
- package/package.json +1 -1
|
@@ -595,10 +595,10 @@ declare interface BatchJobSource {
|
|
|
595
595
|
|
|
596
596
|
declare type BatchJobSourceUnion = BatchJobSource | InlinedRequest[] | string;
|
|
597
597
|
|
|
598
|
-
/** Specifies the function Behavior. Currently only supported
|
|
598
|
+
/** Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
|
|
599
599
|
declare enum Behavior {
|
|
600
600
|
/**
|
|
601
|
-
* This value is
|
|
601
|
+
* This value is unspecified.
|
|
602
602
|
*/
|
|
603
603
|
UNSPECIFIED = "UNSPECIFIED",
|
|
604
604
|
/**
|
|
@@ -2527,7 +2527,7 @@ declare interface FunctionDeclaration {
|
|
|
2527
2527
|
response?: Schema;
|
|
2528
2528
|
/** Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. */
|
|
2529
2529
|
responseJsonSchema?: unknown;
|
|
2530
|
-
/** Optional. Specifies the function Behavior. Currently only supported
|
|
2530
|
+
/** Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
|
|
2531
2531
|
behavior?: Behavior;
|
|
2532
2532
|
}
|
|
2533
2533
|
|
|
@@ -530,11 +530,11 @@ var PhishBlockThreshold;
|
|
|
530
530
|
*/
|
|
531
531
|
PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
|
|
532
532
|
})(PhishBlockThreshold || (PhishBlockThreshold = {}));
|
|
533
|
-
/** Specifies the function Behavior. Currently only supported
|
|
533
|
+
/** Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
|
|
534
534
|
var Behavior;
|
|
535
535
|
(function (Behavior) {
|
|
536
536
|
/**
|
|
537
|
-
* This value is
|
|
537
|
+
* This value is unspecified.
|
|
538
538
|
*/
|
|
539
539
|
Behavior["UNSPECIFIED"] = "UNSPECIFIED";
|
|
540
540
|
/**
|
|
@@ -2050,7 +2050,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
2050
2050
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
2051
2051
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
2052
2052
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
2053
|
-
const SDK_VERSION = '2.0
|
|
2053
|
+
const SDK_VERSION = '2.1.0'; // x-release-please-version
|
|
2054
2054
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
2055
2055
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
2056
2056
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|