This commit is contained in:
Nuno Campos
2025-04-22 08:36:42 -07:00
parent 0db67d4196
commit deeb2d6e92
3 changed files with 23 additions and 7 deletions
@@ -3,11 +3,11 @@
'''
graph TD;
__start__ --> rewrite_query;
rewrite_query --> analyzer_one;
rewrite_query -.-> retriever_two;
analyzer_one --> retriever_one;
retriever_one --> qa;
retriever_two --> qa;
rewrite_query --> analyzer_one;
rewrite_query -.-> retriever_two;
qa --> __end__;
'''
@@ -122,13 +122,19 @@
# ---
# name: test_send_react_interrupt_control[memory]
'''
%%{init: {'flowchart': {'curve': 'linear'}}}%%
---
config:
flowchart:
curve: linear
---
graph TD;
__start__([<p>__start__</p>]):::first
agent(agent)
foo([foo]):::last
foo(foo)
__end__([<p>__end__</p>]):::last
__start__ --> agent;
agent -.-> foo;
foo --> __end__;
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc
+4
View File
@@ -7011,6 +7011,8 @@ def test_node_destinations() -> None:
Edge(source="__start__", target="child", data=None, conditional=False),
Edge(source="child", target="node_b", data=None, conditional=True),
Edge(source="child", target="node_c", data=None, conditional=True),
Edge(source="node_b", target="__end__", data=None, conditional=False),
Edge(source="node_c", target="__end__", data=None, conditional=False),
] == graph.edges
# destinations w/ dicts
@@ -7029,6 +7031,8 @@ def test_node_destinations() -> None:
Edge(source="__start__", target="child", data=None, conditional=False),
Edge(source="child", target="node_b", data="foo", conditional=True),
Edge(source="child", target="node_c", data="bar", conditional=True),
Edge(source="node_b", target="__end__", data=None, conditional=False),
Edge(source="node_c", target="__end__", data=None, conditional=False),
] == graph.edges
+9 -3
View File
@@ -3932,15 +3932,21 @@ async def test_max_concurrency_control(checkpointer_name: str) -> None:
if checkpointer_name == "memory":
assert (
graph.get_graph().draw_mermaid()
== """%%{init: {'flowchart': {'curve': 'linear'}}}%%
== """---
config:
flowchart:
curve: linear
---
graph TD;
__start__([<p>__start__</p>]):::first
1(1)
2(2)
3([3]):::last
__start__ --> 1;
3(3)
__end__([<p>__end__</p>]):::last
1 -.-> 2;
2 -.-> 3;
__start__ --> 1;
3 --> __end__;
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc