@langchain/anthropic 0.0.2 → 0.0.3

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.
@@ -4,10 +4,10 @@ exports.ChatAnthropic = exports.DEFAULT_STOP_SEQUENCES = exports.HUMAN_PROMPT =
4
4
  const sdk_1 = require("@anthropic-ai/sdk");
5
5
  Object.defineProperty(exports, "AI_PROMPT", { enumerable: true, get: function () { return sdk_1.AI_PROMPT; } });
6
6
  Object.defineProperty(exports, "HUMAN_PROMPT", { enumerable: true, get: function () { return sdk_1.HUMAN_PROMPT; } });
7
- const messages_1 = require("langchain-core/messages");
8
- const outputs_1 = require("langchain-core/outputs");
9
- const env_1 = require("langchain-core/utils/env");
10
- const chat_models_1 = require("langchain-core/language_models/chat_models");
7
+ const messages_1 = require("@langchain/core/messages");
8
+ const outputs_1 = require("@langchain/core/outputs");
9
+ const env_1 = require("@langchain/core/utils/env");
10
+ const chat_models_1 = require("@langchain/core/language_models/chat_models");
11
11
  /**
12
12
  * Extracts the custom role of a generic chat message.
13
13
  * @param message The chat message from which to extract the custom role.
@@ -1,12 +1,12 @@
1
1
  import { Anthropic, AI_PROMPT, HUMAN_PROMPT, ClientOptions } from "@anthropic-ai/sdk";
2
2
  import type { CompletionCreateParams } from "@anthropic-ai/sdk/resources/completions";
3
3
  import type { Stream } from "@anthropic-ai/sdk/streaming";
4
- import { CallbackManagerForLLMRun } from "langchain-core/callbacks/manager";
5
- import { type BaseMessage } from "langchain-core/messages";
6
- import { ChatGenerationChunk, type ChatResult } from "langchain-core/outputs";
7
- import { BaseChatModel, type BaseChatModelParams } from "langchain-core/language_models/chat_models";
8
- import { type BaseLanguageModelCallOptions } from "langchain-core/language_models/base";
9
- export { AI_PROMPT, HUMAN_PROMPT, };
4
+ import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager";
5
+ import { type BaseMessage } from "@langchain/core/messages";
6
+ import { ChatGenerationChunk, type ChatResult } from "@langchain/core/outputs";
7
+ import { BaseChatModel, type BaseChatModelParams } from "@langchain/core/language_models/chat_models";
8
+ import { type BaseLanguageModelCallOptions } from "@langchain/core/language_models/base";
9
+ export { AI_PROMPT, HUMAN_PROMPT };
10
10
  export declare const DEFAULT_STOP_SEQUENCES: string[];
11
11
  /**
12
12
  * Input to AnthropicChat class.
@@ -1,9 +1,9 @@
1
1
  import { Anthropic, AI_PROMPT, HUMAN_PROMPT, } from "@anthropic-ai/sdk";
2
- import { AIMessage, AIMessageChunk, ChatMessage, } from "langchain-core/messages";
3
- import { ChatGenerationChunk, } from "langchain-core/outputs";
4
- import { getEnvironmentVariable } from "langchain-core/utils/env";
5
- import { BaseChatModel, } from "langchain-core/language_models/chat_models";
6
- export { AI_PROMPT, HUMAN_PROMPT, };
2
+ import { AIMessage, AIMessageChunk, ChatMessage, } from "@langchain/core/messages";
3
+ import { ChatGenerationChunk, } from "@langchain/core/outputs";
4
+ import { getEnvironmentVariable } from "@langchain/core/utils/env";
5
+ import { BaseChatModel, } from "@langchain/core/language_models/chat_models";
6
+ export { AI_PROMPT, HUMAN_PROMPT };
7
7
  /**
8
8
  * Extracts the custom role of a generic chat message.
9
9
  * @param message The chat message from which to extract the custom role.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/anthropic",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Anthropic integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -33,10 +33,11 @@
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
35
  "@anthropic-ai/sdk": "^0.10.0",
36
- "langchain-core": "^0.0.3"
36
+ "@langchain/core": "~0.0.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@jest/globals": "^29.5.0",
40
+ "@langchain/core": "workspace:*",
40
41
  "@swc/core": "^1.3.90",
41
42
  "@swc/jest": "^0.2.29",
42
43
  "dpdm": "^3.12.0",
@@ -48,7 +49,6 @@
48
49
  "eslint-plugin-prettier": "^4.2.1",
49
50
  "jest": "^29.5.0",
50
51
  "jest-environment-node": "^29.6.4",
51
- "langchain-core": "workspace:*",
52
52
  "prettier": "^2.8.3",
53
53
  "release-it": "^15.10.1",
54
54
  "rimraf": "^5.0.1",
@@ -67,7 +67,7 @@
67
67
  "chatgpt",
68
68
  "machine learning",
69
69
  "ml",
70
- "openai",
70
+ "anthropic",
71
71
  "embeddings",
72
72
  "vectorstores"
73
73
  ],