From 63c34ca992f20347099af34fcc1a2608a694749e Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Wed, 11 Sep 2024 19:28:47 -0400 Subject: [PATCH] langgraph: update snapshots for 0.3.x core tests (#1692) --- .../tests/__snapshots__/test_pregel.ambr | 241 +++++++----------- 1 file changed, 86 insertions(+), 155 deletions(-) diff --git a/libs/langgraph/tests/__snapshots__/test_pregel.ambr b/libs/langgraph/tests/__snapshots__/test_pregel.ambr index b2da32b65..9354409a7 100644 --- a/libs/langgraph/tests/__snapshots__/test_pregel.ambr +++ b/libs/langgraph/tests/__snapshots__/test_pregel.ambr @@ -268,8 +268,8 @@ ''' graph TD; right --> __end__; - __start__ -.  go-left  .-> left; - __start__ -.  go-right  .-> right; + __start__ -.  go-left  .-> left; + __start__ -.  go-right  .-> right; left -.-> __end__; ''' @@ -351,8 +351,8 @@ ''' graph TD; right --> __end__; - __start__ -.  go-left  .-> left; - __start__ -.  go-right  .-> right; + __start__ -.  go-left  .-> left; + __start__ -.  go-right  .-> right; left -.-> __end__; ''' @@ -419,75 +419,6 @@ ''' # --- -# name: test_conditional_graph - ''' - { - "nodes": [ - { - "id": "__start__", - "type": "schema", - "data": "__start__" - }, - { - "id": "agent", - "type": "runnable", - "data": { - "id": [ - "langchain", - "schema", - "runnable", - "RunnableAssign" - ], - "name": "agent" - } - }, - { - "id": "tools", - "type": "runnable", - "data": { - "id": [ - "langgraph", - "utils", - "RunnableCallable" - ], - "name": "tools" - }, - "metadata": { - "version": 2, - "variant": "b" - } - }, - { - "id": "__end__", - "type": "schema", - "data": "__end__" - } - ], - "edges": [ - { - "source": "__start__", - "target": "agent" - }, - { - "source": "tools", - "target": "agent" - }, - { - "source": "agent", - "target": "tools", - "data": "continue", - "conditional": true - }, - { - "source": "agent", - "target": "__end__", - "data": "exit", - "conditional": true - } - ] - } - ''' -# --- # name: test_conditional_graph.1 ''' graph TD; @@ -840,8 +771,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -849,16 +780,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -1020,8 +951,8 @@ Passthrough --> Parallel_agent_outcome_Output; __start__ --> Parallel_agent_outcome_Input; tools --> Parallel_agent_outcome_Input; - Parallel_agent_outcome_Output -.  continue  .-> tools; - Parallel_agent_outcome_Output -.  exit  .-> __end__; + Parallel_agent_outcome_Output -.  continue  .-> tools; + Parallel_agent_outcome_Output -.  exit  .-> __end__; ''' # --- @@ -1102,16 +1033,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent
__interrupt = after) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -1194,8 +1125,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -1203,16 +1134,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -1374,8 +1305,8 @@ Passthrough --> Parallel_agent_outcome_Output; __start__ --> Parallel_agent_outcome_Input; tools --> Parallel_agent_outcome_Input; - Parallel_agent_outcome_Output -.  continue  .-> tools; - Parallel_agent_outcome_Output -.  exit  .-> __end__; + Parallel_agent_outcome_Output -.  continue  .-> tools; + Parallel_agent_outcome_Output -.  exit  .-> __end__; ''' # --- @@ -1456,16 +1387,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent
__interrupt = after) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -1548,8 +1479,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -1557,16 +1488,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -1728,8 +1659,8 @@ Passthrough --> Parallel_agent_outcome_Output; __start__ --> Parallel_agent_outcome_Input; tools --> Parallel_agent_outcome_Input; - Parallel_agent_outcome_Output -.  continue  .-> tools; - Parallel_agent_outcome_Output -.  exit  .-> __end__; + Parallel_agent_outcome_Output -.  continue  .-> tools; + Parallel_agent_outcome_Output -.  exit  .-> __end__; ''' # --- @@ -1810,16 +1741,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent
__interrupt = after) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -1902,8 +1833,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -1911,16 +1842,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -2082,8 +2013,8 @@ Passthrough --> Parallel_agent_outcome_Output; __start__ --> Parallel_agent_outcome_Input; tools --> Parallel_agent_outcome_Input; - Parallel_agent_outcome_Output -.  continue  .-> tools; - Parallel_agent_outcome_Output -.  exit  .-> __end__; + Parallel_agent_outcome_Output -.  continue  .-> tools; + Parallel_agent_outcome_Output -.  exit  .-> __end__; ''' # --- @@ -2164,16 +2095,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent
__interrupt = after) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -2256,8 +2187,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -2265,16 +2196,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -2436,8 +2367,8 @@ Passthrough --> Parallel_agent_outcome_Output; __start__ --> Parallel_agent_outcome_Input; tools --> Parallel_agent_outcome_Input; - Parallel_agent_outcome_Output -.  continue  .-> tools; - Parallel_agent_outcome_Output -.  exit  .-> __end__; + Parallel_agent_outcome_Output -.  continue  .-> tools; + Parallel_agent_outcome_Output -.  exit  .-> __end__; ''' # --- @@ -2518,16 +2449,16 @@ ''' %%{init: {'flowchart': {'curve': 'linear'}}}%% graph TD; - __start__([__start__]):::first + __start__([

__start__

]):::first agent(agent
__interrupt = after) tools(tools
parents = {} version = 2 variant = b) - __end__([__end__]):::last + __end__([

__end__

]):::last __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; classDef default fill:#f2f0ff,line-height:1.2 classDef first fill-opacity:0 classDef last fill:#bfb6fc @@ -2689,8 +2620,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -2771,8 +2702,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -2853,8 +2784,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -2935,8 +2866,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -3017,8 +2948,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  exit  .-> __end__; + agent -.  continue  .-> tools; + agent -.  exit  .-> __end__; ''' # --- @@ -4275,8 +4206,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  end  .-> __end__; + agent -.  continue  .-> tools; + agent -.  end  .-> __end__; ''' # --- @@ -4356,8 +4287,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  end  .-> __end__; + agent -.  continue  .-> tools; + agent -.  end  .-> __end__; ''' # --- @@ -4437,8 +4368,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  end  .-> __end__; + agent -.  continue  .-> tools; + agent -.  end  .-> __end__; ''' # --- @@ -4518,8 +4449,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  end  .-> __end__; + agent -.  continue  .-> tools; + agent -.  end  .-> __end__; ''' # --- @@ -4599,8 +4530,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  end  .-> __end__; + agent -.  continue  .-> tools; + agent -.  end  .-> __end__; ''' # --- @@ -4944,8 +4875,8 @@ graph TD; __start__ --> agent; tools --> agent; - agent -.  continue  .-> tools; - agent -.  end  .-> __end__; + agent -.  continue  .-> tools; + agent -.  end  .-> __end__; ''' # ---