Skip to content

Commit

Permalink
docs: fix typo in example
Browse files Browse the repository at this point in the history
Fix typo in thread config
  • Loading branch information
eyurtsev authored Dec 13, 2024
2 parents 4c3958f + 26e9749 commit 89eb938
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 89eb938

Please sign in to comment.