Skip to content

Commit f67f0c8

Browse files
authored
fix(core): Improve interoperability between different langsmith versions (#7297)
1 parent 983acd2 commit f67f0c8

25 files changed

+95
-54
lines changed

Diff for: dependency_range_tests/docker-compose.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3"
22
services:
33
# LangChain
44
langchain-latest-deps:
5-
image: node:18
5+
image: node:20
66
environment:
77
PUPPETEER_SKIP_DOWNLOAD: "true"
88
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
@@ -13,7 +13,7 @@ services:
1313
- ./scripts:/scripts
1414
command: bash /scripts/langchain/test-with-latest-deps.sh
1515
langchain-lowest-deps:
16-
image: node:18
16+
image: node:20
1717
environment:
1818
PUPPETEER_SKIP_DOWNLOAD: "true"
1919
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
@@ -23,166 +23,166 @@ services:
2323
- ../langchain:/langchain
2424
- ./scripts:/scripts
2525
command: bash /scripts/langchain/test-with-lowest-deps.sh
26-
26+
2727
# Community
2828
community-latest-deps:
29-
image: node:18
29+
image: node:20
3030
environment:
3131
PUPPETEER_SKIP_DOWNLOAD: "true"
3232
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
3333
COHERE_API_KEY: ${COHERE_API_KEY}
3434
working_dir: /app
3535
volumes:
3636
- ../turbo.json:/turbo.json
37-
- ../package.json:/package.json
37+
- ./scripts/with_standard_tests/community/node/package.json:/package.json
3838
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
3939
- ../libs/langchain-community:/libs/langchain-community
4040
- ./scripts:/scripts
4141
command: bash /scripts/with_standard_tests/community/test-with-latest-deps.sh
4242
community-lowest-deps:
43-
image: node:18
43+
image: node:20
4444
environment:
4545
PUPPETEER_SKIP_DOWNLOAD: "true"
4646
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
4747
COHERE_API_KEY: ${COHERE_API_KEY}
4848
working_dir: /app
4949
volumes:
5050
- ../turbo.json:/turbo.json
51-
- ../package.json:/package.json
51+
- ./scripts/with_standard_tests/community/node/package.json:/package.json
5252
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
5353
- ../libs/langchain-community:/libs/langchain-community
5454
- ./scripts:/scripts
5555
command: bash /scripts/with_standard_tests/community/test-with-lowest-deps.sh
5656
community-npm-install:
57-
image: node:18
57+
image: node:20
5858
environment:
5959
PUPPETEER_SKIP_DOWNLOAD: "true"
6060
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
6161
working_dir: /app
6262
volumes:
6363
- ../turbo.json:/turbo.json
64-
- ../package.json:/package.json
64+
- ./scripts/with_standard_tests/community/node/package.json:/package.json
6565
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
6666
- ../libs/langchain-community:/libs/langchain-community
6767
- ./scripts:/scripts
6868
command: bash /scripts/with_standard_tests/community/npm-install.sh
6969

7070
# OpenAI
7171
openai-latest-deps:
72-
image: node:18
72+
image: node:20
7373
environment:
7474
PUPPETEER_SKIP_DOWNLOAD: "true"
7575
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
7676
COHERE_API_KEY: ${COHERE_API_KEY}
7777
working_dir: /app
7878
volumes:
7979
- ../turbo.json:/turbo.json
80-
- ../package.json:/package.json
80+
- ./scripts/with_standard_tests/openai/node/package.json:/package.json
8181
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
8282
- ../libs/langchain-openai:/libs/langchain-openai
8383
- ./scripts:/scripts
8484
command: bash /scripts/with_standard_tests/openai/test-with-latest-deps.sh
8585
openai-lowest-deps:
86-
image: node:18
86+
image: node:20
8787
environment:
8888
PUPPETEER_SKIP_DOWNLOAD: "true"
8989
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
9090
COHERE_API_KEY: ${COHERE_API_KEY}
9191
working_dir: /app
9292
volumes:
9393
- ../turbo.json:/turbo.json
94-
- ../package.json:/package.json
94+
- ./scripts/with_standard_tests/openai/node/package.json:/package.json
9595
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
9696
- ../libs/langchain-openai:/libs/langchain-openai
9797
- ./scripts:/scripts
9898
command: bash /scripts/with_standard_tests/openai/test-with-lowest-deps.sh
9999

100100
# Anthropic
101101
anthropic-latest-deps:
102-
image: node:18
102+
image: node:20
103103
environment:
104104
PUPPETEER_SKIP_DOWNLOAD: "true"
105105
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
106106
COHERE_API_KEY: ${COHERE_API_KEY}
107107
working_dir: /app
108108
volumes:
109109
- ../turbo.json:/turbo.json
110-
- ../package.json:/package.json
110+
- ./scripts/with_standard_tests/anthropic/node/package.json:/package.json
111111
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
112112
- ../libs/langchain-anthropic:/libs/langchain-anthropic
113113
- ./scripts:/scripts
114114
command: bash /scripts/with_standard_tests/anthropic/test-with-latest-deps.sh
115115
anthropic-lowest-deps:
116-
image: node:18
116+
image: node:20
117117
environment:
118118
PUPPETEER_SKIP_DOWNLOAD: "true"
119119
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
120120
COHERE_API_KEY: ${COHERE_API_KEY}
121121
working_dir: /app
122122
volumes:
123123
- ../turbo.json:/turbo.json
124-
- ../package.json:/package.json
124+
- ./scripts/with_standard_tests/anthropic/node/package.json:/package.json
125125
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
126126
- ../libs/langchain-anthropic:/libs/langchain-anthropic
127127
- ./scripts:/scripts
128128
command: bash /scripts/with_standard_tests/anthropic/test-with-lowest-deps.sh
129129

130130
# Google VertexAI
131131
google-vertexai-latest-deps:
132-
image: node:18
132+
image: node:20
133133
environment:
134134
PUPPETEER_SKIP_DOWNLOAD: "true"
135135
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
136136
COHERE_API_KEY: ${COHERE_API_KEY}
137137
working_dir: /app
138138
volumes:
139139
- ../turbo.json:/turbo.json
140-
- ../package.json:/package.json
140+
- ./scripts/with_standard_tests/google-vertexai/node/package.json:/package.json
141141
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
142142
- ../libs/langchain-google-vertexai:/libs/langchain-google-vertexai
143143
- ./scripts:/scripts
144144
command: bash /scripts/with_standard_tests/google-vertexai/test-with-latest-deps.sh
145145
google-vertexai-lowest-deps:
146-
image: node:18
146+
image: node:20
147147
environment:
148148
PUPPETEER_SKIP_DOWNLOAD: "true"
149149
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
150150
COHERE_API_KEY: ${COHERE_API_KEY}
151151
working_dir: /app
152152
volumes:
153153
- ../turbo.json:/turbo.json
154-
- ../package.json:/package.json
154+
- ./scripts/with_standard_tests/google-vertexai/node/package.json:/package.json
155155
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
156156
- ../libs/langchain-google-vertexai:/libs/langchain-google-vertexai
157157
- ./scripts:/scripts
158158
command: bash /scripts/with_standard_tests/google-vertexai/test-with-lowest-deps.sh
159159

160160
# Cohere
161161
cohere-latest-deps:
162-
image: node:18
162+
image: node:20
163163
environment:
164164
PUPPETEER_SKIP_DOWNLOAD: "true"
165165
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
166166
COHERE_API_KEY: ${COHERE_API_KEY}
167167
working_dir: /app
168168
volumes:
169169
- ../turbo.json:/turbo.json
170-
- ../package.json:/package.json
170+
- ./scripts/with_standard_tests/cohere/node/package.json:/package.json
171171
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
172172
- ../libs/langchain-cohere:/libs/langchain-cohere
173173
- ./scripts:/scripts
174174
command: bash /scripts/with_standard_tests/cohere/test-with-latest-deps.sh
175175
cohere-lowest-deps:
176-
image: node:18
176+
image: node:20
177177
environment:
178178
PUPPETEER_SKIP_DOWNLOAD: "true"
179179
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
180180
COHERE_API_KEY: ${COHERE_API_KEY}
181181
working_dir: /app
182182
volumes:
183183
- ../turbo.json:/turbo.json
184-
- ../package.json:/package.json
184+
- ./scripts/with_standard_tests/cohere/node/package.json:/package.json
185185
- ../libs/langchain-standard-tests:/libs/langchain-standard-tests
186186
- ../libs/langchain-cohere:/libs/langchain-cohere
187187
- ./scripts:/scripts
188-
command: bash /scripts/with_standard_tests/cohere/test-with-lowest-deps.sh
188+
command: bash /scripts/with_standard_tests/cohere/test-with-lowest-deps.sh

Diff for: dependency_range_tests/scripts/with_standard_tests/anthropic/node/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
"name": "dependency-range-tests",
33
"version": "0.0.0",
44
"private": true,
5+
"workspaces": [
6+
"libs/*"
7+
],
58
"description": "Tests dependency ranges for LangChain.",
69
"dependencies": {
710
"semver": "^7.5.4"
811
}
9-
}
12+
}

