[rfc] langgraph: allow tools / ToolNode to modify state #736
Annotations
1 warning and 2 notices
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Annotation:
libs/langgraph/langgraph/prebuilt/tool_node.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 57.4 ms +- 1.5 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 49.0 ms +- 0.8 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 82.4 ms +- 1.6 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 90.8 ms +- 1.2 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 565 ms +- 15 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 480 ms +- 6 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 867 ms +- 36 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 886 ms +- 17 ms
.........................................
react_agent_10x: Mean +- std dev: 30.3 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.2 ms +- 0.3 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 46.7 ms +- 1.0 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.4 ms +- 0.6 ms
.........................................
react_agent_100x: Mean +- std dev: 337 ms +- 6 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 270 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 932 ms +- 14 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 836 ms +- 12 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.0 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 14.7 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 278 ms +- 4 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 266 ms +- 4 ms
.........................................
wide_state_15x600: Mean +- std dev: 26.7 ms +- 0.4 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 16.9 ms +- 0.1 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 479 ms +- 5 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 467 ms +- 16 ms
.........................................
wide_state_9x1200: Mean +- std dev: 26.7 ms +- 0.6 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.0 ms +- 0.2 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 312 ms +- 7 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 299 ms +- 4 ms
|
Annotation:
libs/langgraph/langgraph/prebuilt/tool_node.py#L1
+-----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+=========================================+=========+=======================+
| fanout_to_subgraph_100x_checkpoint | 908 ms | 867 ms: 1.05x faster |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint_sync | 898 ms | 886 ms: 1.01x faster |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 937 ms | 932 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600 | 26.8 ms | 26.7 ms: 1.00x faster |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 16.9 ms | 16.9 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_15x600_checkpoint | 477 ms | 479 ms: 1.00x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_sync | 16.9 ms | 17.0 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_25x300_checkpoint_sync | 264 ms | 266 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 48.7 ms | 49.0 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 831 ms | 836 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_100x_sync | 268 ms | 270 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint | 46.4 ms | 46.7 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| wide_state_9x1200_checkpoint_sync | 297 ms | 299 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 89.8 ms | 90.8 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 36.0 ms | 36.4 ms: 1.01x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 472 ms | 480 ms: 1.02x slower |
+-----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 529 ms | 565 ms: 1.07x slower |
+-----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.00x slower |
+-----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (11): fanout_to_subgraph_10x, wide_state_25x300, fanout_to_subgraph_10x_checkpoint, wide_state_9x1200, wide_state_25x300_checkpoint, wide_state_9x1200_checkpoint, wide_state_25x300_sync, react_agent_10x, react_agent_100x, react_agent_10x_sync, wide_state_15x600_checkpoint_sync
|
Loading