mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-07 02:07:52 +02:00
docs: __start__/__end__ consistency (#1874)
* changes * skip mermaid * retries fix * viz error * changes
This commit is contained in:
@@ -437,7 +437,7 @@
|
||||
" return i\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"def event_loop(state: list) -> Literal[\"execute_tools\", \"__end__\"]:\n",
|
||||
"def event_loop(state: list):\n",
|
||||
" # in our case, we'll just stop after N plans\n",
|
||||
" num_iterations = _get_num_iterations(state['messages'])\n",
|
||||
" if num_iterations > MAX_ITERATIONS:\n",
|
||||
@@ -446,7 +446,7 @@
|
||||
"\n",
|
||||
"\n",
|
||||
"# revise -> execute_tools OR end\n",
|
||||
"builder.add_conditional_edges(\"revise\", event_loop)\n",
|
||||
"builder.add_conditional_edges(\"revise\", event_loop, [\"execute_tools\", END])\n",
|
||||
"builder.add_edge(START, \"draft\")\n",
|
||||
"graph = builder.compile()"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user