Diff for: dependency_range_tests/scripts/with_standard_tests/anthropic/test-with-latest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ node "update_resolutions_latest.js"
2727

2828
# Navigate back to monorepo root and install dependencies
2929
cd "$monorepo_dir"
30+
touch yarn.lock
3031
yarn
3132

3233
# Navigate into `@langchain/anthropic` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/anthropic/test-with-lowest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ node "update_resolutions_lowest.js"
2525

2626
# Navigate back to monorepo root and install dependencies
2727
cd "$monorepo_dir"
28+
touch yarn.lock
2829
yarn
2930

3031
# Navigate into `@langchain/anthropic` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/cohere/node/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
"name": "dependency-range-tests",
33
"version": "0.0.0",
44
"private": true,
5+
"workspaces": [
6+
"libs/*"
7+
],
58
"description": "Tests dependency ranges for LangChain.",
69
"dependencies": {
710
"semver": "^7.5.4"
811
}
9-
}
12+
}

Diff for: dependency_range_tests/scripts/with_standard_tests/cohere/test-with-latest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ node "update_resolutions_latest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
2930
yarn
3031

3132
# Navigate into `@langchain/cohere` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/cohere/test-with-lowest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ node "update_resolutions_lowest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
2930
yarn
3031

3132
# Navigate into `@langchain/cohere` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/community/node/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
"name": "dependency-range-tests",
33
"version": "0.0.0",
44
"private": true,
5+
"workspaces": [
6+
"libs/*"
7+
],
58
"description": "Tests dependency ranges for LangChain.",
69
"dependencies": {
710
"semver": "^7.5.4"
811
}
9-
}
12+
}

