Classification: DECISION FRAMEWORK, not a measured contest between code and a model.
View the full infographic โ ยท View this article
Use an LLM when the task genuinely needs language interpretation, synthesis or judgement under a stated rubric. Use deterministic code or a direct query when exact rules and structured inputs can answer it reliably. Then verify whichever path you choose.
Start from acceptance criteria
- Exact lookup, arithmetic, schema validation or deduplication: prefer a deterministic operation when the source and rule are known.
- Ambiguous language, open-ended synthesis or nuanced classification: a model may be appropriate, with examples and a review rubric.
- High-impact or uncertain output: add an independent verifier or human gate regardless of the generator.
This is not a claim that deterministic tools always win. Bad source data, incorrect rules or brittle parsing can fail as clearly as an LLM. Compare accepted task quality, maintenance effort, retries, runtime and human review.
A staged routing pattern
- Try the simplest deterministic method that can satisfy the contract.
- Check output against explicit acceptance criteria.
- Escalate to a suitable model only when the deterministic route lacks needed interpretation or fails its defined check.
- Carry a concise verified summary into the stronger route rather than replaying unrelated context.
- Record model, provider, attempts, usage, acceptance and human handling for comparisons.
Token routing is one lever, but a cheaper model is adequate only if quality still passes. The token rules tool includes deterministic-first and quality-gated escalation rules. For cost scenarios, use the calculator and keep user inputs distinct from measured usage.
