Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jul 30, 2024
1 parent e652ffc commit c470975
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
7 changes: 2 additions & 5 deletions libs/langchain-anthropic/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ import type {
Tool as AnthropicTool,
} from "@anthropic-ai/sdk/resources/index.mjs";

import { isLangChainTool } from "@langchain/core/utils/function_calling";
import { AnthropicToolsOutputParser } from "./output_parsers.js";
import {
extractToolCallChunk,
handleToolChoice,
} from "./utils/tools.js";
import { extractToolCallChunk, handleToolChoice } from "./utils/tools.js";
import { _formatMessagesForAnthropic } from "./utils/message_inputs.js";
import {
_makeMessageChunkFromAnthropicEvent,
Expand All @@ -49,7 +47,6 @@ import {
AnthropicToolChoice,
AnthropicToolTypes,
} from "./types.js";
import { isLangChainTool } from "@langchain/core/utils/function_calling";

export interface ChatAnthropicCallOptions
extends BaseChatModelCallOptions,
Expand Down
6 changes: 2 additions & 4 deletions libs/langchain-anthropic/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +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/index.mjs";
import { BindToolsInput } from "@langchain/core/language_models/chat_models";

export type AnthropicToolResponse = {
Expand Down Expand Up @@ -31,4 +29,4 @@ export type AnthropicToolChoice =
| "none"
| string;

export type AnthropicToolTypes = AnthropicTool | BindToolsInput;
export type AnthropicToolTypes = AnthropicTool | BindToolsInput;
4 changes: 1 addition & 3 deletions libs/langchain-anthropic/src/utils/tools.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type {
MessageCreateParams,
} from "@anthropic-ai/sdk/resources/index.mjs";
import type { MessageCreateParams } from "@anthropic-ai/sdk/resources/index.mjs";
import { AIMessageChunk } from "@langchain/core/messages";
import { ToolCallChunk } from "@langchain/core/messages/tool";
import { AnthropicToolChoice } from "../types.js";
Expand Down

0 comments on commit c470975

Please sign in to comment.