Diff for: dependency_range_tests/scripts/with_standard_tests/community/test-with-latest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ node "update_resolutions_latest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
2930
yarn
3031

3132
# Navigate into `@langchain/community` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/community/test-with-lowest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ node "update_resolutions_lowest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
2930
yarn
3031

3132
# Navigate into `@langchain/package` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/google-vertexai/node/package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
"name": "dependency-range-tests",
33
"version": "0.0.0",
44
"private": true,
5+
"workspaces": [
6+
"libs/*"
7+
],
58
"description": "Tests dependency ranges for LangChain.",
69
"dependencies": {
710
"semver": "^7.5.4"
8-
}
9-
}
11+
},
12+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
13+
}

Diff for: dependency_range_tests/scripts/with_standard_tests/google-vertexai/test-with-latest-deps.sh

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ node "update_resolutions_latest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
30+
cat ./package.json
2931
yarn
3032

3133
# Navigate into `@langchain/google-vertexai` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/google-vertexai/test-with-lowest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ node "update_resolutions_lowest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
2930
yarn
3031

3132
# Navigate into `@langchain/package` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/node/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "dependency-range-tests",
33
"version": "0.0.0",
44
"private": true,
5+
"workspaces": [
6+
"libs/*"
7+
],
58
"description": "Tests dependency ranges for LangChain.",
69
"dependencies": {}
7-
}
10+
}

Diff for: dependency_range_tests/scripts/with_standard_tests/openai/node/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
"name": "dependency-range-tests",
33
"version": "0.0.0",
44
"private": true,
5+
"workspaces": [
6+
"libs/*"
7+
],
58
"description": "Tests dependency ranges for LangChain.",
69
"dependencies": {
710
"semver": "^7.5.4"
811
}
9-
}
12+
}

Diff for: dependency_range_tests/scripts/with_standard_tests/openai/test-with-latest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ node "update_resolutions_latest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
2930
yarn
3031

3132
# Navigate into `@langchain/openai` to build and run tests

Diff for: dependency_range_tests/scripts/with_standard_tests/openai/test-with-lowest-deps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ node "update_resolutions_lowest.js"
2626

2727
# Navigate back to monorepo root and install dependencies
2828
cd "$monorepo_dir"
29+
touch yarn.lock
2930
yarn
3031

3132
# Navigate into `@langchain/package` to build and run tests

Diff for: examples/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"ioredis": "^5.3.2",
9494
"js-yaml": "^4.1.0",
9595
"langchain": "workspace:*",
96-
"langsmith": "^0.2.0",
96+
"langsmith": "^0.2.8",
9797
"mongodb": "^6.3.0",
9898
"pg": "^8.11.0",
9999
"pickleparser": "^0.2.1",

Diff for: langchain-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"camelcase": "6",
3838
"decamelize": "1.2.0",
3939
"js-tiktoken": "^1.0.12",
40-
"langsmith": "^0.2.0",
40+
"langsmith": "^0.2.8",
4141
"mustache": "^4.2.0",
4242
"p-queue": "^6.6.2",
4343
"p-retry": "4",

0 commit comments

Comments
 (0)