@langchain/google-webauth 2.1.19 → 2.1.20
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 +10 -0
- package/dist/chat_models.cjs +5 -1
- package/dist/chat_models.cjs.map +1 -1
- package/dist/chat_models.d.cts +1 -0
- package/dist/chat_models.d.cts.map +1 -1
- package/dist/chat_models.d.ts +1 -0
- package/dist/chat_models.d.ts.map +1 -1
- package/dist/chat_models.js +5 -1
- package/dist/chat_models.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @langchain/google-webauth
|
|
2
2
|
|
|
3
|
+
## 2.1.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#10080](https://github.com/langchain-ai/langchainjs/pull/10080) [`b583729`](https://github.com/langchain-ai/langchainjs/commit/b583729e99cf0c035630f6b311c4d069a1980cca) Thanks [@hntrl](https://github.com/hntrl)! - Add string-model constructor overloads for chat models (with supporting tests where applicable).
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`fb2226e`](https://github.com/langchain-ai/langchainjs/commit/fb2226e6decdaba21e78b3f01877b45fa1eed6d3)]:
|
|
10
|
+
- @langchain/core@1.1.27
|
|
11
|
+
- @langchain/google-common@2.1.20
|
|
12
|
+
|
|
3
13
|
## 2.1.19
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/chat_models.cjs
CHANGED
|
@@ -9,7 +9,11 @@ var ChatGoogle = class extends _langchain_google_common.ChatGoogleBase {
|
|
|
9
9
|
static lc_name() {
|
|
10
10
|
return "ChatGoogle";
|
|
11
11
|
}
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(modelOrFields, fieldsArg) {
|
|
13
|
+
const fields = typeof modelOrFields === "string" ? {
|
|
14
|
+
...fieldsArg ?? {},
|
|
15
|
+
model: modelOrFields
|
|
16
|
+
} : modelOrFields ?? {};
|
|
13
17
|
super(fields);
|
|
14
18
|
}
|
|
15
19
|
buildAbstractedClient(fields) {
|
package/dist/chat_models.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","WebGoogleAuth"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(fields?: ChatGoogleInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,aAAb,cACUA,wCAEV;CAEE,OAAO,UAAU;AACf,SAAO;;
|
|
1
|
+
{"version":3,"file":"chat_models.cjs","names":["ChatGoogleBase","WebGoogleAuth"],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(model: string, fields?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n fieldsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(fieldsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,aAAb,cACUA,wCAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAKT,YACE,eACA,WACA;EACA,MAAM,SACJ,OAAO,kBAAkB,WACrB;GAAE,GAAI,aAAa,EAAE;GAAG,OAAO;GAAe,GAC7C,iBAAiB,EAAE;AAC1B,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAIC,2BAAc,OAAO"}
|
package/dist/chat_models.d.cts
CHANGED
|
@@ -11,6 +11,7 @@ interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}
|
|
|
11
11
|
*/
|
|
12
12
|
declare class ChatGoogle extends ChatGoogleBase<WebGoogleAuthOptions> implements ChatGoogleInput {
|
|
13
13
|
static lc_name(): string;
|
|
14
|
+
constructor(model: string, fields?: Omit<ChatGoogleInput, "model">);
|
|
14
15
|
constructor(fields?: ChatGoogleInput);
|
|
15
16
|
buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_models.d.cts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;;;AAWA;UAAiB,eAAA,SAAwB,mBAAA,CAAoB,oBAAA;;;AAK7D;cAAa,UAAA,SACH,cAAA,CAAe,oBAAA,aACZ,eAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,WAAA,CAAY,MAAA,GAAS,eAAA;
|
|
1
|
+
{"version":3,"file":"chat_models.d.cts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;;;AAWA;UAAiB,eAAA,SAAwB,mBAAA,CAAoB,oBAAA;;;AAK7D;cAAa,UAAA,SACH,cAAA,CAAe,oBAAA,aACZ,eAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,WAAA,CAAY,KAAA,UAAe,MAAA,GAAS,IAAA,CAAK,eAAA;EACzC,WAAA,CAAY,MAAA,GAAS,eAAA;EAYrB,qBAAA,CACE,MAAA,EAAQ,kBAAA,CAAmB,oBAAA,gBAC1B,sBAAA;AAAA"}
|
package/dist/chat_models.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}
|
|
|
11
11
|
*/
|
|
12
12
|
declare class ChatGoogle extends ChatGoogleBase<WebGoogleAuthOptions> implements ChatGoogleInput {
|
|
13
13
|
static lc_name(): string;
|
|
14
|
+
constructor(model: string, fields?: Omit<ChatGoogleInput, "model">);
|
|
14
15
|
constructor(fields?: ChatGoogleInput);
|
|
15
16
|
buildAbstractedClient(fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined): GoogleAbstractedClient;
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_models.d.ts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;;;AAWA;UAAiB,eAAA,SAAwB,mBAAA,CAAoB,oBAAA;;;AAK7D;cAAa,UAAA,SACH,cAAA,CAAe,oBAAA,aACZ,eAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,WAAA,CAAY,MAAA,GAAS,eAAA;
|
|
1
|
+
{"version":3,"file":"chat_models.d.ts","names":[],"sources":["../src/chat_models.ts"],"mappings":";;;;;;AAWA;UAAiB,eAAA,SAAwB,mBAAA,CAAoB,oBAAA;;;AAK7D;cAAa,UAAA,SACH,cAAA,CAAe,oBAAA,aACZ,eAAA;EAAA,OAGJ,OAAA,CAAA;EAIP,WAAA,CAAY,KAAA,UAAe,MAAA,GAAS,IAAA,CAAK,eAAA;EACzC,WAAA,CAAY,MAAA,GAAS,eAAA;EAYrB,qBAAA,CACE,MAAA,EAAQ,kBAAA,CAAmB,oBAAA,gBAC1B,sBAAA;AAAA"}
|
package/dist/chat_models.js
CHANGED
|
@@ -9,7 +9,11 @@ var ChatGoogle = class extends ChatGoogleBase {
|
|
|
9
9
|
static lc_name() {
|
|
10
10
|
return "ChatGoogle";
|
|
11
11
|
}
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(modelOrFields, fieldsArg) {
|
|
13
|
+
const fields = typeof modelOrFields === "string" ? {
|
|
14
|
+
...fieldsArg ?? {},
|
|
15
|
+
model: modelOrFields
|
|
16
|
+
} : modelOrFields ?? {};
|
|
13
17
|
super(fields);
|
|
14
18
|
}
|
|
15
19
|
buildAbstractedClient(fields) {
|
package/dist/chat_models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_models.js","names":[],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(fields?: ChatGoogleInput) {\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;;
|
|
1
|
+
{"version":3,"file":"chat_models.js","names":[],"sources":["../src/chat_models.ts"],"sourcesContent":["import {\n ChatGoogleBase,\n ChatGoogleBaseInput,\n GoogleAbstractedClient,\n GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { WebGoogleAuth, WebGoogleAuthOptions } from \"./auth.js\";\n\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleInput extends ChatGoogleBaseInput<WebGoogleAuthOptions> {}\n\n/**\n * Integration with a chat model.\n */\nexport class ChatGoogle\n extends ChatGoogleBase<WebGoogleAuthOptions>\n implements ChatGoogleInput\n{\n // Used for tracing, replace with the same name as your class\n static lc_name() {\n return \"ChatGoogle\";\n }\n\n constructor(model: string, fields?: Omit<ChatGoogleInput, \"model\">);\n constructor(fields?: ChatGoogleInput);\n constructor(\n modelOrFields?: string | ChatGoogleInput,\n fieldsArg?: Omit<ChatGoogleInput, \"model\">\n ) {\n const fields =\n typeof modelOrFields === \"string\"\n ? { ...(fieldsArg ?? {}), model: modelOrFields }\n : (modelOrFields ?? {});\n super(fields);\n }\n\n buildAbstractedClient(\n fields: GoogleBaseLLMInput<WebGoogleAuthOptions> | undefined\n ): GoogleAbstractedClient {\n return new WebGoogleAuth(fields);\n }\n}\n"],"mappings":";;;;;;;AAgBA,IAAa,aAAb,cACU,eAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAKT,YACE,eACA,WACA;EACA,MAAM,SACJ,OAAO,kBAAkB,WACrB;GAAE,GAAI,aAAa,EAAE;GAAG,OAAO;GAAe,GAC7C,iBAAiB,EAAE;AAC1B,QAAM,OAAO;;CAGf,sBACE,QACwB;AACxB,SAAO,IAAI,cAAc,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-webauth",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.20",
|
|
4
4
|
"description": "Web-based authentication support for Google services",
|
|
5
5
|
"author": "LangChain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-webauth/",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"web-auth-library": "^1.0.3",
|
|
18
|
-
"@langchain/google-common": "2.1.
|
|
18
|
+
"@langchain/google-common": "2.1.20"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@langchain/core": "^1.1.
|
|
21
|
+
"@langchain/core": "^1.1.27"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@jest/globals": "^30.2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"ts-jest": "^29.4.6",
|
|
35
35
|
"typescript": "~5.8.3",
|
|
36
36
|
"zod": "^3.25.76",
|
|
37
|
-
"@langchain/core": "^1.1.
|
|
37
|
+
"@langchain/core": "^1.1.27",
|
|
38
38
|
"@langchain/eslint": "0.1.1",
|
|
39
39
|
"@langchain/tsconfig": "0.0.1"
|
|
40
40
|
},
|