@langchain/google-gauth 0.2.18 → 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 +18 -0
- package/LICENSE +6 -6
- package/README.md +1 -1
- package/dist/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/auth.cjs +31 -87
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.js +30 -79
- package/dist/auth.js.map +1 -0
- package/dist/chat_models.cjs +21 -19
- package/dist/chat_models.cjs.map +1 -0
- package/dist/chat_models.d.cts +21 -0
- package/dist/chat_models.d.cts.map +1 -0
- package/dist/chat_models.d.ts +12 -6
- package/dist/chat_models.d.ts.map +1 -0
- package/dist/chat_models.js +20 -15
- package/dist/chat_models.js.map +1 -0
- package/dist/embeddings.cjs +22 -25
- package/dist/embeddings.cjs.map +1 -0
- package/dist/embeddings.d.cts +22 -0
- package/dist/embeddings.d.cts.map +1 -0
- package/dist/embeddings.d.ts +14 -8
- package/dist/embeddings.d.ts.map +1 -0
- package/dist/embeddings.js +21 -21
- package/dist/embeddings.js.map +1 -0
- package/dist/index.cjs +10 -20
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +6 -4
- package/dist/llms.cjs +22 -25
- package/dist/llms.cjs.map +1 -0
- package/dist/llms.d.cts +22 -0
- package/dist/llms.d.cts.map +1 -0
- package/dist/llms.d.ts +13 -7
- package/dist/llms.d.ts.map +1 -0
- package/dist/llms.js +21 -21
- package/dist/llms.js.map +1 -0
- package/dist/media.cjs +19 -16
- package/dist/media.cjs.map +1 -0
- package/dist/media.d.cts +16 -0
- package/dist/media.d.cts.map +1 -0
- package/dist/media.d.ts +12 -9
- package/dist/media.d.ts.map +1 -0
- package/dist/media.js +17 -11
- package/dist/media.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 +56 -73
- package/dist/auth.d.ts +0 -27
- 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.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { BaseGoogleEmbeddings, } from "@langchain/google-common";
|
|
2
1
|
import { GAuthClient } from "./auth.js";
|
|
2
|
+
import { BaseGoogleEmbeddings } from "@langchain/google-common";
|
|
3
|
+
|
|
4
|
+
//#region src/embeddings.ts
|
|
3
5
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
6
|
+
* Integration with an Google embeddings model.
|
|
7
|
+
*/
|
|
8
|
+
var GoogleEmbeddings = class extends BaseGoogleEmbeddings {
|
|
9
|
+
static lc_name() {
|
|
10
|
+
return "GoogleEmbeddings";
|
|
11
|
+
}
|
|
12
|
+
lc_serializable = true;
|
|
13
|
+
constructor(fields) {
|
|
14
|
+
super(fields);
|
|
15
|
+
}
|
|
16
|
+
buildAbstractedClient(fields) {
|
|
17
|
+
return new GAuthClient(fields);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { GoogleEmbeddings };
|
|
23
|
+
//# sourceMappingURL=embeddings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.js","names":["fields: GoogleEmbeddingsInput","fields?: GoogleConnectionParams<GoogleAuthOptions>"],"sources":["../src/embeddings.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleConnectionParams,\n BaseGoogleEmbeddings,\n BaseGoogleEmbeddingsParams,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleEmbeddingsInput\n extends BaseGoogleEmbeddingsParams<GoogleAuthOptions> {}\n\n/**\n * Integration with an Google embeddings model.\n */\nexport class GoogleEmbeddings\n extends BaseGoogleEmbeddings<GoogleAuthOptions>\n implements GoogleEmbeddingsInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleEmbeddings\";\n }\n\n lc_serializable = true;\n\n constructor(fields: GoogleEmbeddingsInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields?: GoogleConnectionParams<GoogleAuthOptions>\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAkBA,IAAa,mBAAb,cACU,qBAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYA,QAA+B;EACzC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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);
|
|
20
|
-
__exportStar(require("./media.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
|
+
const require_media = require('./media.cjs');
|
|
5
|
+
|
|
6
|
+
exports.BlobStoreAIStudioFile = require_media.BlobStoreAIStudioFile;
|
|
7
|
+
exports.BlobStoreGoogleCloudStorage = require_media.BlobStoreGoogleCloudStorage;
|
|
8
|
+
exports.ChatGoogle = require_chat_models.ChatGoogle;
|
|
9
|
+
exports.GoogleEmbeddings = require_embeddings.GoogleEmbeddings;
|
|
10
|
+
exports.GoogleLLM = require_llms.GoogleLLM;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChatGoogle, ChatGoogleInput } from "./chat_models.cjs";
|
|
2
|
+
import { GoogleLLM, GoogleLLMInput } from "./llms.cjs";
|
|
3
|
+
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "./embeddings.cjs";
|
|
4
|
+
import { BlobStoreAIStudioFile, BlobStoreAIStudioFileParams, BlobStoreGoogleCloudStorage, BlobStoreGoogleCloudStorageParams } from "./media.cjs";
|
|
5
|
+
export { BlobStoreAIStudioFile, BlobStoreAIStudioFileParams, BlobStoreGoogleCloudStorage, BlobStoreGoogleCloudStorageParams, ChatGoogle, ChatGoogleInput, GoogleEmbeddings, GoogleEmbeddingsInput, GoogleLLM, GoogleLLMInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ChatGoogle, ChatGoogleInput } from "./chat_models.js";
|
|
2
|
+
import { GoogleLLM, GoogleLLMInput } from "./llms.js";
|
|
3
|
+
import { GoogleEmbeddings, GoogleEmbeddingsInput } from "./embeddings.js";
|
|
4
|
+
import { BlobStoreAIStudioFile, BlobStoreAIStudioFileParams, BlobStoreGoogleCloudStorage, BlobStoreGoogleCloudStorageParams } from "./media.js";
|
|
5
|
+
export { BlobStoreAIStudioFile, BlobStoreAIStudioFileParams, BlobStoreGoogleCloudStorage, BlobStoreGoogleCloudStorageParams, ChatGoogle, ChatGoogleInput, GoogleEmbeddings, GoogleEmbeddingsInput, GoogleLLM, GoogleLLMInput };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ChatGoogle } from "./chat_models.js";
|
|
2
|
+
import { GoogleLLM } from "./llms.js";
|
|
3
|
+
import { GoogleEmbeddings } from "./embeddings.js";
|
|
4
|
+
import { BlobStoreAIStudioFile, BlobStoreGoogleCloudStorage } from "./media.js";
|
|
5
|
+
|
|
6
|
+
export { BlobStoreAIStudioFile, BlobStoreGoogleCloudStorage, ChatGoogle, GoogleEmbeddings, GoogleLLM };
|
package/dist/llms.cjs
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_auth = require('./auth.cjs');
|
|
3
|
+
const __langchain_google_common = require_rolldown_runtime.__toESM(require("@langchain/google-common"));
|
|
4
|
+
|
|
5
|
+
//#region src/llms.ts
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
buildAbstractedClient(fields) {
|
|
24
|
-
return new auth_js_1.GAuthClient(fields);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
7
|
+
* Integration with a Google LLM.
|
|
8
|
+
*/
|
|
9
|
+
var GoogleLLM = class extends __langchain_google_common.GoogleBaseLLM {
|
|
10
|
+
static lc_name() {
|
|
11
|
+
return "GoogleLLM";
|
|
12
|
+
}
|
|
13
|
+
lc_serializable = true;
|
|
14
|
+
constructor(fields) {
|
|
15
|
+
super(fields);
|
|
16
|
+
}
|
|
17
|
+
buildAbstractedClient(fields) {
|
|
18
|
+
return new require_auth.GAuthClient(fields);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
27
23
|
exports.GoogleLLM = GoogleLLM;
|
|
24
|
+
//# sourceMappingURL=llms.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.cjs","names":["GoogleBaseLLM","fields?: GoogleLLMInput","fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined","GAuthClient"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<GoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;;AAgBA,IAAa,YAAb,cACUA,wCAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYC,QAAyB;EACnC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAIC,yBAAY;CACxB;AACF"}
|
package/dist/llms.d.cts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from "@langchain/google-common";
|
|
2
|
+
import { GoogleAuthOptions } from "google-auth-library";
|
|
3
|
+
|
|
4
|
+
//#region src/llms.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Input to LLM class.
|
|
8
|
+
*/
|
|
9
|
+
interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}
|
|
10
|
+
/**
|
|
11
|
+
* Integration with a Google LLM.
|
|
12
|
+
*/
|
|
13
|
+
declare class GoogleLLM extends GoogleBaseLLM<GoogleAuthOptions> implements GoogleLLMInput {
|
|
14
|
+
// Used for tracing, replace with the same name as your class
|
|
15
|
+
static lc_name(): string;
|
|
16
|
+
lc_serializable: boolean;
|
|
17
|
+
constructor(fields?: GoogleLLMInput);
|
|
18
|
+
buildAbstractedClient(fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { GoogleLLM, GoogleLLMInput };
|
|
22
|
+
//# sourceMappingURL=llms.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.d.cts","names":["GoogleAbstractedClient","GoogleBaseLLM","GoogleBaseLLMInput","GoogleAuthOptions","GoogleLLMInput","GoogleLLM"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {\n}\n/**\n * Integration with a Google LLM.\n */\nexport declare class GoogleLLM extends GoogleBaseLLM<GoogleAuthOptions> implements GoogleLLMInput {\n // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields?: GoogleLLMInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,iBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,iBAAvB,CAAA,YAAqDC,cAArD,CAAA;EAAA;EAAwC,OAI7CA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAiB,WAApCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAkCF,CAAAA,MAAAA,EAApDE,kBAAoDF,CAAjCG,iBAAiCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
|
package/dist/llms.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from "@langchain/google-common";
|
|
2
2
|
import { GoogleAuthOptions } from "google-auth-library";
|
|
3
|
+
|
|
4
|
+
//#region src/llms.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Input to LLM class.
|
|
5
8
|
*/
|
|
6
|
-
|
|
7
|
-
}
|
|
9
|
+
interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}
|
|
8
10
|
/**
|
|
9
11
|
* Integration with a Google LLM.
|
|
10
12
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
declare class GoogleLLM extends GoogleBaseLLM<GoogleAuthOptions> implements GoogleLLMInput {
|
|
14
|
+
// Used for tracing, replace with the same name as your class
|
|
15
|
+
static lc_name(): string;
|
|
16
|
+
lc_serializable: boolean;
|
|
17
|
+
constructor(fields?: GoogleLLMInput);
|
|
18
|
+
buildAbstractedClient(fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
16
19
|
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { GoogleLLM, GoogleLLMInput };
|
|
22
|
+
//# sourceMappingURL=llms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.d.ts","names":["GoogleAbstractedClient","GoogleBaseLLM","GoogleBaseLLMInput","GoogleAuthOptions","GoogleLLMInput","GoogleLLM"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { GoogleAbstractedClient, GoogleBaseLLM, GoogleBaseLLMInput } from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {\n}\n/**\n * Integration with a Google LLM.\n */\nexport declare class GoogleLLM extends GoogleBaseLLM<GoogleAuthOptions> implements GoogleLLMInput {\n // Used for tracing, replace with the same name as your class\n static lc_name(): string;\n lc_serializable: boolean;\n constructor(fields?: GoogleLLMInput);\n buildAbstractedClient(fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;;;AAKA;AAA+B,UAAdI,cAAAA,SAAuBF,kBAAT,CAA4BC,iBAA5B,CAAA,CAAA;;AAA2B;AAK1D;AAA8B,cAATE,SAAAA,SAAkBJ,aAAT,CAAuBE,iBAAvB,CAAA,YAAqDC,cAArD,CAAA;EAAA;EAAwC,OAI7CA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAc,eACcD,EAAAA,OAAAA;EAAiB,WAApCD,CAAAA,MAAAA,CAAAA,EADTE,cACSF;EAAkB,qBAAkCF,CAAAA,MAAAA,EAApDE,kBAAoDF,CAAjCG,iBAAiCH,CAAAA,GAAAA,SAAAA,CAAAA,EAAAA,sBAAAA"}
|
package/dist/llms.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { GoogleBaseLLM, } from "@langchain/google-common";
|
|
2
1
|
import { GAuthClient } from "./auth.js";
|
|
2
|
+
import { GoogleBaseLLM } from "@langchain/google-common";
|
|
3
|
+
|
|
4
|
+
//#region src/llms.ts
|
|
3
5
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}
|
|
6
|
+
* Integration with a Google LLM.
|
|
7
|
+
*/
|
|
8
|
+
var GoogleLLM = class extends GoogleBaseLLM {
|
|
9
|
+
static lc_name() {
|
|
10
|
+
return "GoogleLLM";
|
|
11
|
+
}
|
|
12
|
+
lc_serializable = true;
|
|
13
|
+
constructor(fields) {
|
|
14
|
+
super(fields);
|
|
15
|
+
}
|
|
16
|
+
buildAbstractedClient(fields) {
|
|
17
|
+
return new GAuthClient(fields);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { GoogleLLM };
|
|
23
|
+
//# sourceMappingURL=llms.js.map
|
package/dist/llms.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.js","names":["fields?: GoogleLLMInput","fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n GoogleAbstractedClient,\n GoogleBaseLLM,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google LLM.\n */\nexport class GoogleLLM\n extends GoogleBaseLLM<GoogleAuthOptions>\n implements GoogleLLMInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"GoogleLLM\";\n }\n\n lc_serializable = true;\n\n constructor(fields?: GoogleLLMInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,YAAb,cACU,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;CACR;CAED,kBAAkB;CAElB,YAAYA,QAAyB;EACnC,MAAM,OAAO;CACd;CAED,sBACEC,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF"}
|
package/dist/media.cjs
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_auth = require('./auth.cjs');
|
|
3
|
+
const __langchain_google_common_experimental_media = require_rolldown_runtime.__toESM(require("@langchain/google-common/experimental/media"));
|
|
4
|
+
|
|
5
|
+
//#region src/media.ts
|
|
6
|
+
var BlobStoreGoogleCloudStorage = class extends __langchain_google_common_experimental_media.BlobStoreGoogleCloudStorageBase {
|
|
7
|
+
buildClient(fields) {
|
|
8
|
+
return new require_auth.GAuthClient(fields);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var BlobStoreAIStudioFile = class extends __langchain_google_common_experimental_media.BlobStoreAIStudioFileBase {
|
|
12
|
+
buildAbstractedClient(fields) {
|
|
13
|
+
return new require_auth.GAuthClient(fields);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
17
18
|
exports.BlobStoreAIStudioFile = BlobStoreAIStudioFile;
|
|
19
|
+
exports.BlobStoreGoogleCloudStorage = BlobStoreGoogleCloudStorage;
|
|
20
|
+
//# sourceMappingURL=media.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.cjs","names":["BlobStoreGoogleCloudStorageBase","fields?: BlobStoreGoogleCloudStorageParams","GAuthClient","BlobStoreAIStudioFileBase","fields?: BlobStoreAIStudioFileParams"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams\n extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams\n extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;;AAaA,IAAa,8BAAb,cAAiDA,6EAAmD;CAClG,YACEC,QACwB;AACxB,SAAO,IAAIC,yBAAY;CACxB;AACF;AAKD,IAAa,wBAAb,cAA2CC,uEAA6C;CACtF,sBACEC,QACwB;AACxB,SAAO,IAAIF,yBAAY;CACxB;AACF"}
|
package/dist/media.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GoogleAbstractedClient } from "@langchain/google-common";
|
|
2
|
+
import { GoogleAuthOptions } from "google-auth-library";
|
|
3
|
+
import { BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams, BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams } from "@langchain/google-common/experimental/media";
|
|
4
|
+
|
|
5
|
+
//#region src/media.d.ts
|
|
6
|
+
interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}
|
|
7
|
+
declare class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {
|
|
8
|
+
buildClient(fields?: BlobStoreGoogleCloudStorageParams): GoogleAbstractedClient;
|
|
9
|
+
}
|
|
10
|
+
interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}
|
|
11
|
+
declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {
|
|
12
|
+
buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BlobStoreAIStudioFile, BlobStoreAIStudioFileParams, BlobStoreGoogleCloudStorage, BlobStoreGoogleCloudStorageParams };
|
|
16
|
+
//# sourceMappingURL=media.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.cts","names":["GoogleAbstractedClient","BlobStoreGoogleCloudStorageBase","BlobStoreGoogleCloudStorageBaseParams","BlobStoreAIStudioFileBase","BlobStoreAIStudioFileBaseParams","GoogleAuthOptions","BlobStoreGoogleCloudStorageParams","BlobStoreGoogleCloudStorage","BlobStoreAIStudioFileParams","BlobStoreAIStudioFile"],"sources":["../src/media.d.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport { BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams, BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams } from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(fields?: BlobStoreGoogleCloudStorageParams): GoogleAbstractedClient;\n}\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;UAGiBM,iCAAAA,SAA0CJ,sCAAsCG;AAAhFC,cAEIC,2BAAAA,SAAoCN,+BAFP,CAEuCI,iBAFvC,CAAA,CAAA;EAAA,WAAA,CAAA,MAAA,CAAA,EAGzBC,iCAHyB,CAAA,EAGWN,sBAHX;;AAASE,UAK1CM,2BAAAA,SAAoCJ,+BALMF,CAK0BG,iBAL1BH,CAAAA,CAAAA,CAAqC;AAE3EK,cAKAE,qBAAAA,SAA8BN,yBALH,CAK6BE,iBAL7B,CAAA,CAAA;EAAA,qBAAA,CAAA,MAAA,CAAA,EAMbG,2BANa,CAAA,EAMiBR,sBANjB"}
|
package/dist/media.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { GoogleAbstractedClient } from "@langchain/google-common";
|
|
2
|
-
import { BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams, BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams } from "@langchain/google-common/experimental/media";
|
|
3
2
|
import { GoogleAuthOptions } from "google-auth-library";
|
|
4
|
-
|
|
3
|
+
import { BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams, BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams } from "@langchain/google-common/experimental/media";
|
|
4
|
+
|
|
5
|
+
//#region src/media.d.ts
|
|
6
|
+
interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}
|
|
7
|
+
declare class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {
|
|
8
|
+
buildClient(fields?: BlobStoreGoogleCloudStorageParams): GoogleAbstractedClient;
|
|
5
9
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {
|
|
10
|
-
}
|
|
11
|
-
export declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {
|
|
12
|
-
buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;
|
|
10
|
+
interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}
|
|
11
|
+
declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {
|
|
12
|
+
buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;
|
|
13
13
|
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BlobStoreAIStudioFile, BlobStoreAIStudioFileParams, BlobStoreGoogleCloudStorage, BlobStoreGoogleCloudStorageParams };
|
|
16
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","names":["GoogleAbstractedClient","BlobStoreGoogleCloudStorageBase","BlobStoreGoogleCloudStorageBaseParams","BlobStoreAIStudioFileBase","BlobStoreAIStudioFileBaseParams","GoogleAuthOptions","BlobStoreGoogleCloudStorageParams","BlobStoreGoogleCloudStorage","BlobStoreAIStudioFileParams","BlobStoreAIStudioFile"],"sources":["../src/media.d.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport { BlobStoreGoogleCloudStorageBase, BlobStoreGoogleCloudStorageBaseParams, BlobStoreAIStudioFileBase, BlobStoreAIStudioFileBaseParams } from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nexport interface BlobStoreGoogleCloudStorageParams extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(fields?: BlobStoreGoogleCloudStorageParams): GoogleAbstractedClient;\n}\nexport interface BlobStoreAIStudioFileParams extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {\n}\nexport declare class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(fields?: BlobStoreAIStudioFileParams): GoogleAbstractedClient;\n}\n"],"mappings":";;;;;UAGiBM,iCAAAA,SAA0CJ,sCAAsCG;AAAhFC,cAEIC,2BAAAA,SAAoCN,+BAFP,CAEuCI,iBAFvC,CAAA,CAAA;EAAA,WAAA,CAAA,MAAA,CAAA,EAGzBC,iCAHyB,CAAA,EAGWN,sBAHX;;AAASE,UAK1CM,2BAAAA,SAAoCJ,+BALMF,CAK0BG,iBAL1BH,CAAAA,CAAAA,CAAqC;AAE3EK,cAKAE,qBAAAA,SAA8BN,yBALH,CAK6BE,iBAL7B,CAAA,CAAA;EAAA,qBAAA,CAAA,MAAA,CAAA,EAMbG,2BANa,CAAA,EAMiBR,sBANjB"}
|
package/dist/media.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { BlobStoreGoogleCloudStorageBase, BlobStoreAIStudioFileBase, } from "@langchain/google-common/experimental/media";
|
|
2
1
|
import { GAuthClient } from "./auth.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { BlobStoreAIStudioFileBase, BlobStoreGoogleCloudStorageBase } from "@langchain/google-common/experimental/media";
|
|
3
|
+
|
|
4
|
+
//#region src/media.ts
|
|
5
|
+
var BlobStoreGoogleCloudStorage = class extends BlobStoreGoogleCloudStorageBase {
|
|
6
|
+
buildClient(fields) {
|
|
7
|
+
return new GAuthClient(fields);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var BlobStoreAIStudioFile = class extends BlobStoreAIStudioFileBase {
|
|
11
|
+
buildAbstractedClient(fields) {
|
|
12
|
+
return new GAuthClient(fields);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { BlobStoreAIStudioFile, BlobStoreGoogleCloudStorage };
|
|
18
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.js","names":["fields?: BlobStoreGoogleCloudStorageParams","fields?: BlobStoreAIStudioFileParams"],"sources":["../src/media.ts"],"sourcesContent":["import { GoogleAbstractedClient } from \"@langchain/google-common\";\nimport {\n BlobStoreGoogleCloudStorageBase,\n BlobStoreGoogleCloudStorageBaseParams,\n BlobStoreAIStudioFileBase,\n BlobStoreAIStudioFileBaseParams,\n} from \"@langchain/google-common/experimental/media\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\nexport interface BlobStoreGoogleCloudStorageParams\n extends BlobStoreGoogleCloudStorageBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreGoogleCloudStorage extends BlobStoreGoogleCloudStorageBase<GoogleAuthOptions> {\n buildClient(\n fields?: BlobStoreGoogleCloudStorageParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n\nexport interface BlobStoreAIStudioFileParams\n extends BlobStoreAIStudioFileBaseParams<GoogleAuthOptions> {}\n\nexport class BlobStoreAIStudioFile extends BlobStoreAIStudioFileBase<GoogleAuthOptions> {\n buildAbstractedClient(\n fields?: BlobStoreAIStudioFileParams\n ): GoogleAbstractedClient {\n return new GAuthClient(fields);\n }\n}\n"],"mappings":";;;;AAaA,IAAa,8BAAb,cAAiD,gCAAmD;CAClG,YACEA,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;AACF;AAKD,IAAa,wBAAb,cAA2C,0BAA6C;CACtF,sBACEC,QACwB;AACxB,SAAO,IAAI,YAAY;CACxB;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-common/types"), exports);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __langchain_google_common_types = require("@langchain/google-common/types");
|
|
4
|
+
Object.keys(__langchain_google_common_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_common_types[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@langchain/google-common/types";
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/types";
|
|
1
|
+
export * from "@langchain/google-common/types";
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/types"
|
|
1
|
+
export * from "@langchain/google-common/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-common/utils"), exports);
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __langchain_google_common_utils = require("@langchain/google-common/utils");
|
|
4
|
+
Object.keys(__langchain_google_common_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_common_utils[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/utils.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@langchain/google-common/utils";
|
package/dist/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/utils";
|
|
1
|
+
export * from "@langchain/google-common/utils";
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@langchain/google-common/utils"
|
|
1
|
+
export * from "@langchain/google-common/utils"
|