Skip to content

Commit 7c91d9a

Browse files
committed
feat: @langchain/google
1 parent 8319201 commit 7c91d9a

File tree

25 files changed

+25055
-13070
lines changed

25 files changed

+25055
-13070
lines changed

libs/providers/langchain-google-common/tsconfig.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"outDir": "../dist",
55
"rootDir": "./src",
66
"target": "ES2021",
7-
"lib": ["ES2021", "ES2022.Object", "DOM"],
7+
"lib": [
8+
"ES2021",
9+
"ES2022.Object",
10+
"DOM",
11+
"ESNext.AsyncIterable"
12+
],
813
"module": "ES2020",
914
"moduleResolution": "bundler",
1015
"esModuleInterop": true,
@@ -18,6 +23,12 @@
1823
"allowJs": true,
1924
"strict": true
2025
},
21-
"include": ["src/**/*"],
22-
"exclude": ["node_modules", "dist", "docs"]
23-
}
26+
"include": [
27+
"src/**/*"
28+
],
29+
"exclude": [
30+
"node_modules",
31+
"dist",
32+
"docs"
33+
]
34+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
index.cjs
2+
index.js
3+
index.d.ts
4+
index.d.cts
5+
node_modules
6+
dist
7+
.yarn
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"printWidth": 80,
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"semi": true,
7+
"singleQuote": false,
8+
"quoteProps": "as-needed",
9+
"jsxSingleQuote": false,
10+
"trailingComma": "es5",
11+
"bracketSpacing": true,
12+
"arrowParens": "always",
13+
"requirePragma": false,
14+
"insertPragma": false,
15+
"proseWrap": "preserve",
16+
"htmlWhitespaceSensitivity": "css",
17+
"vueIndentScriptAndStyle": false,
18+
"endOfLine": "lf"
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) LangChain, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { langchainConfig } from "@langchain/eslint";
2+
3+
export default langchainConfig;
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"name": "@langchain/google",
3+
"version": "1.0.0",
4+
"description": "Google integrations for LangChain.js",
5+
"author": "LangChain",
6+
"license": "MIT",
7+
"type": "module",
8+
"engines": {
9+
"node": ">=20"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "[email protected]:langchain-ai/langchainjs.git",
14+
"directory": "libs/providers/langchain-google"
15+
},
16+
"scripts": {
17+
"build": "pnpm --filter @langchain/build compile @langchain/google",
18+
"lint:eslint": "eslint --cache src/",
19+
"lint:dpdm": "dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/**/*.ts",
20+
"lint": "pnpm lint:eslint && pnpm lint:dpdm",
21+
"lint:fix": "pnpm lint:eslint --fix && pnpm lint:dpdm",
22+
"clean": "rm -rf .turbo dist/",
23+
"test": "vitest run",
24+
"test:watch": "vitest",
25+
"test:int": "vitest run --mode int",
26+
"test:standard:unit": "vitest run --mode standard-unit",
27+
"test:standard:int": "vitest run --mode standard-int",
28+
"test:standard": "pnpm test:standard:unit && pnpm test:standard:int",
29+
"format": "prettier --config .prettierrc --write \"src\"",
30+
"format:check": "prettier --config .prettierrc --check \"src\""
31+
},
32+
"dependencies": {
33+
"eventsource-parser": "^3.0.6",
34+
"google-auth-library": "^10.5.0"
35+
},
36+
"peerDependencies": {
37+
"@langchain/core": "^1.0.0"
38+
},
39+
"devDependencies": {
40+
"@langchain/core": "workspace:*",
41+
"@langchain/eslint": "workspace:*",
42+
"@langchain/standard-tests": "workspace:*",
43+
"@tsconfig/recommended": "^1.0.10",
44+
"dpdm": "^3.14.0",
45+
"eslint": "^9.34.0",
46+
"prettier": "^2.8.3",
47+
"typescript": "~5.8.3",
48+
"vitest": "^3.2.4",
49+
"zod-to-json-schema": "^3.24.6"
50+
},
51+
"publishConfig": {
52+
"access": "public"
53+
},
54+
"exports": {
55+
".": {
56+
"input": "./src/index.ts",
57+
"import": {
58+
"types": "./dist/index.d.ts",
59+
"default": "./dist/index.js"
60+
},
61+
"require": {
62+
"types": "./dist/index.d.cts",
63+
"default": "./dist/index.cjs"
64+
}
65+
},
66+
"./node": {
67+
"input": "./src/node.ts",
68+
"import": {
69+
"types": "./dist/node.d.ts",
70+
"default": "./dist/node.js"
71+
},
72+
"require": {
73+
"types": "./dist/node.d.cts",
74+
"default": "./dist/node.cjs"
75+
}
76+
}
77+
},
78+
"files": [
79+
"dist/",
80+
"CHANGELOG.md",
81+
"README.md",
82+
"LICENSE"
83+
]
84+
}

0 commit comments

Comments
 (0)