@firebase/ai 2.2.1-canary.120a30838 → 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.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { FirebaseError, Deferred, getModularInstance } from '@firebase/util';
|
|
|
4
4
|
import { Logger } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
var name = "@firebase/ai";
|
|
7
|
-
var version = "2.2.1-canary.
|
|
7
|
+
var version = "2.2.1-canary.43276b041";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -324,6 +324,26 @@ const InferenceMode = {
|
|
|
324
324
|
'ONLY_IN_CLOUD': 'only_in_cloud',
|
|
325
325
|
'PREFER_IN_CLOUD': 'prefer_in_cloud'
|
|
326
326
|
};
|
|
327
|
+
/**
|
|
328
|
+
* Represents the result of the code execution.
|
|
329
|
+
*
|
|
330
|
+
* @public
|
|
331
|
+
*/
|
|
332
|
+
const Outcome = {
|
|
333
|
+
UNSPECIFIED: 'OUTCOME_UNSPECIFIED',
|
|
334
|
+
OK: 'OUTCOME_OK',
|
|
335
|
+
FAILED: 'OUTCOME_FAILED',
|
|
336
|
+
DEADLINE_EXCEEDED: 'OUTCOME_DEADLINE_EXCEEDED'
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* The programming language of the code.
|
|
340
|
+
*
|
|
341
|
+
* @public
|
|
342
|
+
*/
|
|
343
|
+
const Language = {
|
|
344
|
+
UNSPECIFIED: 'LANGUAGE_UNSPECIFIED',
|
|
345
|
+
PYTHON: 'PYTHON'
|
|
346
|
+
};
|
|
327
347
|
|
|
328
348
|
/**
|
|
329
349
|
* @license
|
|
@@ -2063,7 +2083,9 @@ function validateChatHistory(history) {
|
|
|
2063
2083
|
functionCall: 0,
|
|
2064
2084
|
functionResponse: 0,
|
|
2065
2085
|
thought: 0,
|
|
2066
|
-
thoughtSignature: 0
|
|
2086
|
+
thoughtSignature: 0,
|
|
2087
|
+
executableCode: 0,
|
|
2088
|
+
codeExecutionResult: 0
|
|
2067
2089
|
};
|
|
2068
2090
|
for (const part of parts) {
|
|
2069
2091
|
for (const key of VALID_PART_FIELDS) {
|
|
@@ -3701,5 +3723,5 @@ function registerAI() {
|
|
|
3701
3723
|
}
|
|
3702
3724
|
registerAI();
|
|
3703
3725
|
|
|
3704
|
-
export { AIError, AIErrorCode, AIModel, AnyOfSchema, ArraySchema, Backend, BackendType, BlockReason, BooleanSchema, ChatSession, FinishReason, FunctionCallingMode, GenerativeModel, GoogleAIBackend, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, ImagenAspectRatio, ImagenImageFormat, ImagenModel, ImagenPersonFilterLevel, ImagenSafetyFilterLevel, InferenceMode, IntegerSchema, LiveGenerativeModel, LiveResponseType, LiveSession, Modality, NumberSchema, ObjectSchema, POSSIBLE_ROLES, ResponseModality, Schema, SchemaType, StringSchema, VertexAIBackend, getAI, getGenerativeModel, getImagenModel, getLiveGenerativeModel, startAudioConversation };
|
|
3726
|
+
export { AIError, AIErrorCode, AIModel, AnyOfSchema, ArraySchema, Backend, BackendType, BlockReason, BooleanSchema, ChatSession, FinishReason, FunctionCallingMode, GenerativeModel, GoogleAIBackend, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, ImagenAspectRatio, ImagenImageFormat, ImagenModel, ImagenPersonFilterLevel, ImagenSafetyFilterLevel, InferenceMode, IntegerSchema, Language, LiveGenerativeModel, LiveResponseType, LiveSession, Modality, NumberSchema, ObjectSchema, Outcome, POSSIBLE_ROLES, ResponseModality, Schema, SchemaType, StringSchema, VertexAIBackend, getAI, getGenerativeModel, getImagenModel, getLiveGenerativeModel, startAudioConversation };
|
|
3705
3727
|
//# sourceMappingURL=index.node.mjs.map
|