mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-17 21:25:46 +02:00
[docs]: fix type hint for state (#1528)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user