Agents and workflows, side by side

Should your code run the steps, or should the model?

Agents and tool calling · about 5 minutes

There are two ways to put an LLM to work. In a workflow, your code runs the steps and the model fills in the blanks. In an agent, the model picks the steps. In our test, each did better on a different kind of job.

Sketch: one Xiaohei walks a dotted line across three stepping stones; another stands among scattered tools with paths fanning out