Anthropic draws a useful line between workflows, where code predetermines the path, and agents, where the model directs its own process and tool use.[2] The boundary is practical rather than metaphysical. A system can classify the message with a model, retrieve policy with RAG, and still execute a deterministic refund workflow.
Give the model control only where enumerating every branch would be brittle. Keep identity checks, refund ceilings, inventory reservations, and payment mutations in deterministic code. This hybrid is usually easier to test than a loop that asks the model to rediscover business rules on every turn.





