Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda committed Dec 11, 2024
1 parent 37436c5 commit 0ad4701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/concepts/breakpoints.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Breakpoints

Check notice on line 1 in docs/docs/concepts/breakpoints.md

View workflow job for this annotation

GitHub Actions / benchmark

Benchmark results

......................................... fanout_to_subgraph_10x: Mean +- std dev: 61.1 ms +- 1.3 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 52.2 ms +- 1.2 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 74.9 ms +- 1.2 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 94.6 ms +- 0.8 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 641 ms +- 34 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 515 ms +- 12 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 830 ms +- 54 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 948 ms +- 18 ms ......................................... react_agent_10x: Mean +- std dev: 30.8 ms +- 0.6 ms ......................................... react_agent_10x_sync: Mean +- std dev: 22.7 ms +- 0.2 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 38.4 ms +- 0.6 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 37.2 ms +- 0.5 ms ......................................... react_agent_100x: Mean +- std dev: 342 ms +- 7 ms ......................................... react_agent_100x_sync: Mean +- std dev: 275 ms +- 3 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 861 ms +- 18 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 852 ms +- 18 ms ......................................... wide_state_25x300: Mean +- std dev: 23.1 ms +- 0.4 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 14.8 ms +- 0.1 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 286 ms +- 15 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 276 ms +- 15 ms ......................................... wide_state_15x600: Mean +- std dev: 26.9 ms +- 0.6 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 17.2 ms +- 0.1 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 486 ms +- 13 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 475 ms +- 14 ms ......................................... wide_state_9x1200: Mean +- std dev: 26.9 ms +- 0.6 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.3 ms +- 0.1 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 318 ms +- 14 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 306 ms +- 14 ms

Check notice on line 1 in docs/docs/concepts/breakpoints.md

View workflow job for this annotation

GitHub Actions / benchmark

Comparison against main

+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | fanout_to_subgraph_100x | 689 ms | 641 ms: 1.07x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 100 ms | 94.6 ms: 1.06x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 509 ms | 486 ms: 1.05x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 900 ms | 861 ms: 1.05x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 890 ms | 852 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 989 ms | 948 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 332 ms | 318 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint_sync | 319 ms | 306 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint | 297 ms | 286 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x | 31.9 ms | 30.8 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 23.6 ms | 22.7 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 38.5 ms | 37.2 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 490 ms | 475 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 285 ms | 276 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 282 ms | 275 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 529 ms | 515 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600 | 27.6 ms | 26.9 ms: 1.03x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x | 349 ms | 342 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 17.6 ms | 17.2 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 76.3 ms | 74.9 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 17.6 ms | 17.3 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200 | 27.4 ms | 26.9 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_sync | 15.1 ms | 14.8 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint | 39.0 ms | 38.4 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x | 62.0 ms | 61.1 ms: 1.01x faster | +---------------------------------------

Breakpoints pause graph execution at specific points and enable stepping through execution step by step. Breakpoints are powered by LangGraph's [**persistence layer**](./persistence.md), which saves the state after each graph step. Breakpoints can also be used to enable [**human-in-the-loop**](./human_in_the_loop.md) workflows, though we recommend using the [`interrupt` function](#the-interrupt-function) for this purpose.
Breakpoints pause graph execution at specific points and enable stepping through execution step by step. Breakpoints are powered by LangGraph's [**persistence layer**](./persistence.md), which saves the state after each graph step. Breakpoints can also be used to enable [**human-in-the-loop**](./human_in_the_loop.md) workflows, though we recommend using the [`interrupt` function](./human_in_the_loop.md#interrupt) for this purpose.

## Requirements

Expand All @@ -9,7 +9,7 @@ To use breakpoints, you will need to:
1. [**Specify a checkpointer**](persistence.md#checkpoints) to save the graph state after each step.
2. [**Set breakpoints**](#setting-breakpoints) to specify where execution should pause.
3. **Run the graph** with a [**thread ID**](./persistence.md#threads) to pause execution at the breakpoint.
4. **Resume execution** using `invoke`/`ainvoke`/`stream`/`astream` (see [**The `Command` primitive**](#the-command-primitive)).
4. **Resume execution** using `invoke`/`ainvoke`/`stream`/`astream` (see [**The `Command` primitive**](./human_in_the_loop.md#the-command-primitive)).

## Setting breakpoints

Expand Down

0 comments on commit 0ad4701

Please sign in to comment.