mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-28 20:45:05 +02:00
Merge branch 'main' into improve_visualization_notebook
This commit is contained in:
@@ -97,18 +97,6 @@
|
||||
"source": "left",
|
||||
"target": "condition"
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "left",
|
||||
"data": "left",
|
||||
"conditional": true
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "right",
|
||||
"data": "right",
|
||||
"conditional": true
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "__end__",
|
||||
@@ -121,39 +109,33 @@
|
||||
# ---
|
||||
# name: test_conditional_entrypoint_graph.3
|
||||
'''
|
||||
+-----------+
|
||||
| __start__ |
|
||||
+-----------+
|
||||
*
|
||||
*
|
||||
*
|
||||
+--------------+
|
||||
| should_start |
|
||||
+--------------+
|
||||
.. ..
|
||||
.. ..
|
||||
. ..
|
||||
+------+ .
|
||||
| left | .
|
||||
+------+ .
|
||||
* .
|
||||
* .
|
||||
* .
|
||||
+-----------+ .
|
||||
| condition | .
|
||||
+-----------+... .
|
||||
. ... .
|
||||
. .... .
|
||||
. .. .
|
||||
. +-------+
|
||||
.. | right |
|
||||
.. +-------+
|
||||
.. **
|
||||
.. **
|
||||
. *
|
||||
+---------+
|
||||
| __end__ |
|
||||
+---------+
|
||||
+-----------+
|
||||
| __start__ |
|
||||
+-----------+
|
||||
*
|
||||
*
|
||||
*
|
||||
+--------------+
|
||||
| should_start |
|
||||
+--------------+
|
||||
. ..
|
||||
.. .
|
||||
. ..
|
||||
+------+ .
|
||||
| left | .
|
||||
+------+ .
|
||||
* .
|
||||
* .
|
||||
* .
|
||||
+-----------+ +-------+
|
||||
| condition | | right |
|
||||
+-----------+ +-------+
|
||||
. *
|
||||
.. **
|
||||
. *
|
||||
+---------+
|
||||
| __end__ |
|
||||
+---------+
|
||||
'''
|
||||
# ---
|
||||
# name: test_conditional_entrypoint_graph_state
|
||||
@@ -254,18 +236,6 @@
|
||||
"source": "left",
|
||||
"target": "condition"
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "left",
|
||||
"data": "left",
|
||||
"conditional": true
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "right",
|
||||
"data": "right",
|
||||
"conditional": true
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "__end__",
|
||||
@@ -278,39 +248,33 @@
|
||||
# ---
|
||||
# name: test_conditional_entrypoint_graph_state.3
|
||||
'''
|
||||
+-----------+
|
||||
| __start__ |
|
||||
+-----------+
|
||||
*
|
||||
*
|
||||
*
|
||||
+--------------+
|
||||
| should_start |
|
||||
+--------------+
|
||||
.. ..
|
||||
.. ..
|
||||
. ..
|
||||
+------+ .
|
||||
| left | .
|
||||
+------+ .
|
||||
* .
|
||||
* .
|
||||
* .
|
||||
+-----------+ .
|
||||
| condition | .
|
||||
+-----------+... .
|
||||
. ... .
|
||||
. .... .
|
||||
. .. .
|
||||
. +-------+
|
||||
.. | right |
|
||||
.. +-------+
|
||||
.. **
|
||||
.. **
|
||||
. *
|
||||
+---------+
|
||||
| __end__ |
|
||||
+---------+
|
||||
+-----------+
|
||||
| __start__ |
|
||||
+-----------+
|
||||
*
|
||||
*
|
||||
*
|
||||
+--------------+
|
||||
| should_start |
|
||||
+--------------+
|
||||
. ..
|
||||
.. .
|
||||
. ..
|
||||
+------+ .
|
||||
| left | .
|
||||
+------+ .
|
||||
* .
|
||||
* .
|
||||
* .
|
||||
+-----------+ +-------+
|
||||
| condition | | right |
|
||||
+-----------+ +-------+
|
||||
. *
|
||||
.. **
|
||||
. *
|
||||
+---------+
|
||||
| __end__ |
|
||||
+---------+
|
||||
'''
|
||||
# ---
|
||||
# name: test_conditional_graph[end_of_run]
|
||||
@@ -807,9 +771,9 @@
|
||||
+-------+
|
||||
| agent |
|
||||
+-------+
|
||||
* .
|
||||
** ..
|
||||
* .
|
||||
. .
|
||||
.. ..
|
||||
. .
|
||||
+-------+ +---------+
|
||||
| tools | | __end__ |
|
||||
+-------+ +---------+
|
||||
|
||||
@@ -1367,7 +1367,7 @@ def test_conditional_entrypoint_graph(snapshot: SnapshotAssertion) -> None:
|
||||
should_start, {"go-left": "left", "go-right": "right"}
|
||||
)
|
||||
|
||||
workflow.add_conditional_edges("left", lambda data: END)
|
||||
workflow.add_conditional_edges("left", lambda data: END, {END: END})
|
||||
workflow.add_edge("right", END)
|
||||
|
||||
app = workflow.compile()
|
||||
@@ -1819,7 +1819,7 @@ def test_conditional_entrypoint_graph_state(snapshot: SnapshotAssertion) -> None
|
||||
should_start, {"go-left": "left", "go-right": "right"}
|
||||
)
|
||||
|
||||
workflow.add_conditional_edges("left", lambda data: END)
|
||||
workflow.add_conditional_edges("left", lambda data: END, {END: END})
|
||||
workflow.add_edge("right", END)
|
||||
|
||||
app = workflow.compile()
|
||||
|
||||
Reference in New Issue
Block a user