[PR #6262] docs(langgraph): fixing human_in_the_loop demo code #4940

Closed
opened 2026-02-20 17:50:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6262

State: closed
Merged: No


docs(langgraph): fixing human_in_the_loop demo code

  • Description: In the demo code,term 'config' is undefined. Based on the context, the correct term here should be 'thread' in code : print(graph.get_state(config))
# Thread
thread = {"configurable": {"thread_id": "1"}}

# Run the graph until the first interruption
for event in graph.stream(initial_input, thread, stream_mode="values"):
    print(event)

# This will run until the breakpoint
# You can get the state of the graph at this point
print(graph.get_state(config))

# You can continue the graph execution by passing in `None` for the input
for event in graph.stream(None, thread, stream_mode="values"):
    print(event)
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6262 **State:** closed **Merged:** No --- docs(langgraph): fixing human_in_the_loop demo code - **Description:** In the demo code,term 'config' is undefined. Based on the context, the correct term here should be 'thread' in code : `print(graph.get_state(config))` ```python # Thread thread = {"configurable": {"thread_id": "1"}} # Run the graph until the first interruption for event in graph.stream(initial_input, thread, stream_mode="values"): print(event) # This will run until the breakpoint # You can get the state of the graph at this point print(graph.get_state(config)) # You can continue the graph execution by passing in `None` for the input for event in graph.stream(None, thread, stream_mode="values"): print(event) ```
yindo added the pull-request label 2026-02-20 17:50:59 -05:00
yindo closed this issue 2026-02-20 17:50:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4940