Bird
0
0

Which of the following is the correct way to add a human feedback node in a LangGraph flow?

easy📝 Syntax Q12 of 15
LangChain - LangGraph for Stateful Agents
Which of the following is the correct way to add a human feedback node in a LangGraph flow?
Aflow.create_human('review')
Bflow.add_human('review')
Cflow.add_node(HumanNode(name='review'))
Dflow.insert_human_node('review')
Step-by-Step Solution
Solution:
  1. Step 1: Recall LangGraph syntax for adding nodes

    LangGraph uses flow.add_node() method to add nodes, including human nodes.
  2. Step 2: Identify correct human node creation

    HumanNode is the class representing human feedback nodes, so flow.add_node(HumanNode(name='review')) is correct.
  3. Final Answer:

    flow.add_node(HumanNode(name='review')) -> Option C
  4. Quick Check:

    Use add_node with HumanNode class [OK]
Quick Trick: Use add_node with HumanNode to add human steps [OK]
Common Mistakes:
MISTAKES
  • Using non-existent methods like add_human or insert_human_node
  • Forgetting to instantiate HumanNode class
  • Passing string directly without node wrapper

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LangChain Quizzes