@google/genai 2.6.0 → 2.7.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 +200 -27
- package/dist/index.cjs +138 -83
- package/dist/index.mjs +138 -83
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +138 -83
- package/dist/node/index.mjs +138 -83
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +200 -27
- package/dist/tokenizer/node.cjs +28 -24
- package/dist/tokenizer/node.d.ts +2 -3
- package/dist/tokenizer/node.mjs +28 -24
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +29 -25
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +85 -24
- package/dist/vertex_internal/index.js +29 -25
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +138 -83
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +200 -27
- package/package.json +1 -1
|
@@ -587,30 +587,6 @@ var DynamicRetrievalConfigMode;
|
|
|
587
587
|
*/
|
|
588
588
|
DynamicRetrievalConfigMode["MODE_DYNAMIC"] = "MODE_DYNAMIC";
|
|
589
589
|
})(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));
|
|
590
|
-
/** Function calling mode. */
|
|
591
|
-
var FunctionCallingConfigMode;
|
|
592
|
-
(function (FunctionCallingConfigMode) {
|
|
593
|
-
/**
|
|
594
|
-
* Unspecified function calling mode. This value should not be used.
|
|
595
|
-
*/
|
|
596
|
-
FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
|
|
597
|
-
/**
|
|
598
|
-
* Default model behavior, model decides to predict either function calls or natural language response.
|
|
599
|
-
*/
|
|
600
|
-
FunctionCallingConfigMode["AUTO"] = "AUTO";
|
|
601
|
-
/**
|
|
602
|
-
* Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
|
|
603
|
-
*/
|
|
604
|
-
FunctionCallingConfigMode["ANY"] = "ANY";
|
|
605
|
-
/**
|
|
606
|
-
* Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
|
|
607
|
-
*/
|
|
608
|
-
FunctionCallingConfigMode["NONE"] = "NONE";
|
|
609
|
-
/**
|
|
610
|
-
* Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
|
|
611
|
-
*/
|
|
612
|
-
FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
|
|
613
|
-
})(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
|
|
614
590
|
/** The number of thoughts tokens that the model should generate. */
|
|
615
591
|
var ThinkingLevel;
|
|
616
592
|
(function (ThinkingLevel) {
|
|
@@ -759,6 +735,30 @@ var HarmBlockThreshold;
|
|
|
759
735
|
*/
|
|
760
736
|
HarmBlockThreshold["OFF"] = "OFF";
|
|
761
737
|
})(HarmBlockThreshold || (HarmBlockThreshold = {}));
|
|
738
|
+
/** Function calling mode. */
|
|
739
|
+
var FunctionCallingConfigMode;
|
|
740
|
+
(function (FunctionCallingConfigMode) {
|
|
741
|
+
/**
|
|
742
|
+
* Unspecified function calling mode. This value should not be used.
|
|
743
|
+
*/
|
|
744
|
+
FunctionCallingConfigMode["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
|
|
745
|
+
/**
|
|
746
|
+
* Default model behavior, model decides to predict either function calls or natural language response.
|
|
747
|
+
*/
|
|
748
|
+
FunctionCallingConfigMode["AUTO"] = "AUTO";
|
|
749
|
+
/**
|
|
750
|
+
* Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
|
|
751
|
+
*/
|
|
752
|
+
FunctionCallingConfigMode["ANY"] = "ANY";
|
|
753
|
+
/**
|
|
754
|
+
* Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
|
|
755
|
+
*/
|
|
756
|
+
FunctionCallingConfigMode["NONE"] = "NONE";
|
|
757
|
+
/**
|
|
758
|
+
* Model is constrained to predict either function calls or natural language response. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations".
|
|
759
|
+
*/
|
|
760
|
+
FunctionCallingConfigMode["VALIDATED"] = "VALIDATED";
|
|
761
|
+
})(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));
|
|
762
762
|
/** Output only. The reason why the model stopped generating tokens.
|
|
763
763
|
|
|
764
764
|
If empty, the model has not stopped generating the tokens. */
|
|
@@ -1592,6 +1592,10 @@ var TuningMethod;
|
|
|
1592
1592
|
* Distillation tuning.
|
|
1593
1593
|
*/
|
|
1594
1594
|
TuningMethod["DISTILLATION"] = "DISTILLATION";
|
|
1595
|
+
/**
|
|
1596
|
+
* Reinforcement tuning.
|
|
1597
|
+
*/
|
|
1598
|
+
TuningMethod["REINFORCEMENT_TUNING"] = "REINFORCEMENT_TUNING";
|
|
1595
1599
|
})(TuningMethod || (TuningMethod = {}));
|
|
1596
1600
|
/** State for the lifecycle of a File. */
|
|
1597
1601
|
var FileState;
|
|
@@ -2111,7 +2115,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
2111
2115
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
2112
2116
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
2113
2117
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
2114
|
-
const SDK_VERSION = '2.
|
|
2118
|
+
const SDK_VERSION = '2.7.0'; // x-release-please-version
|
|
2115
2119
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
2116
2120
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
2117
2121
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|