FOUNDATIONS · 4 MIN READ

Workflow, single agent, or multiple agents?

Choose the shape of the system from the shape of the task.

Use a workflow for a known path

If every request follows extract, validate, and save, encode those stages explicitly. The model can perform an uncertain step within a predictable process. Application code can check the output before proceeding.

Use an agent for variable paths

An agent is useful when the next action depends on the observations. A support request may need an order lookup, a policy lookup, both, or neither. Limit the available actions and make each tool return an explicit result.

Use multiple agents for a concrete reason

Separate agents when they need distinct permissions, different tools, independent contexts, or parallel work that can be evaluated separately. Define who owns the final answer, what each specialist returns, and what happens when a specialist fails.

Compare the additional coordination cost with a single agent on the same tasks before expanding the architecture.

Keep exploring

Specialists with a clear contractAn agent that can pause and resumeBuild an explicit agent loop with LangGraph