@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.
Files changed (53) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +6 -6
  3. package/README.md +1 -1
  4. package/dist/_virtual/rolldown_runtime.cjs +25 -0
  5. package/dist/chat_models.cjs +307 -305
  6. package/dist/chat_models.cjs.map +1 -0
  7. package/dist/chat_models.d.cts +301 -0
  8. package/dist/chat_models.d.cts.map +1 -0
  9. package/dist/chat_models.d.ts +12 -7
  10. package/dist/chat_models.d.ts.map +1 -0
  11. package/dist/chat_models.js +306 -301
  12. package/dist/chat_models.js.map +1 -0
  13. package/dist/embeddings.cjs +21 -18
  14. package/dist/embeddings.cjs.map +1 -0
  15. package/dist/embeddings.d.cts +19 -0
  16. package/dist/embeddings.d.cts.map +1 -0
  17. package/dist/embeddings.d.ts +11 -6
  18. package/dist/embeddings.d.ts.map +1 -0
  19. package/dist/embeddings.js +21 -15
  20. package/dist/embeddings.js.map +1 -0
  21. package/dist/index.cjs +7 -19
  22. package/dist/index.d.cts +4 -0
  23. package/dist/index.d.ts +4 -3
  24. package/dist/index.js +5 -3
  25. package/dist/llms.cjs +26 -24
  26. package/dist/llms.cjs.map +1 -0
  27. package/dist/llms.d.cts +20 -0
  28. package/dist/llms.d.cts.map +1 -0
  29. package/dist/llms.d.ts +12 -7
  30. package/dist/llms.d.ts.map +1 -0
  31. package/dist/llms.js +25 -20
  32. package/dist/llms.js.map +1 -0
  33. package/dist/types.cjs +9 -17
  34. package/dist/types.d.cts +1 -0
  35. package/dist/types.d.ts +1 -1
  36. package/dist/types.js +1 -1
  37. package/dist/utils.cjs +9 -17
  38. package/dist/utils.d.cts +1 -0
  39. package/dist/utils.d.ts +1 -1
  40. package/dist/utils.js +1 -1
  41. package/package.json +55 -72
  42. package/index.cjs +0 -1
  43. package/index.d.cts +0 -1
  44. package/index.d.ts +0 -1
  45. package/index.js +0 -1
  46. package/types.cjs +0 -1
  47. package/types.d.cts +0 -1
  48. package/types.d.ts +0 -1
  49. package/types.js +0 -1
  50. package/utils.cjs +0 -1
  51. package/utils.d.cts +0 -1
  52. package/utils.d.ts +0 -1
  53. package/utils.js +0 -1
