From d1450a463eb1d01c9831e13148ea7727bbfd88d6 Mon Sep 17 00:00:00 2001 From: Hassan Memon Date: Wed, 14 Aug 2024 19:12:37 +0500 Subject: [PATCH] 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. --- examples/introduction.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/introduction.ipynb b/examples/introduction.ipynb index 24726a792..f59622789 100644 --- a/examples/introduction.ipynb +++ b/examples/introduction.ipynb @@ -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",