From 2cbfc1cbeb58da0e021f9f3ea351f650487db319 Mon Sep 17 00:00:00 2001 From: Bin <124781335@qq.com> Date: Tue, 2 Jul 2024 02:53:39 +0800 Subject: [PATCH] docs: fixed variable error (#896) Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com> --- libs/langgraph/langgraph/prebuilt/chat_agent_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py b/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py index b5dba5d52..ebf7a2a01 100644 --- a/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/langgraph/langgraph/prebuilt/chat_agent_executor.py @@ -318,7 +318,7 @@ def create_react_agent( ... # You can do more complex modifications here ... return prompt.invoke({"messages": messages}) >>> - >>> app = create_react_agent(model, tools, messages_modifier=modify_messages) + >>> graph = create_react_agent(model, tools, messages_modifier=modify_messages) >>> inputs = {"messages": [("user", "What's your name? And what's the weather in SF?")]} >>> for s in graph.stream(inputs, stream_mode="values"): ... message = s["messages"][-1]