@langchain/google-webauth 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/embeddings.cjs +27 -0
- package/dist/embeddings.d.ts +16 -0
- package/dist/embeddings.js +23 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
|
@@ -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 LLM.
|
|
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.WebGoogleAuth(fields);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.GoogleEmbeddings = GoogleEmbeddings;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GoogleAbstractedClient, GoogleConnectionParams, BaseGoogleEmbeddings, BaseGoogleEmbeddingsParams } from "@langchain/google-common";
|
|
2
|
+
import { WebGoogleAuthOptions } from "./auth.js";
|
|
3
|
+
/**
|
|
4
|
+
* Input to LLM class.
|
|
5
|
+
*/
|
|
6
|
+
export interface GoogleEmbeddingsInput extends BaseGoogleEmbeddingsParams<WebGoogleAuthOptions> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Integration with an LLM.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GoogleEmbeddings extends BaseGoogleEmbeddings<WebGoogleAuthOptions> implements GoogleEmbeddingsInput {
|
|
12
|
+
static lc_name(): string;
|
|
13
|
+
lc_serializable: boolean;
|
|
14
|
+
constructor(fields: GoogleEmbeddingsInput);
|
|
15
|
+
buildAbstractedClient(fields?: GoogleConnectionParams<WebGoogleAuthOptions>): GoogleAbstractedClient;
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseGoogleEmbeddings, } from "@langchain/google-common";
|
|
2
|
+
import { WebGoogleAuth } from "./auth.js";
|
|
3
|
+
/**
|
|
4
|
+
* Integration with an LLM.
|
|
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 WebGoogleAuth(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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-webauth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Web-based authentication support for Google services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@langchain/core": ">=0.2.21 <0.3.0",
|
|
44
|
-
"@langchain/google-common": "~0.0.
|
|
44
|
+
"@langchain/google-common": "~0.0.25",
|
|
45
45
|
"web-auth-library": "^1.0.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|