integrate-sdk 0.7.49 → 0.7.50
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/google.d.ts.map +1 -1
- package/dist/ai/google.js +6 -4
- package/dist/ai/index.js +6 -4
- package/dist/server.js +6 -4
- package/dist/src/ai/google.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ai/google.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACL,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACL,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C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ected(client) {
|
|
|
4204
4204
|
|
|
4205
4205
|
// google.ts
|
|
4206
4206
|
async function getGoogleType() {
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4207
|
+
try {
|
|
4208
|
+
const dynamicImport = new Function("specifier", "return import(specifier)");
|
|
4209
|
+
const packageName = "@" + "google" + "/" + "genai";
|
|
4210
|
+
const googleGenAI = await dynamicImport(packageName);
|
|
4211
|
+
return googleGenAI.Type;
|
|
4212
|
+
} catch (error) {
|
|
4210
4213
|
throw new Error("The @google/genai package is required to use Google AI integration. Install it with: npm install @google/genai");
|
|
4211
4214
|
}
|
|
4212
|
-
return googleGenAI.Type;
|
|
4213
4215
|
}
|
|
4214
4216
|
function convertJsonSchemaTypeToGoogleType(type, TypeEnum) {
|
|
4215
4217
|
const typeMap = {
|
package/dist/ai/index.js
CHANGED
|
@@ -4318,12 +4318,14 @@ async function getCloudflareTools(client, options) {
|
|
|
4318
4318
|
|
|
4319
4319
|
// google.ts
|
|
4320
4320
|
async function getGoogleType() {
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4321
|
+
try {
|
|
4322
|
+
const dynamicImport = new Function("specifier", "return import(specifier)");
|
|
4323
|
+
const packageName = "@" + "google" + "/" + "genai";
|
|
4324
|
+
const googleGenAI = await dynamicImport(packageName);
|
|
4325
|
+
return googleGenAI.Type;
|
|
4326
|
+
} catch (error) {
|
|
4324
4327
|
throw new Error("The @google/genai package is required to use Google AI integration. Install it with: npm install @google/genai");
|
|
4325
4328
|
}
|
|
4326
|
-
return googleGenAI.Type;
|
|
4327
4329
|
}
|
|
4328
4330
|
function convertJsonSchemaTypeToGoogleType(type, TypeEnum) {
|
|
4329
4331
|
const typeMap = {
|
package/dist/server.js
CHANGED
|
@@ -7133,12 +7133,14 @@ async function getAnthropicTools(client, options) {
|
|
|
7133
7133
|
}
|
|
7134
7134
|
// src/ai/google.ts
|
|
7135
7135
|
async function getGoogleType() {
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7136
|
+
try {
|
|
7137
|
+
const dynamicImport = new Function("specifier", "return import(specifier)");
|
|
7138
|
+
const packageName = "@" + "google" + "/" + "genai";
|
|
7139
|
+
const googleGenAI = await dynamicImport(packageName);
|
|
7140
|
+
return googleGenAI.Type;
|
|
7141
|
+
} catch (error) {
|
|
7139
7142
|
throw new Error("The @google/genai package is required to use Google AI integration. Install it with: npm install @google/genai");
|
|
7140
7143
|
}
|
|
7141
|
-
return googleGenAI.Type;
|
|
7142
7144
|
}
|
|
7143
7145
|
function convertJsonSchemaTypeToGoogleType(type, TypeEnum) {
|
|
7144
7146
|
const typeMap = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACL,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/ai/google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjH,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,YAAY,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