Bird
0
0

You want to build a workflow where AgentX sends data to AgentY, and AgentY processes it and sends results to AgentZ. Which multi-agent graph setup correctly represents this flow?

hard📝 state output Q15 of 15
LangChain - LangGraph for Stateful Agents
You want to build a workflow where AgentX sends data to AgentY, and AgentY processes it and sends results to AgentZ. Which multi-agent graph setup correctly represents this flow?
AAdd agents AgentX, AgentY; add edge AgentX->AgentZ only
BAdd agents AgentX, AgentY, AgentZ; add edges AgentX->AgentY and AgentY->AgentZ
CAdd agents AgentX, AgentY, AgentZ; add edges AgentZ->AgentY and AgentY->AgentX
DAdd agents AgentX, AgentY, AgentZ; no edges needed
Step-by-Step Solution
Solution:
  1. Step 1: Identify the data flow between agents

    AgentX sends to AgentY, then AgentY sends to AgentZ, so edges must follow this order.
  2. Step 2: Match edges to the described flow

    Add agents AgentX, AgentY, AgentZ; add edges AgentX->AgentY and AgentY->AgentZ correctly adds edges from AgentX to AgentY and AgentY to AgentZ, representing the workflow.
  3. Final Answer:

    Add agents AgentX, AgentY, AgentZ; add edges AgentX->AgentY and AgentY->AgentZ -> Option B
  4. Quick Check:

    Edges follow data flow direction [OK]
Quick Trick: Edges must follow the exact data flow between agents [OK]
Common Mistakes:
MISTAKES
  • Reversing edge directions
  • Omitting necessary agents or edges
  • Assuming edges are optional for workflows

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LangChain Quizzes