@langchain/anthropic 0.2.0 → 0.2.1
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/dist/chat_models.d.ts +2 -2
- package/package.json +10 -14
package/dist/chat_models.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ type AnthropicToolChoice = {
|
|
|
26
26
|
type: "tool";
|
|
27
27
|
name: string;
|
|
28
28
|
} | "any" | "auto";
|
|
29
|
-
interface ChatAnthropicCallOptions extends BaseLanguageModelCallOptions {
|
|
29
|
+
export interface ChatAnthropicCallOptions extends BaseLanguageModelCallOptions {
|
|
30
30
|
tools?: (StructuredToolInterface | AnthropicTool)[];
|
|
31
31
|
/**
|
|
32
32
|
* Whether or not to specify what tool the model should use
|
|
@@ -142,7 +142,7 @@ export declare class ChatAnthropicMessages<CallOptions extends ChatAnthropicCall
|
|
|
142
142
|
protected batchClient: Anthropic;
|
|
143
143
|
protected streamingClient: Anthropic;
|
|
144
144
|
constructor(fields?: Partial<AnthropicInput> & BaseChatModelParams);
|
|
145
|
-
|
|
145
|
+
getLsParams(options: this["ParsedCallOptions"]): LangSmithParams;
|
|
146
146
|
/**
|
|
147
147
|
* Formats LangChain StructuredTools to AnthropicTools.
|
|
148
148
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/anthropic",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Anthropic integrations for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -16,26 +16,21 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "yarn turbo:command build:internal --filter=@langchain/anthropic",
|
|
18
18
|
"build:internal": "yarn lc-build:v2 --create-entrypoints --pre --tree-shaking --gen-maps",
|
|
19
|
-
"build:deps": "yarn run turbo:command build --filter=@langchain/core",
|
|
20
|
-
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/",
|
|
21
|
-
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rimraf dist-cjs",
|
|
22
|
-
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
|
|
23
|
-
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
|
|
24
19
|
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
|
|
25
20
|
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
26
21
|
"lint": "yarn lint:eslint && yarn lint:dpdm",
|
|
27
22
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
|
|
28
23
|
"clean": "rm -rf .turbo dist/",
|
|
29
24
|
"prepack": "yarn build",
|
|
30
|
-
"test": "
|
|
31
|
-
"test:watch": "
|
|
32
|
-
"test:single": "
|
|
33
|
-
"test:int": "
|
|
25
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
|
|
26
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
27
|
+
"test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
|
|
28
|
+
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
29
|
+
"test:standard:unit": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
30
|
+
"test:standard:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
31
|
+
"test:standard": "yarn test:standard:unit && yarn test:standard:int",
|
|
34
32
|
"format": "prettier --config .prettierrc --write \"src\"",
|
|
35
|
-
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
36
|
-
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
|
|
37
|
-
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
|
|
38
|
-
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
|
|
33
|
+
"format:check": "prettier --config .prettierrc --check \"src\""
|
|
39
34
|
},
|
|
40
35
|
"author": "LangChain",
|
|
41
36
|
"license": "MIT",
|
|
@@ -50,6 +45,7 @@
|
|
|
50
45
|
"@jest/globals": "^29.5.0",
|
|
51
46
|
"@langchain/community": "workspace:*",
|
|
52
47
|
"@langchain/scripts": "~0.0.14",
|
|
48
|
+
"@langchain/standard-tests": "workspace:*",
|
|
53
49
|
"@swc/core": "^1.3.90",
|
|
54
50
|
"@swc/jest": "^0.2.29",
|
|
55
51
|
"dpdm": "^3.12.0",
|