docs: fixed variable error (#896)

Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
This commit is contained in:
Bin
2024-07-01 14:53:39 -04:00
committed by GitHub
co-authored by William FH
parent 00514955fa
commit 2cbfc1cbeb
@@ -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]