Skip to content

fix example in docs of state_schema in create_react_agent #1282

fix example in docs of state_schema in create_react_agent

fix example in docs of state_schema in create_react_agent #1282

Re-run triggered December 18, 2024 15:37
Status Success
Total duration 51m 16s
Artifacts

bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 warning and 2 notices
benchmark
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Benchmark results: libs/langgraph/langgraph/prebuilt/chat_agent_executor.py#L1
......................................... fanout_to_subgraph_10x: Mean +- std dev: 61.4 ms +- 1.2 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 52.9 ms +- 0.8 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 76.2 ms +- 1.6 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 98.3 ms +- 2.1 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 639 ms +- 38 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 513 ms +- 6 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 802 ms +- 33 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 988 ms +- 26 ms ......................................... react_agent_10x: Mean +- std dev: 31.5 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 23.4 ms +- 0.6 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 38.2 ms +- 0.6 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 37.4 ms +- 0.7 ms ......................................... react_agent_100x: Mean +- std dev: 342 ms +- 6 ms ......................................... react_agent_100x_sync: Mean +- std dev: 279 ms +- 3 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 911 ms +- 37 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 943 ms +- 45 ms ......................................... wide_state_25x300: Mean +- std dev: 23.0 ms +- 0.6 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 14.9 ms +- 0.2 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 283 ms +- 16 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 292 ms +- 20 ms ......................................... wide_state_15x600: Mean +- std dev: 27.3 ms +- 0.7 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 17.6 ms +- 0.3 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 490 ms +- 21 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 504 ms +- 25 ms ......................................... wide_state_9x1200: Mean +- std dev: 27.0 ms +- 0.7 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.9 ms +- 0.4 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 321 ms +- 21 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 327 ms +- 21 ms
Comparison against main: libs/langgraph/langgraph/prebuilt/chat_agent_executor.py#L1
+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | react_agent_100x | 339 ms | 342 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 509 ms | 513 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 14.8 ms | 14.9 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 22.8 ms | 23.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 37.7 ms | 38.2 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 26.7 ms | 27.0 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 52.1 ms | 52.9 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 60.6 ms | 61.4 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 36.9 ms | 37.4 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 274 ms | 279 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 26.8 ms | 27.3 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 276 ms | 283 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 17.2 ms | 17.6 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.8 ms | 23.4 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 30.6 ms | 31.5 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 74.0 ms | 76.2 ms: 1.03x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 94.5 ms | 98.3 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 472 ms | 490 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 308 ms | 321 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 17.2 ms | 17.9 ms: 1.04x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 944 ms | 988 ms: 1.05x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 610 ms | 639 ms: 1.05x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 274 ms | 292 ms: 1.06x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 473 ms | 504 ms: 1.07x slower | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 306 ms | 327 ms: 1.07x slower | +---------------------------------------