Skip to content

Commit 4ab612d

Browse files
lnhsinghkatmayb
andauthored
test magic links (#92)
Co-authored-by: Kathryn May <[email protected]>
1 parent fbe2f9f commit 4ab612d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/langgraph-platform/human-in-the-loop-time-travel.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ LangGraph provides the [**time travel**](https://langchain-ai.github.io/langgrap
77

88
To time travel using the LangGraph Server API (via the LangGraph SDK):
99

10-
1. **Run the graph** with initial inputs using [LangGraph SDK](/langgraph-platform/python-sdk)'s [`client.runs.wait`][langgraph_sdk.client.RunsClient.wait] or [`client.runs.stream`][langgraph_sdk.client.RunsClient.stream] APIs.
11-
2. **Identify a checkpoint in an existing thread**: Use [`client.threads.get_history`][langgraph_sdk.client.ThreadsClient.get_history] method to retrieve the execution history for a specific `thread_id` and locate the desired `checkpoint_id`.
10+
1. **Run the graph** with initial inputs using [LangGraph SDK](/langgraph-platform/python-sdk)'s @[client.runs.wait] or @[client.runs.stream] APIs.
11+
2. **Identify a checkpoint in an existing thread**: Use @[client.threads.get_history] method to retrieve the execution history for a specific `thread_id` and locate the desired `checkpoint_id`.
1212
Alternatively, set a [breakpoint](https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/add-human-in-the-loop/) before the node(s) where you want execution to pause. You can then find the most recent checkpoint recorded up to that breakpoint.
13-
3. **(Optional) modify the graph state**: Use the [`client.threads.update_state`][langgraph_sdk.client.ThreadsClient.update_state] method to modify the graph’s state at the checkpoint and resume execution from alternative state.
14-
4. **Resume execution from the checkpoint**: Use the [`client.runs.wait`][langgraph_sdk.client.RunsClient.wait] or [`client.runs.stream`][langgraph_sdk.client.RunsClient.stream] APIs with an input of `None` and the appropriate `thread_id` and `checkpoint_id`.
13+
3. **(Optional) modify the graph state**: Use the @[client.threads.update_state] method to modify the graph’s state at the checkpoint and resume execution from alternative state.
14+
4. **Resume execution from the checkpoint**: Use the @[client.runs.wait] or @[client.runs.stream] APIs with an input of `None` and the appropriate `thread_id` and `checkpoint_id`.
1515

1616
## Use time travel in a workflow
1717

src/langgraph-platform/setup-app-requirements-txt.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ my-app/
101101

102102
## Define Graphs
103103

104-
Implement your graphs! Graphs can be defined in a single file or multiple files. Make note of the variable names of each [CompiledStateGraph][langgraph.graph.state.CompiledStateGraph] to be included in the LangGraph application. The variable names will be used later when creating the [LangGraph configuration file](/langgraph-platform/cli#configuration-file).
104+
Implement your graphs! Graphs can be defined in a single file or multiple files. Make note of the variable names of each @[CompiledStateGraph] to be included in the LangGraph application. The variable names will be used later when creating the [LangGraph configuration file](/langgraph-platform/cli#configuration-file).
105105

106106
Example `agent.py` file, which shows how to import from other modules you define (code for the modules is not shown here, please see [this repository](https://github.com/langchain-ai/langgraph-example) to see their implementation):
107107

src/langgraph-platform/setup-pyproject.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ my-app/
114114

115115
## Define Graphs
116116

117-
Implement your graphs! Graphs can be defined in a single file or multiple files. Make note of the variable names of each [CompiledStateGraph][langgraph.graph.state.CompiledStateGraph] to be included in the LangGraph application. The variable names will be used later when creating the [LangGraph configuration file](/langgraph-platform/cli#configuration-file).
117+
Implement your graphs! Graphs can be defined in a single file or multiple files. Make note of the variable names of each @[CompiledStateGraph] to be included in the LangGraph application. The variable names will be used later when creating the [LangGraph configuration file](/langgraph-platform/cli#configuration-file).
118118

119119
Example `agent.py` file, which shows how to import from other modules you define (code for the modules is not shown here, please see [this repository](https://github.com/langchain-ai/langgraph-example-pyproject) to see their implementation):
120120

0 commit comments

Comments
 (0)