@langchain/anthropic 0.3.8 → 0.3.9

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.
@@ -7,7 +7,7 @@ import { BaseChatModel, BaseChatModelCallOptions, LangSmithParams, type BaseChat
7
7
  import { type StructuredOutputMethodOptions, type BaseLanguageModelInput } from "@langchain/core/language_models/base";
8
8
  import { Runnable } from "@langchain/core/runnables";
9
9
  import { z } from "zod";
10
- import type { Tool as AnthropicTool } from "@anthropic-ai/sdk/resources/index.mjs";
10
+ import type { Tool as AnthropicTool } from "@anthropic-ai/sdk/resources/messages";
11
11
  import { AnthropicMessageCreateParams, AnthropicMessageStreamEvent, AnthropicRequestOptions, AnthropicStreamingMessageCreateParams, AnthropicToolChoice, ChatAnthropicToolType } from "./types.js";
12
12
  export interface ChatAnthropicCallOptions extends BaseChatModelCallOptions, Pick<AnthropicInput, "streamUsage"> {
13
13
  tools?: ChatAnthropicToolType[];
@@ -554,6 +554,7 @@ export declare class ChatAnthropicMessages<CallOptions extends ChatAnthropicCall
554
554
  id: string;
555
555
  model: Anthropic.Messages.Model;
556
556
  stop_reason: "tool_use" | "stop_sequence" | "end_turn" | "max_tokens" | null;
557
+ /** Anthropic API key */
557
558
  stop_sequence: string | null;
558
559
  usage: Anthropic.Messages.Usage;
559
560
  };
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Anthropic from "@anthropic-ai/sdk";
2
- import type { Tool as AnthropicTool } from "@anthropic-ai/sdk/resources/index.mjs";
2
+ import type { Tool as AnthropicTool } from "@anthropic-ai/sdk/resources/messages";
3
3
  import { BindToolsInput } from "@langchain/core/language_models/chat_models";
4
4
  export type AnthropicToolResponse = {
5
5
  type: "tool_use";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/anthropic",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Anthropic integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {