AI Hints
Home›LangGraph Tutorial›Parallel Branches and Schemas
LangGraph · Lesson 24 of 120

Branching Quiz

Test yourself.

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

Let's check what you've learned about branches, loops, and reducers. Pause after each question, and answer before I do.

Branching Quiz
From the video: Branching Quiz
  • Branching quiz
  • Pause and think
  • Then check

Question 1

What does a routing function return? The name, or label, of the next node.

Quick check
A routing function returns:

Question 2

What stops a buggy loop that never ends? The recursion limit.

Quick check
Stops endless loops:

Question 3

How do you make updates append to a list? Annotate it with operator add.

Quick check
Append, don't replace:

Question 4

Two parallel nodes write the same key. What does it need? A reducer.

Quick check
Parallel writes to one key:

Summary

Well done. Next, a new section. Putting a language model inside a node.

Key takeaways
  • Route by name
  • recursion_limit
  • Reducers
Next up: Models in Nodes — calling an LLM