Complete the code to import the HumanLoop class from langgraph.
from langgraph import [1]
The HumanLoop class is imported from langgraph to create human-in-the-loop workflows.
Complete the code to create a HumanLoop instance with the name 'review_loop'.
loop = HumanLoop(name=[1])The HumanLoop instance is named 'review_loop' to identify the human review step.
Fix the error in the code to add a human review step to the LangGraph chain.
chain.add_step([1])The add_step method requires an instance of HumanLoop with the name parameter specified.
Fill both blanks to define a LangGraph chain with a human-in-the-loop review step and run it with input 'data'.
chain = LangGraph().add_step([1]) result = chain.[2](input_data='data')
The chain adds a HumanLoop step named 'review_loop' and runs with the run method.
Fill all three blanks to create a LangGraph chain with a human loop, set a prompt, and run it with user input.
loop = HumanLoop(name=[1]) chain = LangGraph().add_step(loop).set_prompt([2]) output = chain.[3](input_data='user input')
The human loop is named 'human_review', the prompt is set to 'Please review the output:', and the chain is run with the run method.