@langchain/google-gauth 0.0.22 → 0.0.25

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/auth.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  import { Readable } from "stream";
3
- import { GoogleAbstractedClient, GoogleAbstractedClientOps, GoogleBaseLLMInput, JsonStream } from "@langchain/google-common";
3
+ import { GoogleAbstractedClient, GoogleAbstractedClientOps, GoogleConnectionParams, JsonStream } from "@langchain/google-common";
4
4
  import { GoogleAuth, GoogleAuthOptions } from "google-auth-library";
5
5
  export declare class NodeJsonStream extends JsonStream {
6
6
  constructor(data: Readable);
7
7
  }
8
8
  export declare class GAuthClient implements GoogleAbstractedClient {
9
9
  gauth: GoogleAuth;
10
- constructor(fields?: GoogleBaseLLMInput<GoogleAuthOptions>);
10
+ constructor(fields?: GoogleConnectionParams<GoogleAuthOptions>);
11
11
  get clientType(): string;
12
12
  getProjectId(): Promise<string>;
13
13
  request(opts: GoogleAbstractedClientOps): Promise<unknown>;
@@ -4,7 +4,7 @@ exports.ChatGoogle = void 0;
4
4
  const google_common_1 = require("@langchain/google-common");
5
5
  const auth_js_1 = require("./auth.cjs");
6
6
  /**
7
- * Integration with a chat model.
7
+ * Integration with a Google chat model.
8
8
  */
9
9
  class ChatGoogle extends google_common_1.ChatGoogleBase {
10
10
  // Used for tracing, replace with the same name as your class
@@ -6,7 +6,7 @@ import { GoogleAuthOptions } from "google-auth-library";
6
6
  export interface ChatGoogleInput extends ChatGoogleBaseInput<GoogleAuthOptions> {
7
7
  }
8
8
  /**
9
- * Integration with a chat model.
9
+ * Integration with a Google chat model.
10
10
  */
11
11
  export declare class ChatGoogle extends ChatGoogleBase<GoogleAuthOptions> implements ChatGoogleInput {
12
12
  static lc_name(): string;
@@ -1,7 +1,7 @@
1
1
  import { ChatGoogleBase, } from "@langchain/google-common";
2
2
  import { GAuthClient } from "./auth.js";
3
3
  /**
4
- * Integration with a chat model.
4
+ * Integration with a Google chat model.
5
5
  */
6
6
  export class ChatGoogle extends ChatGoogleBase {
7
7
  // Used for tracing, replace with the same name as your class
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GoogleEmbeddings = void 0;
4
+ const google_common_1 = require("@langchain/google-common");
5
+ const auth_js_1 = require("./auth.cjs");
6
+ /**
7
+ * Integration with an Google embeddings model.
8
+ */
9
+ class GoogleEmbeddings extends google_common_1.BaseGoogleEmbeddings {
10
+ // Used for tracing, replace with the same name as your class
11
+ static lc_name() {
12
+ return "GoogleEmbeddings";
13
+ }
14
+ constructor(fields) {
15
+ super(fields);
16
+ Object.defineProperty(this, "lc_serializable", {
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true,
20
+ value: true
21
+ });
22
+ }
23
+ buildAbstractedClient(fields) {
24
+ return new auth_js_1.GAuthClient(fields);
25
+ }
26
+ }
27
+ exports.GoogleEmbeddings = GoogleEmbeddings;
@@ -0,0 +1,16 @@
1
+ import { GoogleAbstractedClient, GoogleConnectionParams, BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams } from "@langchain/google-common";
2
+ import { GoogleAuthOptions } from "google-auth-library";
3
+ /**
4
+ * Input to LLM class.
5
+ */
6
+ export interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {
7
+ }
8
+ /**
9
+ * Integration with an Google embeddings model.
10
+ */
11
+ export declare class GoogleEmbeddings extends BaseGoogleEmbeddings<GoogleAuthOptions> implements GoogleEmbeddingsInput {
12
+ static lc_name(): string;
13
+ lc_serializable: boolean;
14
+ constructor(fields: GoogleEmbeddingsInput);
15
+ buildAbstractedClient(fields?: GoogleConnectionParams<GoogleAuthOptions>): GoogleAbstractedClient;
16
+ }
@@ -0,0 +1,23 @@
1
+ import { BaseGoogleEmbeddings, } from "@langchain/google-common";
2
+ import { GAuthClient } from "./auth.js";
3
+ /**
4
+ * Integration with an Google embeddings model.
5
+ */
6
+ export class GoogleEmbeddings extends BaseGoogleEmbeddings {
7
+ // Used for tracing, replace with the same name as your class
8
+ static lc_name() {
9
+ return "GoogleEmbeddings";
10
+ }
11
+ constructor(fields) {
12
+ super(fields);
13
+ Object.defineProperty(this, "lc_serializable", {
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true,
17
+ value: true
18
+ });
19
+ }
20
+ buildAbstractedClient(fields) {
21
+ return new GAuthClient(fields);
22
+ }
23
+ }
package/dist/index.cjs CHANGED
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./chat_models.cjs"), exports);
18
18
  __exportStar(require("./llms.cjs"), exports);
19
+ __exportStar(require("./embeddings.cjs"), exports);
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./chat_models.js";
2
2
  export * from "./llms.js";
3
+ export * from "./embeddings.js";
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./chat_models.js";
2
2
  export * from "./llms.js";
3
+ export * from "./embeddings.js";
package/dist/llms.cjs CHANGED
@@ -4,7 +4,7 @@ exports.GoogleLLM = void 0;
4
4
  const google_common_1 = require("@langchain/google-common");
5
5
  const auth_js_1 = require("./auth.cjs");
6
6
  /**
7
- * Integration with an LLM.
7
+ * Integration with a Google LLM.
8
8
  */
9
9
  class GoogleLLM extends google_common_1.GoogleBaseLLM {
10
10
  // Used for tracing, replace with the same name as your class
package/dist/llms.d.ts CHANGED
@@ -6,7 +6,7 @@ import { GoogleAuthOptions } from "google-auth-library";
6
6
  export interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {
7
7
  }
8
8
  /**
9
- * Integration with an LLM.
9
+ * Integration with a Google LLM.
10
10
  */
11
11
  export declare class GoogleLLM extends GoogleBaseLLM<GoogleAuthOptions> implements GoogleLLMInput {
12
12
  static lc_name(): string;
package/dist/llms.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { GoogleBaseLLM, } from "@langchain/google-common";
2
2
  import { GAuthClient } from "./auth.js";
3
3
  /**
4
- * Integration with an LLM.
4
+ * Integration with a Google LLM.
5
5
  */
6
6
  export class GoogleLLM extends GoogleBaseLLM {
7
7
  // Used for tracing, replace with the same name as your class
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-gauth",
3
- "version": "0.0.22",
3
+ "version": "0.0.25",
4
4
  "description": "Google auth based authentication support for Google services",
5
5
  "type": "module",
6
6
  "engines": {
@@ -36,7 +36,7 @@
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
38
  "@langchain/core": ">=0.2.21 <0.3.0",
39
- "@langchain/google-common": "~0.0.23",
39
+ "@langchain/google-common": "~0.0.25",
40
40
  "google-auth-library": "^8.9.0"
41
41
  },
42
42
  "devDependencies": {