An agent = an LLM that decides what to do next, calling tools in a loop.
A pipeline = predefined steps the LLM fills in.
Pipelines are almost always cheaper, faster, and more reliable.
Choose an agent only when:
- The number of steps depends on the input (you can't enumerate them in advance)
- The choice of tool depends on the output of a prior tool
- You need conversational follow-ups