mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 17:57:49 +02:00
Harrison/human in the loop (#776)
* add human in the loop examples * cr * cr * cr * cr * cr * cr * cr
This commit is contained in:
@@ -16,9 +16,7 @@ _MANUAL = {
|
||||
"async.ipynb",
|
||||
"streaming-tokens.ipynb",
|
||||
"streaming-content.ipynb",
|
||||
"human-in-the-loop.ipynb",
|
||||
"persistence.ipynb",
|
||||
"time-travel.ipynb",
|
||||
"visualization.ipynb",
|
||||
"state-model.ipynb",
|
||||
"subgraph.ipynb",
|
||||
@@ -35,6 +33,10 @@ _MANUAL = {
|
||||
"create-react-agent-system-prompt.ipynb",
|
||||
"create-react-agent-memory.ipynb",
|
||||
"create-react-agent-hitl.ipynb",
|
||||
"human_in_the_loop/breakpoints.ipynb",
|
||||
"human_in_the_loop/time-travel.ipynb",
|
||||
"human_in_the_loop/edit-graph-state.ipynb",
|
||||
"human_in_the_loop/wait-user-input.ipynb",
|
||||
],
|
||||
"tutorials": [
|
||||
"introduction.ipynb",
|
||||
|
||||
@@ -269,6 +269,11 @@ When you use a checkpointer with a graph, you can interact with the state of tha
|
||||
This usually done when enabling different human-in-the-loop interaction patterns.
|
||||
When interacting with the checkpointer state, you must specify [thread identifiers](#threads)
|
||||
|
||||
Each checkpoint has two properties:
|
||||
|
||||
-**values**: This is the value of the state at this point in time.
|
||||
-**next**: This is a tuple of the nodes to execute next in the graph.
|
||||
|
||||
### Get state
|
||||
|
||||
You can get the state of a checkpointer by calling `graph.get_state(config)`. The config should contain `thread_id`, and the state will be fetched for that thread.
|
||||
|
||||
@@ -22,8 +22,10 @@ One of LangGraph's main benefits is that it makes human-in-the-loop workflows ea
|
||||
These guides cover common examples of that.
|
||||
|
||||
- [How to add persistence ("memory") to your graph](persistence.ipynb)
|
||||
- [How to view and update graph state](time-travel.ipynb)
|
||||
- [How to add human-in-the-loop](human-in-the-loop.ipynb)
|
||||
- [How to add breakpoints](human_in_the_loop/breakpoints.ipynb)
|
||||
- [How to edit graph state](human_in_the_loop/edit-graph-state.ipynb)
|
||||
- [How to wait for user input](human_in_the_loop/wait-user-input.ipynb)
|
||||
- [How to view and update past graph state](human_in_the_loop/time-travel.ipynb)
|
||||
|
||||
## Streaming
|
||||
|
||||
|
||||
+4
-2
@@ -140,8 +140,10 @@ nav:
|
||||
- Create map-reduce branches for parallel execution: how-tos/map-reduce.ipynb
|
||||
- Human-in-the-loop:
|
||||
- Add persistence ("memory"): how-tos/persistence.ipynb
|
||||
- View and update graph state: how-tos/time-travel.ipynb
|
||||
- Add human-in-the-loop: how-tos/human-in-the-loop.ipynb
|
||||
- Add breakpoints: how-tos/human_in_the_loop/breakpoints.ipynb
|
||||
- Wait for user input: how-tos/human_in_the_loop/wait-user-input.ipynb
|
||||
- View and update past graph state: how-tos/human_in_the_loop/time-travel.ipynb
|
||||
- Edit graph state: how-tos/human_in_the_loop/edit-graph-state.ipynb
|
||||
- Streaming:
|
||||
- Stream LLM tokens: how-tos/streaming-tokens.ipynb
|
||||
- Stream Arbitrarily Nested Content: how-tos/streaming-content.ipynb
|
||||
|
||||
Reference in New Issue
Block a user