Skip to content

Conversation

limingzhong61
Copy link

@limingzhong61 limingzhong61 commented Oct 10, 2025

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)

docs: fixing human_in_the_loop demo code
Copy link

vercel bot commented Oct 10, 2025

@limingzhong61 is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant