[docs]: fix type hint for state (#1528)

This commit is contained in:
Niklas Martin
2024-08-29 13:47:05 +00:00
committed by GitHub
parent 6111d37b99
commit 337ccc058f
+2 -2
View File
@@ -44,7 +44,7 @@
"metadata": {},
"outputs": [
{
"name": "stdin",
"name": "stdout",
"output_type": "stream",
"text": [
"LANGCHAIN_API_KEY ········\n",
@@ -348,7 +348,7 @@
"builder.add_edge(START, \"generate\")\n",
"\n",
"\n",
"def should_continue(state: List[BaseMessage]):\n",
"def should_continue(state: State):\n",
" if len(state[\"messages\"]) > 6:\n",
" # End after 3 iterations\n",
" return END\n",