mjdeving
← concepts

Agents

Workflow

A system where the developer fixes the steps before the model runs. Predictable, and usually cheaper than an agent.

A workflow is an automation where you, the developer, decide the steps in advance and write them in code. The model still does work inside it, but the order was fixed before anything ran: classify then route, extract then validate, retrieve then answer, each arrow drawn by you rather than chosen by the model at runtime.

Because the path is fixed, it is cheap, fast, and testable: you can put a real assertion between two steps and fail loudly when an output is wrong. Climb the autonomy ladder from the bottom: deterministic code first, bounded AI inside a fixed flow next, a full agent only when the problem forces it up a rung.