From 38ee6c0ef4ed28007f12087a3c3e2e7069aca1aa Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Fri, 20 Dec 2024 09:53:58 -0500 Subject: [PATCH] fix(docs): Update how to index HITL (#752) --- docs/docs/how-tos/index.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/docs/docs/how-tos/index.md b/docs/docs/how-tos/index.md index f0c3814d..5d996c79 100644 --- a/docs/docs/how-tos/index.md +++ b/docs/docs/how-tos/index.md @@ -44,17 +44,27 @@ LangGraph makes it easy to manage conversation [memory](../concepts/memory.md) i - [How to add long-term memory (cross-thread)](cross-thread-persistence.ipynb) - [How to use semantic search for long-term memory](semantic-search.ipynb) -### Human-in-the-loop +[Human-in-the-loop](/langgraphjs/concepts/human_in_the_loop) functionality allows +you to involve humans in the decision-making process of your graph. These how-to guides show how to implement human-in-the-loop workflows in your graph. + + +Key workflows: + +- [How to wait for user input](wait-user-input.ipynb): A basic example that shows how to implement a human-in-the-loop workflow in your graph using the `interrupt` function. +- [How to review tool calls](review-tool-calls.ipynb): Incorporate human-in-the-loop for reviewing/editing/accepting tool call requests before they executed using the `interrupt` function. + + +Other methods: + +- [How to add static breakpoints](breakpoints.ipynb): Use for debugging purposes. For [**human-in-the-loop**](/langgraphjs/concepts/human_in_the_loop) workflows, we recommend the [`interrupt` function](/langgraphjs/reference/functions/langgraph.interrupt-1.html) instead. +- [How to edit graph state](edit-graph-state.ipynb): Edit graph state using `graph.update_state` method. Use this if implementing a **human-in-the-loop** workflow via **static breakpoints**. +- [How to add dynamic breakpoints with `NodeInterrupt`](dynamic_breakpoints.ipynb): **Not recommended**: Use the [`interrupt` function](/langgraphjs/concepts/human_in_the_loop) instead. + +### Time Travel -One of LangGraph.js's main benefits is that it makes human-in-the-loop workflows easy. -These guides cover common examples of that. +[Time travel](../concepts/time-travel.md) allows you to replay past actions in your LangGraph application to explore alternative paths and debug issues. These how-to guides show how to use time travel in your graph. -- [How to add breakpoints](breakpoints.ipynb) -- [How to add dynamic breakpoints](dynamic_breakpoints.ipynb) -- [How to edit graph state](edit-graph-state.ipynb) -- [How to wait for user input](wait-user-input.ipynb) - [How to view and update past graph state](time-travel.ipynb) -- [How to review tool calls](review-tool-calls.ipynb) ### Streaming