Skip to content

Commit

Permalink
Fix anthropic sdk import (#7334)
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet authored Dec 9, 2024
1 parent 6c12c7b commit c5c1ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/langchain-anthropic/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { z } from "zod";
import type {
MessageCreateParams,
Tool as AnthropicTool,
} from "@anthropic-ai/sdk/resources/index.mjs";
} from "@anthropic-ai/sdk/resources/messages";

import { isLangChainTool } from "@langchain/core/utils/function_calling";
import { AnthropicToolsOutputParser } from "./output_parsers.js";
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain-anthropic/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Anthropic from "@anthropic-ai/sdk";
import type { Tool as AnthropicTool } from "@anthropic-ai/sdk/resources/index.mjs";
import type { Tool as AnthropicTool } from "@anthropic-ai/sdk/resources/messages";
import { BindToolsInput } from "@langchain/core/language_models/chat_models";

export type AnthropicToolResponse = {
Expand Down

0 comments on commit c5c1ac1

Please sign in to comment.