mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 11:47:51 +02:00
Improved description for chatbot node function (#1339)
Updated the documentation to describe the chatbot node function's return value in a more Pythonic and enthusiastic way. The description now emphasizes that the function returns a dictionary with the updated messages list neatly tucked under the messages key.
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
"id": "b6c1dcd9-fb86-4649-81b4-ff6ce20a2e46",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"**Notice** how the `chatbot` node function takes the current `State` as input and returns an updated `messages` list. This is the basic pattern for all LangGraph node functions.\n",
|
||||
"**Notice** how the `chatbot` node function takes the current `State` as input and returns a dictionary containing an updated `messages` list under the key \"messages\". This is the basic pattern for all LangGraph node functions.\n",
|
||||
"\n",
|
||||
"The `add_messages` function in our `State` will append the llm's response messages to whatever messages are already in the state.\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user