langgraph: allow tools to return Command in tool node #1195
Annotations
1 warning and 2 notices
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Annotation:
libs/langgraph/langgraph/prebuilt/tool_node.py#L1
.........................................
fanout_to_subgraph_10x: Mean +- std dev: 62.1 ms +- 1.5 ms
.........................................
fanout_to_subgraph_10x_sync: Mean +- std dev: 52.5 ms +- 0.7 ms
.........................................
fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 93.7 ms +- 7.1 ms
.........................................
fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 95.0 ms +- 1.5 ms
.........................................
fanout_to_subgraph_100x: Mean +- std dev: 632 ms +- 20 ms
.........................................
fanout_to_subgraph_100x_sync: Mean +- std dev: 514 ms +- 9 ms
.........................................
fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 960 ms +- 45 ms
.........................................
fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 948 ms +- 18 ms
.........................................
react_agent_10x: Mean +- std dev: 31.0 ms +- 0.6 ms
.........................................
react_agent_10x_sync: Mean +- std dev: 22.9 ms +- 0.4 ms
.........................................
react_agent_10x_checkpoint: Mean +- std dev: 46.9 ms +- 0.8 ms
.........................................
react_agent_10x_checkpoint_sync: Mean +- std dev: 36.9 ms +- 0.4 ms
.........................................
react_agent_100x: Mean +- std dev: 346 ms +- 7 ms
.........................................
react_agent_100x_sync: Mean +- std dev: 275 ms +- 3 ms
.........................................
react_agent_100x_checkpoint: Mean +- std dev: 935 ms +- 10 ms
.........................................
react_agent_100x_checkpoint_sync: Mean +- std dev: 833 ms +- 10 ms
.........................................
wide_state_25x300: Mean +- std dev: 23.6 ms +- 0.4 ms
.........................................
wide_state_25x300_sync: Mean +- std dev: 14.9 ms +- 0.1 ms
.........................................
wide_state_25x300_checkpoint: Mean +- std dev: 286 ms +- 13 ms
.........................................
wide_state_25x300_checkpoint_sync: Mean +- std dev: 273 ms +- 14 ms
.........................................
wide_state_15x600: Mean +- std dev: 27.6 ms +- 0.6 ms
.........................................
wide_state_15x600_sync: Mean +- std dev: 17.4 ms +- 0.2 ms
.........................................
wide_state_15x600_checkpoint: Mean +- std dev: 486 ms +- 14 ms
.........................................
wide_state_15x600_checkpoint_sync: Mean +- std dev: 472 ms +- 13 ms
.........................................
wide_state_9x1200: Mean +- std dev: 27.6 ms +- 0.5 ms
.........................................
wide_state_9x1200_sync: Mean +- std dev: 17.3 ms +- 0.1 ms
.........................................
wide_state_9x1200_checkpoint: Mean +- std dev: 320 ms +- 15 ms
.........................................
wide_state_9x1200_checkpoint_sync: Mean +- std dev: 306 ms +- 13 ms
|
Annotation:
libs/langgraph/langgraph/prebuilt/tool_node.py#L1
+----------------------------------------+---------+-----------------------+
| Benchmark | main | changes |
+========================================+=========+=======================+
| wide_state_9x1200_sync | 17.3 ms | 17.3 ms: 1.00x slower |
+----------------------------------------+---------+-----------------------+
| wide_state_25x300_sync | 14.9 ms | 14.9 ms: 1.00x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_sync | 511 ms | 514 ms: 1.00x slower |
+----------------------------------------+---------+-----------------------+
| wide_state_9x1200 | 27.4 ms | 27.6 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| wide_state_15x600_sync | 17.3 ms | 17.4 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint_sync | 828 ms | 833 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x | 61.7 ms | 62.1 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_checkpoint_sync | 94.4 ms | 95.0 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_10x | 30.8 ms | 31.0 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_checkpoint | 927 ms | 935 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_10x_sync | 52.0 ms | 52.5 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_100x_sync | 272 ms | 275 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_10x_sync | 22.6 ms | 22.9 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| react_agent_10x_checkpoint_sync | 36.4 ms | 36.9 ms: 1.01x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x_checkpoint | 942 ms | 960 ms: 1.02x slower |
+----------------------------------------+---------+-----------------------+
| fanout_to_subgraph_100x | 615 ms | 632 ms: 1.03x slower |
+----------------------------------------+---------+-----------------------+
| Geometric mean | (ref) | 1.01x slower |
+----------------------------------------+---------+-----------------------+
Benchmark hidden because not significant (12): wide_state_25x300_checkpoint_sync, wide_state_15x600_checkpoint_sync, wide_state_25x300_checkpoint, wide_state_9x1200_checkpoint_sync, wide_state_15x600_checkpoint, wide_state_9x1200_checkpoint, wide_state_25x300, react_agent_10x_checkpoint, fanout_to_subgraph_10x_checkpoint, react_agent_100x, wide_state_15x600, fanout_to_subgraph_100x_checkpoint_sync
|
Loading