From aed2844c20367385db7ba5530eb7d3eee0d89e09 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Sat, 27 Jan 2024 13:38:40 -0800 Subject: [PATCH] fmt --- langgraph/prebuilt/chat_agent_executor.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/langgraph/prebuilt/chat_agent_executor.py b/langgraph/prebuilt/chat_agent_executor.py index cda768fe0..bc7208107 100644 --- a/langgraph/prebuilt/chat_agent_executor.py +++ b/langgraph/prebuilt/chat_agent_executor.py @@ -2,10 +2,10 @@ import json import operator from typing import Annotated, Sequence, TypedDict -from langchain_core.utils.function_calling import convert_to_openai_function from langchain_core.agents import AgentAction from langchain_core.messages import BaseMessage, FunctionMessage from langchain_core.runnables import RunnableLambda +from langchain_core.utils.function_calling import convert_to_openai_function from langgraph.graph import END, StateGraph from langgraph.prebuilt.tool_executor import ToolExecutor @@ -18,9 +18,7 @@ def create_function_calling_executor(model, tools): else: tool_executor = ToolExecutor(tools) tool_classes = tools - model = model.bind( - functions=[convert_to_openai_function(t) for t in tool_classes] - ) + model = model.bind(functions=[convert_to_openai_function(t) for t in tool_classes]) # Define the function that determines whether to continue or not def should_continue(state):