mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-23 16:12:25 +02:00
docs: fixed variable error (#896)
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user