Skip to content

Commit 5ccb681

Browse files
committed
feat: add examples, workspace
1 parent 6312a7d commit 5ccb681

58 files changed

Lines changed: 8023 additions & 4631 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ lib/
44
.turbo
55
.eslintcache
66
.env
7+
yarn-error.log
8+
9+
.yarn/*
10+
!.yarn/patches
11+
!.yarn/plugins
12+
!.yarn/releases
13+
!.yarn/sdks
14+
!.yarn/versions

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
yarn precommit
4+
npx turbo run precommit

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

Lines changed: 9 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.4.1.cjs

Lines changed: 873 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
nodeLinker: node-modules
2+
3+
plugins:
4+
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
5+
spec: "@yarnpkg/plugin-typescript"
6+
7+
yarnPath: .yarn/releases/yarn-3.4.1.cjs

babel.config.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
OPENAI_API_KEY=ADD_YOUR_API_KEY_HERE
2+
SERPAPI_API_KEY=ADD_YOUR_API_KEY_HERE
File renamed without changes.

examples/.yarn/install-state.gz

176 KB
Binary file not shown.

examples/package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "langchain-examples",
3+
"version": "0.0.0",
4+
"private": true,
5+
"description": "Langchain examples",
6+
"main": "./dist/index.js",
7+
"files": [
8+
"dist/"
9+
],
10+
"scripts": {
11+
"build": "tsc --declaration --outDir dist/",
12+
"start": "yarn build && node -r dotenv/config dist/index.js",
13+
"lint": "eslint src",
14+
"lint:fix": "yarn lint --fix"
15+
},
16+
"author": "Langchain",
17+
"license": "MIT",
18+
"dependencies": {
19+
"langchain": "workspace:*",
20+
"openai": "^3.1.0",
21+
"serpapi": "^1.1.0"
22+
},
23+
"devDependencies": {
24+
"@tsconfig/recommended": "^1.0.2",
25+
"@typescript-eslint/eslint-plugin": "^5.51.0",
26+
"@typescript-eslint/parser": "^5.51.0",
27+
"dotenv": "^16.0.3",
28+
"eslint": "^8.33.0",
29+
"eslint-config-airbnb-base": "^15.0.0",
30+
"eslint-config-prettier": "^8.6.0",
31+
"eslint-plugin-import": "^2.27.5",
32+
"eslint-plugin-prettier": "^4.2.1",
33+
"prettier": "^2.8.3",
34+
"typescript": "^4.9.5"
35+
}
36+
}

0 commit comments

Comments
 (0)