mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 23:22:27 +02:00
add missing thread config
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user