@langchain/google-vertexai-web 0.2.17 → 1.0.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/CHANGELOG.md +17 -0
- package/LICENSE +6 -6
- package/README.md +1 -1
- package/dist/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/chat_models.cjs +307 -305
- package/dist/chat_models.cjs.map +1 -0
- package/dist/chat_models.d.cts +301 -0
- package/dist/chat_models.d.cts.map +1 -0
- package/dist/chat_models.d.ts +12 -7
- package/dist/chat_models.d.ts.map +1 -0
- package/dist/chat_models.js +306 -301
- package/dist/chat_models.js.map +1 -0
- package/dist/embeddings.cjs +21 -18
- package/dist/embeddings.cjs.map +1 -0
- package/dist/embeddings.d.cts +19 -0
- package/dist/embeddings.d.cts.map +1 -0
- package/dist/embeddings.d.ts +11 -6
- package/dist/embeddings.d.ts.map +1 -0
- package/dist/embeddings.js +21 -15
- package/dist/embeddings.js.map +1 -0
- package/dist/index.cjs +7 -19
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -3
- package/dist/llms.cjs +26 -24
- package/dist/llms.cjs.map +1 -0
- package/dist/llms.d.cts +20 -0
- package/dist/llms.d.cts.map +1 -0
- package/dist/llms.d.ts +12 -7
- package/dist/llms.d.ts.map +1 -0
- package/dist/llms.js +25 -20
- package/dist/llms.js.map +1 -0
- package/dist/types.cjs +9 -17
- package/dist/types.d.cts +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +9 -17
- package/dist/utils.d.cts +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +55 -72
- package/index.cjs +0 -1
- package/index.d.cts +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/types.cjs +0 -1
- package/types.d.cts +0 -1
- package/types.d.ts +0 -1
- package/types.js +0 -1
- package/utils.cjs +0 -1
- package/utils.d.cts +0 -1
- package/utils.d.ts +0 -1
- package/utils.js +0 -1
package/dist/embeddings.cjs
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const __langchain_google_webauth = require_rolldown_runtime.__toESM(require("@langchain/google-webauth"));
|
|
3
|
+
|
|
4
|
+
//#region src/embeddings.ts
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
6
|
+
* Integration with a Google Vertex AI embeddings model using
|
|
7
|
+
* the "@langchain/google-webauth" package for auth.
|
|
8
|
+
*/
|
|
9
|
+
var VertexAIEmbeddings = class extends __langchain_google_webauth.GoogleEmbeddings {
|
|
10
|
+
static lc_name() {
|
|
11
|
+
return "VertexAIEmbeddings";
|
|
12
|
+
}
|
|
13
|
+
constructor(fields) {
|
|
14
|
+
super({
|
|
15
|
+
...fields,
|
|
16
|
+
platformType: "gcp"
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
20
22
|
exports.VertexAIEmbeddings = VertexAIEmbeddings;
|
|
23
|
+
//# sourceMappingURL=embeddings.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.cjs","names":["GoogleEmbeddings","fields: GoogleVertexAIEmbeddingsInput"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n type GoogleEmbeddingsInput,\n GoogleEmbeddings,\n} from \"@langchain/google-webauth\";\n\n/**\n * Input to a Google Vertex AI embeddings class.\n */\nexport interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {}\n\n/**\n * Integration with a Google Vertex AI embeddings model using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport class VertexAIEmbeddings extends GoogleEmbeddings {\n static lc_name() {\n return \"VertexAIEmbeddings\";\n }\n\n constructor(fields: GoogleVertexAIEmbeddingsInput) {\n super({\n ...fields,\n platformType: \"gcp\",\n });\n }\n}\n"],"mappings":";;;;;;;;AAcA,IAAa,qBAAb,cAAwCA,4CAAiB;CACvD,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYC,QAAuC;EACjD,MAAM;GACJ,GAAG;GACH,cAAc;EACf,EAAC;CACH;AACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "@langchain/google-webauth";
|
|
2
|
+
|
|
3
|
+
//#region src/embeddings.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Input to a Google Vertex AI embeddings class.
|
|
7
|
+
*/
|
|
8
|
+
interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {}
|
|
9
|
+
/**
|
|
10
|
+
* Integration with a Google Vertex AI embeddings model using
|
|
11
|
+
* the "@langchain/google-webauth" package for auth.
|
|
12
|
+
*/
|
|
13
|
+
declare class VertexAIEmbeddings extends GoogleEmbeddings {
|
|
14
|
+
static lc_name(): string;
|
|
15
|
+
constructor(fields: GoogleVertexAIEmbeddingsInput);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { GoogleVertexAIEmbeddingsInput, VertexAIEmbeddings };
|
|
19
|
+
//# sourceMappingURL=embeddings.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.d.cts","names":["GoogleEmbeddingsInput","GoogleEmbeddings","GoogleVertexAIEmbeddingsInput","VertexAIEmbeddings"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { type GoogleEmbeddingsInput, GoogleEmbeddings } from \"@langchain/google-webauth\";\n/**\n * Input to a Google Vertex AI embeddings class.\n */\nexport interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {\n}\n/**\n * Integration with a Google Vertex AI embeddings model using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport declare class VertexAIEmbeddings extends GoogleEmbeddings {\n static lc_name(): string;\n constructor(fields: GoogleVertexAIEmbeddingsInput);\n}\n"],"mappings":";;;;;;AAIA;AAMqBG,UANJD,6BAAAA,SAAsCF,qBAMhB,CAAA;;;AAAyB;;cAA3CG,kBAAAA,SAA2BF,gBAAAA;;sBAExBC"}
|
package/dist/embeddings.d.ts
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "@langchain/google-webauth";
|
|
2
|
+
|
|
3
|
+
//#region src/embeddings.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Input to a Google Vertex AI embeddings class.
|
|
4
7
|
*/
|
|
5
|
-
|
|
6
|
-
}
|
|
8
|
+
interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {}
|
|
7
9
|
/**
|
|
8
10
|
* Integration with a Google Vertex AI embeddings model using
|
|
9
11
|
* the "@langchain/google-webauth" package for auth.
|
|
10
12
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare class VertexAIEmbeddings extends GoogleEmbeddings {
|
|
14
|
+
static lc_name(): string;
|
|
15
|
+
constructor(fields: GoogleVertexAIEmbeddingsInput);
|
|
14
16
|
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { GoogleVertexAIEmbeddingsInput, VertexAIEmbeddings };
|
|
19
|
+
//# sourceMappingURL=embeddings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.d.ts","names":["GoogleEmbeddingsInput","GoogleEmbeddings","GoogleVertexAIEmbeddingsInput","VertexAIEmbeddings"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { type GoogleEmbeddingsInput, GoogleEmbeddings } from \"@langchain/google-webauth\";\n/**\n * Input to a Google Vertex AI embeddings class.\n */\nexport interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {\n}\n/**\n * Integration with a Google Vertex AI embeddings model using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport declare class VertexAIEmbeddings extends GoogleEmbeddings {\n static lc_name(): string;\n constructor(fields: GoogleVertexAIEmbeddingsInput);\n}\n"],"mappings":";;;;;;AAIA;AAMqBG,UANJD,6BAAAA,SAAsCF,qBAMhB,CAAA;;;AAAyB;;cAA3CG,kBAAAA,SAA2BF,gBAAAA;;sBAExBC"}
|
package/dist/embeddings.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { GoogleEmbeddings
|
|
1
|
+
import { GoogleEmbeddings } from "@langchain/google-webauth";
|
|
2
|
+
|
|
3
|
+
//#region src/embeddings.ts
|
|
2
4
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
5
|
+
* Integration with a Google Vertex AI embeddings model using
|
|
6
|
+
* the "@langchain/google-webauth" package for auth.
|
|
7
|
+
*/
|
|
8
|
+
var VertexAIEmbeddings = class extends GoogleEmbeddings {
|
|
9
|
+
static lc_name() {
|
|
10
|
+
return "VertexAIEmbeddings";
|
|
11
|
+
}
|
|
12
|
+
constructor(fields) {
|
|
13
|
+
super({
|
|
14
|
+
...fields,
|
|
15
|
+
platformType: "gcp"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { VertexAIEmbeddings };
|
|
22
|
+
//# sourceMappingURL=embeddings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.js","names":["fields: GoogleVertexAIEmbeddingsInput"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n type GoogleEmbeddingsInput,\n GoogleEmbeddings,\n} from \"@langchain/google-webauth\";\n\n/**\n * Input to a Google Vertex AI embeddings class.\n */\nexport interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {}\n\n/**\n * Integration with a Google Vertex AI embeddings model using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport class VertexAIEmbeddings extends GoogleEmbeddings {\n static lc_name() {\n return \"VertexAIEmbeddings\";\n }\n\n constructor(fields: GoogleVertexAIEmbeddingsInput) {\n super({\n ...fields,\n platformType: \"gcp\",\n });\n }\n}\n"],"mappings":";;;;;;;AAcA,IAAa,qBAAb,cAAwC,iBAAiB;CACvD,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYA,QAAuC;EACjD,MAAM;GACJ,GAAG;GACH,cAAc;EACf,EAAC;CACH;AACF"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./chat_models.cjs"), exports);
|
|
18
|
-
__exportStar(require("./llms.cjs"), exports);
|
|
19
|
-
__exportStar(require("./embeddings.cjs"), exports);
|
|
1
|
+
const require_chat_models = require('./chat_models.cjs');
|
|
2
|
+
const require_llms = require('./llms.cjs');
|
|
3
|
+
const require_embeddings = require('./embeddings.cjs');
|
|
4
|
+
|
|
5
|
+
exports.ChatVertexAI = require_chat_models.ChatVertexAI;
|
|
6
|
+
exports.VertexAI = require_llms.VertexAI;
|
|
7
|
+
exports.VertexAIEmbeddings = require_embeddings.VertexAIEmbeddings;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChatVertexAI, ChatVertexAIInput } from "./chat_models.cjs";
|
|
2
|
+
import { VertexAI, VertexAIInput } from "./llms.cjs";
|
|
3
|
+
import { GoogleVertexAIEmbeddingsInput, VertexAIEmbeddings } from "./embeddings.cjs";
|
|
4
|
+
export { ChatVertexAI, ChatVertexAIInput, GoogleVertexAIEmbeddingsInput, VertexAI, VertexAIEmbeddings, VertexAIInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ChatVertexAI, ChatVertexAIInput } from "./chat_models.js";
|
|
2
|
+
import { VertexAI, VertexAIInput } from "./llms.js";
|
|
3
|
+
import { GoogleVertexAIEmbeddingsInput, VertexAIEmbeddings } from "./embeddings.js";
|
|
4
|
+
export { ChatVertexAI, ChatVertexAIInput, GoogleVertexAIEmbeddingsInput, VertexAI, VertexAIEmbeddings, VertexAIInput };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ChatVertexAI } from "./chat_models.js";
|
|
2
|
+
import { VertexAI } from "./llms.js";
|
|
3
|
+
import { VertexAIEmbeddings } from "./embeddings.js";
|
|
4
|
+
|
|
5
|
+
export { ChatVertexAI, VertexAI, VertexAIEmbeddings };
|
package/dist/llms.cjs
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const __langchain_google_webauth = require_rolldown_runtime.__toESM(require("@langchain/google-webauth"));
|
|
3
|
+
|
|
4
|
+
//#region src/llms.ts
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
* Integration with a Google Vertex AI LLM using
|
|
7
|
+
* the "@langchain/google-webauth" package for auth.
|
|
8
|
+
*/
|
|
9
|
+
var VertexAI = class extends __langchain_google_webauth.GoogleLLM {
|
|
10
|
+
lc_namespace = [
|
|
11
|
+
"langchain",
|
|
12
|
+
"llms",
|
|
13
|
+
"vertexai"
|
|
14
|
+
];
|
|
15
|
+
static lc_name() {
|
|
16
|
+
return "VertexAI";
|
|
17
|
+
}
|
|
18
|
+
constructor(fields) {
|
|
19
|
+
super({
|
|
20
|
+
...fields,
|
|
21
|
+
platformType: "gcp"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
26
27
|
exports.VertexAI = VertexAI;
|
|
28
|
+
//# sourceMappingURL=llms.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.cjs","names":["GoogleLLM","fields?: VertexAIInput"],"sources":["../src/llms.ts"],"sourcesContent":["import { type GoogleLLMInput, GoogleLLM } from \"@langchain/google-webauth\";\n\n/**\n * Input to a Google Vertex LLM class.\n */\nexport interface VertexAIInput extends GoogleLLMInput {}\n\n/**\n * Integration with a Google Vertex AI LLM using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport class VertexAI extends GoogleLLM {\n lc_namespace = [\"langchain\", \"llms\", \"vertexai\"];\n\n static lc_name() {\n return \"VertexAI\";\n }\n\n constructor(fields?: VertexAIInput) {\n super({\n ...fields,\n platformType: \"gcp\",\n });\n }\n}\n"],"mappings":";;;;;;;;AAWA,IAAa,WAAb,cAA8BA,qCAAU;CACtC,eAAe;EAAC;EAAa;EAAQ;CAAW;CAEhD,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYC,QAAwB;EAClC,MAAM;GACJ,GAAG;GACH,cAAc;EACf,EAAC;CACH;AACF"}
|
package/dist/llms.d.cts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GoogleLLM, GoogleLLMInput } from "@langchain/google-webauth";
|
|
2
|
+
|
|
3
|
+
//#region src/llms.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Input to a Google Vertex LLM class.
|
|
7
|
+
*/
|
|
8
|
+
interface VertexAIInput extends GoogleLLMInput {}
|
|
9
|
+
/**
|
|
10
|
+
* Integration with a Google Vertex AI LLM using
|
|
11
|
+
* the "@langchain/google-webauth" package for auth.
|
|
12
|
+
*/
|
|
13
|
+
declare class VertexAI extends GoogleLLM {
|
|
14
|
+
lc_namespace: string[];
|
|
15
|
+
static lc_name(): string;
|
|
16
|
+
constructor(fields?: VertexAIInput);
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { VertexAI, VertexAIInput };
|
|
20
|
+
//# sourceMappingURL=llms.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.d.cts","names":["GoogleLLMInput","GoogleLLM","VertexAIInput","VertexAI"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { type GoogleLLMInput, GoogleLLM } from \"@langchain/google-webauth\";\n/**\n * Input to a Google Vertex LLM class.\n */\nexport interface VertexAIInput extends GoogleLLMInput {\n}\n/**\n * Integration with a Google Vertex AI LLM using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport declare class VertexAI extends GoogleLLM {\n lc_namespace: string[];\n static lc_name(): string;\n constructor(fields?: VertexAIInput);\n}\n"],"mappings":";;;;;;AAIA;AAMqBG,UANJD,aAAAA,SAAsBF,cAMV,CAAA;;;AAAkB;;cAA1BG,QAAAA,SAAiBF,SAAAA;;;uBAGbC"}
|
package/dist/llms.d.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GoogleLLM, GoogleLLMInput } from "@langchain/google-webauth";
|
|
2
|
+
|
|
3
|
+
//#region src/llms.d.ts
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Input to a Google Vertex LLM class.
|
|
4
7
|
*/
|
|
5
|
-
|
|
6
|
-
}
|
|
8
|
+
interface VertexAIInput extends GoogleLLMInput {}
|
|
7
9
|
/**
|
|
8
10
|
* Integration with a Google Vertex AI LLM using
|
|
9
11
|
* the "@langchain/google-webauth" package for auth.
|
|
10
12
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
declare class VertexAI extends GoogleLLM {
|
|
14
|
+
lc_namespace: string[];
|
|
15
|
+
static lc_name(): string;
|
|
16
|
+
constructor(fields?: VertexAIInput);
|
|
15
17
|
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { VertexAI, VertexAIInput };
|
|
20
|
+
//# sourceMappingURL=llms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.d.ts","names":["GoogleLLMInput","GoogleLLM","VertexAIInput","VertexAI"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { type GoogleLLMInput, GoogleLLM } from \"@langchain/google-webauth\";\n/**\n * Input to a Google Vertex LLM class.\n */\nexport interface VertexAIInput extends GoogleLLMInput {\n}\n/**\n * Integration with a Google Vertex AI LLM using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport declare class VertexAI extends GoogleLLM {\n lc_namespace: string[];\n static lc_name(): string;\n constructor(fields?: VertexAIInput);\n}\n"],"mappings":";;;;;;AAIA;AAMqBG,UANJD,aAAAA,SAAsBF,cAMV,CAAA;;;AAAkB;;cAA1BG,QAAAA,SAAiBF,SAAAA;;;uBAGbC"}
|
package/dist/llms.js
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
import { GoogleLLM } from "@langchain/google-webauth";
|
|
2
|
+
|
|
3
|
+
//#region src/llms.ts
|
|
2
4
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
* Integration with a Google Vertex AI LLM using
|
|
6
|
+
* the "@langchain/google-webauth" package for auth.
|
|
7
|
+
*/
|
|
8
|
+
var VertexAI = class extends GoogleLLM {
|
|
9
|
+
lc_namespace = [
|
|
10
|
+
"langchain",
|
|
11
|
+
"llms",
|
|
12
|
+
"vertexai"
|
|
13
|
+
];
|
|
14
|
+
static lc_name() {
|
|
15
|
+
return "VertexAI";
|
|
16
|
+
}
|
|
17
|
+
constructor(fields) {
|
|
18
|
+
super({
|
|
19
|
+
...fields,
|
|
20
|
+
platformType: "gcp"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { VertexAI };
|
|
27
|
+
//# sourceMappingURL=llms.js.map
|
package/dist/llms.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.js","names":["fields?: VertexAIInput"],"sources":["../src/llms.ts"],"sourcesContent":["import { type GoogleLLMInput, GoogleLLM } from \"@langchain/google-webauth\";\n\n/**\n * Input to a Google Vertex LLM class.\n */\nexport interface VertexAIInput extends GoogleLLMInput {}\n\n/**\n * Integration with a Google Vertex AI LLM using\n * the \"@langchain/google-webauth\" package for auth.\n */\nexport class VertexAI extends GoogleLLM {\n lc_namespace = [\"langchain\", \"llms\", \"vertexai\"];\n\n static lc_name() {\n return \"VertexAI\";\n }\n\n constructor(fields?: VertexAIInput) {\n super({\n ...fields,\n platformType: \"gcp\",\n });\n }\n}\n"],"mappings":";;;;;;;AAWA,IAAa,WAAb,cAA8B,UAAU;CACtC,eAAe;EAAC;EAAa;EAAQ;CAAW;CAEhD,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAYA,QAAwB;EAClC,MAAM;GACJ,GAAG;GACH,cAAc;EACf,EAAC;CACH;AACF"}
|
package/dist/types.cjs
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@langchain/google-webauth/types"), exports);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __langchain_google_webauth_types = require("@langchain/google-webauth/types");
|
|
4
|
+
Object.keys(__langchain_google_webauth_types).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return __langchain_google_webauth_types[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@langchain/google-webauth/types";
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-webauth/types";
|
|
1
|
+
export * from "@langchain/google-webauth/types";
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-webauth/types"
|
|
1
|
+
export * from "@langchain/google-webauth/types"
|
package/dist/utils.cjs
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@langchain/google-webauth/utils"), exports);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __langchain_google_webauth_utils = require("@langchain/google-webauth/utils");
|
|
4
|
+
Object.keys(__langchain_google_webauth_utils).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return __langchain_google_webauth_utils[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/utils.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@langchain/google-webauth/utils";
|
package/dist/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-webauth/utils";
|
|
1
|
+
export * from "@langchain/google-webauth/utils";
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-webauth/utils"
|
|
1
|
+
export * from "@langchain/google-webauth/utils"
|
package/package.json
CHANGED
|
@@ -1,116 +1,99 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-vertexai-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "LangChain.js support for Google Vertex AI Web",
|
|
5
|
+
"author": "LangChain",
|
|
6
|
+
"license": "MIT",
|
|
5
7
|
"type": "module",
|
|
6
8
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
9
|
+
"node": ">=20"
|
|
8
10
|
},
|
|
9
|
-
"main": "./index.js",
|
|
10
|
-
"types": "./index.d.ts",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git@github.com:langchain-ai/langchainjs.git"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-vertexai-web/",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "yarn turbo:command build:internal --filter=@langchain/google-vertexai-web",
|
|
18
|
-
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
|
|
19
|
-
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
|
|
20
|
-
"lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
21
|
-
"lint": "yarn lint:eslint && yarn lint:dpdm",
|
|
22
|
-
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
|
|
23
|
-
"clean": "rm -rf .turbo dist/",
|
|
24
|
-
"prepack": "yarn build",
|
|
25
|
-
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
|
|
26
|
-
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
27
|
-
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
|
|
28
|
-
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
29
|
-
"format": "prettier --config .prettierrc --write \"src\"",
|
|
30
|
-
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
31
|
-
},
|
|
32
|
-
"author": "LangChain",
|
|
33
|
-
"license": "MIT",
|
|
34
16
|
"dependencies": {
|
|
35
|
-
"@langchain/google-webauth": "^0.
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"@langchain/core": ">=0.3.58 <0.4.0"
|
|
17
|
+
"@langchain/google-webauth": "^1.0.0"
|
|
39
18
|
},
|
|
40
19
|
"devDependencies": {
|
|
41
20
|
"@jest/globals": "^29.5.0",
|
|
42
|
-
"@langchain/core": "workspace:*",
|
|
43
|
-
"@langchain/google-common": "^0.2.17",
|
|
44
|
-
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
|
45
|
-
"@langchain/standard-tests": "0.0.0",
|
|
46
21
|
"@swc/core": "^1.3.90",
|
|
47
22
|
"@swc/jest": "^0.2.29",
|
|
48
23
|
"@tsconfig/recommended": "^1.0.3",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
50
|
-
"@typescript-eslint/parser": "^6.12.0",
|
|
51
24
|
"dotenv": "^16.3.1",
|
|
52
25
|
"dpdm": "^3.14.0",
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
55
|
-
"eslint-config-prettier": "^8.6.0",
|
|
56
|
-
"eslint-plugin-import": "^2.27.5",
|
|
57
|
-
"eslint-plugin-no-instanceof": "^1.0.1",
|
|
58
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
26
|
+
"eslint": "^9.34.0",
|
|
59
27
|
"jest": "^29.5.0",
|
|
60
28
|
"jest-environment-node": "^29.6.4",
|
|
61
29
|
"prettier": "^2.8.3",
|
|
62
|
-
"release-it": "^18.1.2",
|
|
63
30
|
"rollup": "^4.5.2",
|
|
64
31
|
"ts-jest": "^29.1.0",
|
|
65
32
|
"typescript": "~5.8.3",
|
|
66
|
-
"zod": "^3.
|
|
33
|
+
"zod": "^3.25.76",
|
|
34
|
+
"@langchain/google-common": "1.0.0",
|
|
35
|
+
"@langchain/eslint": "0.1.0",
|
|
36
|
+
"@langchain/standard-tests": "0.0.0"
|
|
67
37
|
},
|
|
68
38
|
"publishConfig": {
|
|
69
39
|
"access": "public"
|
|
70
40
|
},
|
|
41
|
+
"main": "./dist/index.js",
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
71
43
|
"exports": {
|
|
72
44
|
".": {
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"default": "./index.
|
|
45
|
+
"input": "./src/index.ts",
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./dist/index.d.ts",
|
|
48
|
+
"default": "./dist/index.js"
|
|
77
49
|
},
|
|
78
|
-
"
|
|
79
|
-
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/index.d.cts",
|
|
52
|
+
"default": "./dist/index.cjs"
|
|
53
|
+
}
|
|
80
54
|
},
|
|
81
55
|
"./utils": {
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
"default": "./utils.
|
|
56
|
+
"input": "./src/utils.ts",
|
|
57
|
+
"import": {
|
|
58
|
+
"types": "./dist/utils.d.ts",
|
|
59
|
+
"default": "./dist/utils.js"
|
|
86
60
|
},
|
|
87
|
-
"
|
|
88
|
-
|
|
61
|
+
"require": {
|
|
62
|
+
"types": "./dist/utils.d.cts",
|
|
63
|
+
"default": "./dist/utils.cjs"
|
|
64
|
+
}
|
|
89
65
|
},
|
|
90
66
|
"./types": {
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
"default": "./types.
|
|
67
|
+
"input": "./src/types.ts",
|
|
68
|
+
"import": {
|
|
69
|
+
"types": "./dist/types.d.ts",
|
|
70
|
+
"default": "./dist/types.js"
|
|
95
71
|
},
|
|
96
|
-
"
|
|
97
|
-
|
|
72
|
+
"require": {
|
|
73
|
+
"types": "./dist/types.d.cts",
|
|
74
|
+
"default": "./dist/types.cjs"
|
|
75
|
+
}
|
|
98
76
|
},
|
|
99
77
|
"./package.json": "./package.json"
|
|
100
78
|
},
|
|
101
79
|
"files": [
|
|
102
80
|
"dist/",
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
81
|
+
"CHANGELOG.md",
|
|
82
|
+
"README.md",
|
|
83
|
+
"LICENSE"
|
|
84
|
+
],
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "pnpm --filter @langchain/build compile @langchain/google-vertexai-web",
|
|
87
|
+
"lint:eslint": "eslint --cache src/",
|
|
88
|
+
"lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
89
|
+
"lint": "pnpm lint:eslint && pnpm lint:dpdm",
|
|
90
|
+
"lint:fix": "pnpm lint:eslint --fix && pnpm lint:dpdm",
|
|
91
|
+
"clean": "rm -rf .turbo dist/",
|
|
92
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
|
|
93
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
94
|
+
"test:single": "NODE_OPTIONS=--experimental-vm-modules pnpm run jest --config jest.config.cjs --testTimeout 100000",
|
|
95
|
+
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
96
|
+
"format": "prettier --config .prettierrc --write \"src\"",
|
|
97
|
+
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
98
|
+
}
|
|
99
|
+
}
|
package/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./dist/index.cjs');
|