diff --git a/langchain-core/src/language_models/chat_models.ts b/langchain-core/src/language_models/chat_models.ts index 390d4e767caf..cdf1752d94e8 100644 --- a/langchain-core/src/language_models/chat_models.ts +++ b/langchain-core/src/language_models/chat_models.ts @@ -430,7 +430,7 @@ export abstract class BaseChatModel< /** * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * + * * Generates chat based on the input messages. * @param messages An array of arrays of BaseMessage instances. * @param options The call options or an array of stop sequences. diff --git a/langchain-core/src/language_models/llms.ts b/langchain-core/src/language_models/llms.ts index 7c3cb9cd997c..b6db4dbaea2a 100644 --- a/langchain-core/src/language_models/llms.ts +++ b/langchain-core/src/language_models/llms.ts @@ -403,7 +403,7 @@ export abstract class BaseLLM< /** * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * + * * Run the LLM on the given prompts and input, handling caching. */ async generate( diff --git a/langchain-core/src/retrievers/index.ts b/langchain-core/src/retrievers/index.ts index e18ed38caac6..91a97889376e 100644 --- a/langchain-core/src/retrievers/index.ts +++ b/langchain-core/src/retrievers/index.ts @@ -78,7 +78,7 @@ export abstract class BaseRetriever< /** * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * + * * Main method used to retrieve relevant documents. It takes a query * string and an optional configuration object, and returns a promise that * resolves to an array of `Document` objects. This method handles the diff --git a/langchain-core/src/tools.ts b/langchain-core/src/tools.ts index 19674049980f..1d6a67247187 100644 --- a/langchain-core/src/tools.ts +++ b/langchain-core/src/tools.ts @@ -44,7 +44,7 @@ export interface StructuredToolInterface< /** * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * + * * Calls the tool with the provided argument, configuration, and tags. It * parses the input according to the schema, handles any errors, and * manages callbacks. @@ -108,7 +108,7 @@ export abstract class StructuredTool< /** * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * + * * Calls the tool with the provided argument, configuration, and tags. It * parses the input according to the schema, handles any errors, and * manages callbacks. @@ -173,7 +173,7 @@ export abstract class StructuredTool< export interface ToolInterface extends StructuredToolInterface { /** * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * + * * Calls the tool with the provided argument and callbacks. It handles * string inputs specifically. * @param arg The input argument for the tool, which can be a string, undefined, or an input of the tool's schema. @@ -200,7 +200,7 @@ export abstract class Tool extends StructuredTool { /** * @deprecated Use .invoke() instead. Will be removed in 0.2.0. - * + * * Calls the tool with the provided argument and callbacks. It handles * string inputs specifically. * @param arg The input argument for the tool, which can be a string, undefined, or an input of the tool's schema. diff --git a/langchain/src/agents/tests/json.test.ts b/langchain/src/agents/tests/json.test.ts index ef161c97f76b..2e39e18697b0 100644 --- a/langchain/src/agents/tests/json.test.ts +++ b/langchain/src/agents/tests/json.test.ts @@ -109,11 +109,11 @@ test("JsonGetValueTool, paths containing escaped characters", async () => { "2" ); - expect(await jsonGetValueTool.invoke("/paths/~0~1IDSGenericFXCrossRate")).toBe( - "3" - ); + expect( + await jsonGetValueTool.invoke("/paths/~0~1IDSGenericFXCrossRate") + ).toBe("3"); - expect(await jsonGetValueTool.invoke("/paths/~1~0IDSGenericFXCrossRate")).toBe( - "4" - ); + expect( + await jsonGetValueTool.invoke("/paths/~1~0IDSGenericFXCrossRate") + ).toBe("4"); }); diff --git a/langchain/src/chains/router/tests/multi_prompt.test.ts b/langchain/src/chains/router/tests/multi_prompt.test.ts index 80d53467273e..2e1028c68172 100644 --- a/langchain/src/chains/router/tests/multi_prompt.test.ts +++ b/langchain/src/chains/router/tests/multi_prompt.test.ts @@ -66,7 +66,9 @@ test("Test MultiPromptChain", async () => { promptTemplates, }); - const { text: result } = await multiPromptChain.invoke({ input: "Test input" }); + const { text: result } = await multiPromptChain.invoke({ + input: "Test input", + }); expect(result).toEqual(``); });