@@ -1,20 +1,23 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VertexAIEmbeddings = void 0;
4
- const google_webauth_1 = require("@langchain/google-webauth");
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
- * Integration with a Google Vertex AI embeddings model using
7
- * the "@langchain/google-webauth" package for auth.
8
- */
9
- class VertexAIEmbeddings extends google_webauth_1.GoogleEmbeddings {
10
- static lc_name() {
11
- return "VertexAIEmbeddings";
12
- }
13
- constructor(fields) {
14
- super({
15
- ...fields,
16
- platformType: "gcp",
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"}
@@ -1,14 +1,19 @@
1
- import { type GoogleEmbeddingsInput, GoogleEmbeddings } from "@langchain/google-webauth";
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
- export interface GoogleVertexAIEmbeddingsInput extends GoogleEmbeddingsInput {
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
- export declare class VertexAIEmbeddings extends GoogleEmbeddings {
12
- static lc_name(): string;
13
- constructor(fields: GoogleVertexAIEmbeddingsInput);
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"}
@@ -1,16 +1,22 @@
1
- import { GoogleEmbeddings, } from "@langchain/google-webauth";
1
+ import { GoogleEmbeddings } from "@langchain/google-webauth";
2
+
3
+ //#region src/embeddings.ts
2
4
  /**
3
- * Integration with a Google Vertex AI embeddings model using
4
- * the "@langchain/google-webauth" package for auth.
5
- */
6
- export class VertexAIEmbeddings extends GoogleEmbeddings {
7
- static lc_name() {
8
- return "VertexAIEmbeddings";
9
- }
10
- constructor(fields) {
11
- super({
12
- ...fields,
13
- platformType: "gcp",
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
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
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;
@@ -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
- export * from "./chat_models.js";
2
- export * from "./llms.js";
3
- export * from "./embeddings.js";
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
- export * from "./chat_models.js";
2
- export * from "./llms.js";
3
- export * from "./embeddings.js";
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VertexAI = void 0;
4
- const google_webauth_1 = require("@langchain/google-webauth");
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
- * Integration with a Google Vertex AI LLM using
7
- * the "@langchain/google-webauth" package for auth.
8
- */
9
- class VertexAI extends google_webauth_1.GoogleLLM {
10
- static lc_name() {
11
- return "VertexAI";
12
- }
13
- constructor(fields) {
14
- super({
15
- ...fields,
16
- platformType: "gcp",
17
- });
18
- Object.defineProperty(this, "lc_namespace", {
19
- enumerable: true,
20
- configurable: true,
21
- writable: true,
22
- value: ["langchain", "llms", "vertexai"]
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"}
@@ -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 { type GoogleLLMInput, GoogleLLM } from "@langchain/google-webauth";
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
- export interface VertexAIInput extends GoogleLLMInput {
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
- export declare class VertexAI extends GoogleLLM {
12
- lc_namespace: string[];
13
- static lc_name(): string;
14
- constructor(fields?: VertexAIInput);
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
- * Integration with a Google Vertex AI LLM using
4
- * the "@langchain/google-webauth" package for auth.
5
- */
6
- export class VertexAI extends GoogleLLM {
7
- static lc_name() {
8
- return "VertexAI";
9
- }
10
- constructor(fields) {
11
- super({
12
- ...fields,
13
- platformType: "gcp",
14
- });
15
- Object.defineProperty(this, "lc_namespace", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: ["langchain", "llms", "vertexai"]
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
@@ -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
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
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("@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
+ });
@@ -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
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
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("@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
+ });
@@ -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.2.17",
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": ">=18"
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.2.17"
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": "^8.33.0",
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.22.4"
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
- "types": {
74
- "import": "./index.d.ts",
75
- "require": "./index.d.cts",
76
- "default": "./index.d.ts"
45
+ "input": "./src/index.ts",
46
+ "import": {
47
+ "types": "./dist/index.d.ts",
48
+ "default": "./dist/index.js"
77
49
  },
78
- "import": "./index.js",
79
- "require": "./index.cjs"
50
+ "require": {
51
+ "types": "./dist/index.d.cts",
52
+ "default": "./dist/index.cjs"
53
+ }
80
54
  },
81
55
  "./utils": {
82
- "types": {
83
- "import": "./utils.d.ts",
84
- "require": "./utils.d.cts",
85
- "default": "./utils.d.ts"
56
+ "input": "./src/utils.ts",
57
+ "import": {
58
+ "types": "./dist/utils.d.ts",
59
+ "default": "./dist/utils.js"
86
60
  },
87
- "import": "./utils.js",
88
- "require": "./utils.cjs"
61
+ "require": {
62
+ "types": "./dist/utils.d.cts",
63
+ "default": "./dist/utils.cjs"
64
+ }
89
65
  },
90
66
  "./types": {
91
- "types": {
92
- "import": "./types.d.ts",
93
- "require": "./types.d.cts",
94
- "default": "./types.d.ts"
67
+ "input": "./src/types.ts",
68
+ "import": {
69
+ "types": "./dist/types.d.ts",
70
+ "default": "./dist/types.js"
95
71
  },
96
- "import": "./types.js",
97
- "require": "./types.cjs"
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
- "index.cjs",
104
- "index.js",
105
- "index.d.ts",
106
- "index.d.cts",
107
- "utils.cjs",
108
- "utils.js",
109
- "utils.d.ts",
110
- "utils.d.cts",
111
- "types.cjs",
112
- "types.js",
113
- "types.d.ts",
114
- "types.d.cts"
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');