@firebase/ai 2.2.1-canary.06ab5c4f9 → 2.2.1-canary.43276b041
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/ai-public.d.ts +128 -4
- package/dist/ai.d.ts +134 -4
- package/dist/esm/index.esm.js +25 -3
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/src/types/content.d.ts +81 -2
- package/dist/esm/src/types/enums.d.ts +32 -0
- package/dist/esm/src/types/requests.d.ts +13 -3
- package/dist/index.cjs.js +26 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.node.cjs.js +26 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +25 -3
- package/dist/index.node.mjs.map +1 -1
- package/dist/src/types/content.d.ts +81 -2
- package/dist/src/types/enums.d.ts +32 -0
- package/dist/src/types/requests.d.ts +13 -3
- package/package.json +8 -8
package/dist/index.node.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
|
|
|
8
8
|
var logger$1 = require('@firebase/logger');
|
|
9
9
|
|
|
10
10
|
var name = "@firebase/ai";
|
|
11
|
-
var version = "2.2.1-canary.
|
|
11
|
+
var version = "2.2.1-canary.43276b041";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -328,6 +328,26 @@ const InferenceMode = {
|
|
|
328
328
|
'ONLY_IN_CLOUD': 'only_in_cloud',
|
|
329
329
|
'PREFER_IN_CLOUD': 'prefer_in_cloud'
|
|
330
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* Represents the result of the code execution.
|
|
333
|
+
*
|
|
334
|
+
* @public
|
|
335
|
+
*/
|
|
336
|
+
const Outcome = {
|
|
337
|
+
UNSPECIFIED: 'OUTCOME_UNSPECIFIED',
|
|
338
|
+
OK: 'OUTCOME_OK',
|
|
339
|
+
FAILED: 'OUTCOME_FAILED',
|
|
340
|
+
DEADLINE_EXCEEDED: 'OUTCOME_DEADLINE_EXCEEDED'
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* The programming language of the code.
|
|
344
|
+
*
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
347
|
+
const Language = {
|
|
348
|
+
UNSPECIFIED: 'LANGUAGE_UNSPECIFIED',
|
|
349
|
+
PYTHON: 'PYTHON'
|
|
350
|
+
};
|
|
331
351
|
|
|
332
352
|
/**
|
|
333
353
|
* @license
|
|
@@ -2067,7 +2087,9 @@ function validateChatHistory(history) {
|
|
|
2067
2087
|
functionCall: 0,
|
|
2068
2088
|
functionResponse: 0,
|
|
2069
2089
|
thought: 0,
|
|
2070
|
-
thoughtSignature: 0
|
|
2090
|
+
thoughtSignature: 0,
|
|
2091
|
+
executableCode: 0,
|
|
2092
|
+
codeExecutionResult: 0
|
|
2071
2093
|
};
|
|
2072
2094
|
for (const part of parts) {
|
|
2073
2095
|
for (const key of VALID_PART_FIELDS) {
|
|
@@ -3731,12 +3753,14 @@ exports.ImagenPersonFilterLevel = ImagenPersonFilterLevel;
|
|
|
3731
3753
|
exports.ImagenSafetyFilterLevel = ImagenSafetyFilterLevel;
|
|
3732
3754
|
exports.InferenceMode = InferenceMode;
|
|
3733
3755
|
exports.IntegerSchema = IntegerSchema;
|
|
3756
|
+
exports.Language = Language;
|
|
3734
3757
|
exports.LiveGenerativeModel = LiveGenerativeModel;
|
|
3735
3758
|
exports.LiveResponseType = LiveResponseType;
|
|
3736
3759
|
exports.LiveSession = LiveSession;
|
|
3737
3760
|
exports.Modality = Modality;
|
|
3738
3761
|
exports.NumberSchema = NumberSchema;
|
|
3739
3762
|
exports.ObjectSchema = ObjectSchema;
|
|
3763
|
+
exports.Outcome = Outcome;
|
|
3740
3764
|
exports.POSSIBLE_ROLES = POSSIBLE_ROLES;
|
|
3741
3765
|
exports.ResponseModality = ResponseModality;
|
|
3742
3766
|
exports.Schema = Schema;
|