From 425dab6fa2b21511085840f2108d5d4c85a34009 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Tue, 27 Aug 2024 18:30:13 -0700 Subject: [PATCH] Format --- libs/langgraph/src/tests/prebuilt.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/langgraph/src/tests/prebuilt.test.ts b/libs/langgraph/src/tests/prebuilt.test.ts index a15dddd2..9de83c83 100644 --- a/libs/langgraph/src/tests/prebuilt.test.ts +++ b/libs/langgraph/src/tests/prebuilt.test.ts @@ -550,9 +550,9 @@ describe("ToolNode", () => { return { messages: [aiMessage] }; } - function shouldContinue( - { messages }: typeof AgentAnnotation.State - ): "tools" | "__end__" { + function shouldContinue({ + messages, + }: typeof AgentAnnotation.State): "tools" | "__end__" { const lastMessage: AIMessage = messages[messages.length - 1]; // If the LLM makes a tool call, then we route to the "tools" node