From 89a14160b0bb7756f4b359c019fb30b695c96d92 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Wed, 10 Apr 2024 18:41:12 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com> --- langgraph/prebuilt/tool_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langgraph/prebuilt/tool_node.py b/langgraph/prebuilt/tool_node.py index b0d2da8be..cc2ba8b2c 100644 --- a/langgraph/prebuilt/tool_node.py +++ b/langgraph/prebuilt/tool_node.py @@ -22,7 +22,7 @@ def str_output(output: Any) -> str: class ToolNode(RunnableCallable): """ - A node that runs the tols requested in the last AIMessage. It can be used + A node that runs the tools requested in the last AIMessage. It can be used either in StateGraph with a "messages" key or in MessageGraph. If multiple tool calls are requested, they will be run in parallel. The output will be a list of ToolMessages, one for each tool call.