mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-30 19:59:40 +02:00
fix TypeError (#1820)
This commit is contained in:
@@ -295,7 +295,7 @@
|
||||
" if user_input.lower() in [\"quit\", \"exit\", \"q\"]:\n",
|
||||
" print(\"Goodbye!\")\n",
|
||||
" break\n",
|
||||
" for event in graph.stream({\"messages\": (\"user\", user_input)}):\n",
|
||||
" for event in graph.stream({\"messages\": [(\"user\", user_input)]}):\n",
|
||||
" for value in event.values():\n",
|
||||
" print(\"Assistant:\", value[\"messages\"][-1].content)"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user