Complete the code to import the Graph class from LangChain.
from langchain.graphs import [1]
The Graph class is used to create multi-agent graphs in LangChain.
Complete the code to create a new Graph instance named 'my_graph'.
my_graph = [1]()To create a multi-agent graph, instantiate the Graph class.
Fix the error in adding an agent to the graph by completing the method call.
my_graph.[1](agent)The correct method to add an agent to a multi-agent graph is add_agent.
Fill both blanks to create an edge between two agents named 'agent1' and 'agent2'.
my_graph.[1](agent1, agent2) my_graph.[2](agent2, agent1)
The method add_edge is used to create connections (edges) between agents in the graph.
Fill all three blanks to create a dictionary comprehension that maps agent names to their status if active.
status_map = {agent.[1]: agent.[2] for agent in my_graph.agents if agent.[3]This comprehension creates a dictionary where keys are agent names and values are their status, but only for active agents.