From e413a3c55f5832d26a26565663bc59b9497e2ab5 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 13 Jun 2024 09:35:24 -0700 Subject: [PATCH] chore: lint files --- langchain-core/src/language_models/chat_models.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/langchain-core/src/language_models/chat_models.ts b/langchain-core/src/language_models/chat_models.ts index a44525fb7e86..f3b900427ba0 100644 --- a/langchain-core/src/language_models/chat_models.ts +++ b/langchain-core/src/language_models/chat_models.ts @@ -771,7 +771,7 @@ export abstract class BaseChatModel< parsed: RunOutput; } > { - if (!("bindTools" in this) || typeof this.bindTools !== "function") { + if (typeof this.bindTools !== "function") { throw new Error( `Chat model must implement ".bindTools()" to use withStructuredOutput.` ); @@ -897,4 +897,4 @@ export abstract class SimpleChatModel< ], }; } -} \ No newline at end of file +}