AI EngineeringInterview preparation
Advanced·Concept·2 min read

Do I need an agent? Do I need LangGraph?

Practice this question
  • If next steps are fixed, use a sequence of functions or a workflow.
  • If next information actions genuinely vary, a bounded agent may help.
  • Use LangGraph when explicit state, branching, review pauses, or recovery justify it; a short read-only loop can remain simple.

Evidence: compare fixed workflow, single agent, and extra specialists on task completion, calls, cost, and failure modes. Add multi-agent roles only for demonstrated benefits.

Adapted from 13_AI.MD · “5. Do I need an agent? Do I need LangGraph?”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.