@langchain/anthropic 0.2.18 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -5,7 +5,7 @@ This package contains the LangChain.js integrations for Anthropic through their
5
5
  ## Installation
6
6
 
7
7
  ```bash npm2yarn
8
- npm install @langchain/anthropic
8
+ npm install @langchain/anthropic @langchain/core
9
9
  ```
10
10
 
11
11
  This package, along with the main LangChain package, depends on [`@langchain/core`](https://npmjs.com/package/@langchain/core/).
@@ -18,17 +18,17 @@ You can do so by adding appropriate fields to your project's `package.json` like
18
18
  "version": "0.0.0",
19
19
  "dependencies": {
20
20
  "@langchain/anthropic": "^0.0.9",
21
- "langchain": "0.0.207"
21
+ "@langchain/core": "^0.3.0"
22
22
  },
23
23
  "resolutions": {
24
- "@langchain/core": "0.1.5"
24
+ "@langchain/core": "^0.3.0"
25
25
  },
26
26
  "overrides": {
27
- "@langchain/core": "0.1.5"
27
+ "@langchain/core": "^0.3.0"
28
28
  },
29
29
  "pnpm": {
30
30
  "overrides": {
31
- "@langchain/core": "0.1.5"
31
+ "@langchain/core": "^0.3.0"
32
32
  }
33
33
  }
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/anthropic",
3
- "version": "0.2.18",
3
+ "version": "0.3.0",
4
4
  "description": "Anthropic integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -36,14 +36,17 @@
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
38
  "@anthropic-ai/sdk": "^0.25.2",
39
- "@langchain/core": ">=0.2.21 <0.3.0",
40
39
  "fast-xml-parser": "^4.4.1",
41
40
  "zod": "^3.22.4",
42
41
  "zod-to-json-schema": "^3.22.4"
43
42
  },
43
+ "peerDependencies": {
44
+ "@langchain/core": ">=0.2.21 <0.4.0"
45
+ },
44
46
  "devDependencies": {
45
47
  "@anthropic-ai/vertex-sdk": "^0.4.1",
46
48
  "@jest/globals": "^29.5.0",
49
+ "@langchain/core": "workspace:*",
47
50
  "@langchain/scripts": ">=0.1.0 <0.2.0",
48
51
  "@langchain/standard-tests": "0.0.0",
49
52
  "@swc/core": "^1.3.90",