Skip to content

Commit

Permalink
add missing thread config
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Dec 13, 2024
1 parent da0aac7 commit 26e9749
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/concepts/human_in_the_loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 26e9749

Please sign in to comment.