diff --git a/libs/langchain-cohere/src/chat_models.ts b/libs/langchain-cohere/src/chat_models.ts index d0dc03703244..749300e99c86 100644 --- a/libs/langchain-cohere/src/chat_models.ts +++ b/libs/langchain-cohere/src/chat_models.ts @@ -347,7 +347,9 @@ export class ChatCohere< invocationParams(options: this["ParsedCallOptions"]) { if (options.tool_choice) { - throw new Error("'tool_choice' call option is not supported by ChatCohere.") + throw new Error( + "'tool_choice' call option is not supported by ChatCohere." + ); } const params = { diff --git a/libs/langchain-community/src/chat_models/bedrock/web.ts b/libs/langchain-community/src/chat_models/bedrock/web.ts index 3aef91ec7da2..e066c69b2922 100644 --- a/libs/langchain-community/src/chat_models/bedrock/web.ts +++ b/libs/langchain-community/src/chat_models/bedrock/web.ts @@ -379,7 +379,9 @@ export class BedrockChat override invocationParams(options?: this["ParsedCallOptions"]) { if (options?.tool_choice) { - throw new Error("'tool_choice' call option is not supported by BedrockChat.") + throw new Error( + "'tool_choice' call option is not supported by BedrockChat." + ); } const callOptionTools = formatTools(options?.tools ?? []); diff --git a/libs/langchain-google-common/src/chat_models.ts b/libs/langchain-google-common/src/chat_models.ts index 148d844afebf..72caeab4aecf 100644 --- a/libs/langchain-google-common/src/chat_models.ts +++ b/libs/langchain-google-common/src/chat_models.ts @@ -340,7 +340,9 @@ export abstract class ChatGoogleBase */ override invocationParams(options?: this["ParsedCallOptions"]) { if (options?.tool_choice) { - throw new Error(`'tool_choice' call option is not supported by ${this.getName()}.`); + throw new Error( + `'tool_choice' call option is not supported by ${this.getName()}.` + ); } return copyAIModelParams(this, options); diff --git a/libs/langchain-google-common/src/types.ts b/libs/langchain-google-common/src/types.ts index 1d314eb1f5d9..c883be766a0e 100644 --- a/libs/langchain-google-common/src/types.ts +++ b/libs/langchain-google-common/src/types.ts @@ -1,7 +1,7 @@ import type { BaseLLMParams } from "@langchain/core/language_models/llms"; import { StructuredToolInterface } from "@langchain/core/tools"; -import type { JsonStream } from "./utils/stream.js"; import type { BaseChatModelCallOptions } from "@langchain/core/language_models/chat_models"; +import type { JsonStream } from "./utils/stream.js"; /** * Parameters needed to setup the client connection. diff --git a/libs/langchain-google-genai/src/chat_models.ts b/libs/langchain-google-genai/src/chat_models.ts index 3b6327951470..6a8f492e81de 100644 --- a/libs/langchain-google-genai/src/chat_models.ts +++ b/libs/langchain-google-genai/src/chat_models.ts @@ -365,7 +365,9 @@ export class ChatGoogleGenerativeAI options?: this["ParsedCallOptions"] ): Omit { if (options?.tool_choice) { - throw new Error("'tool_choice' call option is not supported by ChatGoogleGenerativeAI.") + throw new Error( + "'tool_choice' call option is not supported by ChatGoogleGenerativeAI." + ); } const tools = options?.tools as