AI Hints
Home›LangGraph Tutorial›Subgraphs
LangGraph · Lesson 61 of 120

Human-in-the-Loop Quiz

Test yourself.

⏱ 2 min read▶ Video at 1:04:35🎓 Free
Watch this lesson in the LangGraph courseWatch on YouTube ↗Full LangGraph course

Let's check the human in the loop section. Pause after each question, and answer before I do.

Human-in-the-Loop Quiz
From the video: Human-in-the-Loop Quiz
  • HITL quiz
  • Pause and think
  • Then check

Question 1

Which function pauses a graph inside a node? Interrupt.

Quick check
Pauses a graph:

Question 2

What must a graph have, for interrupts to work? A checkpointer.

Quick check
Interrupts need:

Question 3

How do you continue with the reviewer's decision? Invoke a command with resume, on the same thread.

Quick check
Continue with a decision:

Question 4

When a paused node resumes, where does it restart? From the beginning of the node.

Quick check
A resumed node restarts:

Summary

Well done. Next, building graphs out of smaller graphs, with subgraphs.

Key takeaways
  • interrupt
  • Checkpointer
  • Command(resume)
Next up: Subgraphs — graphs inside graphs