diff --git a/langchain-core/.eslintrc.cjs b/langchain-core/.eslintrc.cjs index 2d66a327d17b..6d3ac18e3b57 100644 --- a/langchain-core/.eslintrc.cjs +++ b/langchain-core/.eslintrc.cjs @@ -51,6 +51,7 @@ module.exports = { "no-await-in-loop": 0, "no-bitwise": 0, "no-console": 0, + "no-empty-function": 0, "no-restricted-syntax": 0, "no-shadow": 0, "no-continue": 0, diff --git a/langchain-core/src/language_models/chat_models.ts b/langchain-core/src/language_models/chat_models.ts index 4a426c00b053..8fa5e364134f 100644 --- a/langchain-core/src/language_models/chat_models.ts +++ b/langchain-core/src/language_models/chat_models.ts @@ -2,7 +2,7 @@ import { AIMessage, BaseMessage, BaseMessageChunk, - BaseMessageLike, + type BaseMessageLike, HumanMessage, coerceMessageLikeToMessage, } from "../messages/index.js"; diff --git a/langchain-core/src/messages/tests/base_message.test.ts b/langchain-core/src/messages/tests/base_message.test.ts index 0e05d2b00bc0..c7b9d2908c41 100644 --- a/langchain-core/src/messages/tests/base_message.test.ts +++ b/langchain-core/src/messages/tests/base_message.test.ts @@ -1,6 +1,6 @@ import { test } from "@jest/globals"; import { ChatPromptTemplate } from "../../prompts/chat.js"; -import { HumanMessage } from "../../messages/index.js"; +import { HumanMessage } from "../index.js"; test("Test ChatPromptTemplate can format OpenAI content image messages", async () => { const message = new HumanMessage({