Add (failing) test for drawing cyclic edge

- fix waiting for new release of langchain-core
This commit is contained in:
Nuno Campos
2024-05-03 15:17:20 -07:00
parent a307fc9fc4
commit 04fe48f661
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -1434,6 +1434,9 @@
'''
graph TD;
__start__ --> Researcher;
subgraph Researcher
Researcher -. redo .-> Researcher;
end
Researcher -. continue .-> Chart_Generator;
Researcher -. call_tool .-> Call_Tool;
Researcher -. end .-> __end__;
+6 -1
View File
@@ -4653,7 +4653,12 @@ def test_repeat_condition(snapshot: SnapshotAssertion) -> None:
workflow.add_conditional_edges(
"Researcher",
router,
{"continue": "Chart Generator", "call_tool": "Call Tool", "end": END},
{
"redo": "Researcher",
"continue": "Chart Generator",
"call_tool": "Call Tool",
"end": END,
},
)
workflow.add_conditional_edges(
"Chart Generator",