Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Aug 28, 2024
1 parent 93997ac commit 425dab6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/langgraph/src/tests/prebuilt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 425dab6

Please sign in to comment.