diff --git a/docs/docs/concepts/human_in_the_loop.md b/docs/docs/concepts/human_in_the_loop.md index a0639be99..14e80be02 100644 --- a/docs/docs/concepts/human_in_the_loop.md +++ b/docs/docs/concepts/human_in_the_loop.md @@ -64,6 +64,7 @@ graph.invoke(Command(resume=value_from_human), config=thread_config) ```python from typing import TypedDict + import uuid from langgraph.checkpoint.memory import MemorySaver from langgraph.constants import START @@ -100,6 +101,8 @@ graph.invoke(Command(resume=value_from_human), config=thread_config) checkpointer=checkpointer ) + # Pass a thread ID to the graph to run it. + thread_config = {"configurable": {"thread_id": uuid.uuid4()}} # Using stream() to directly surface the `__interrupt__` information. for chunk in graph.stream({"some_text": "Original text"}, config=thread_config):