Agentic Steps in Deterministic Workflows
In this article
- Sketch a workflow where code runs a check before the model step and another before any refund, and the model works in between.
- Explain why the model hands back a record with fixed fields instead of a free-text answer.
- Spot a design where the model owns a limit or calls an irreversible action itself, and move that part into code.
- Terms defined here: deterministic shell, agentic step.
Overview
You want a model to work out what a confused customer needs, because no menu of if/else branches covers every message. You do not want that same model to decide who may get money back, or to move the money. So where does its freedom start, and where does it stop?
One useful shape is a sandwich: plain code checks the request before the model sees it, the model reasons inside one bounded step and hands back a structured proposal, and plain code checks that proposal before anything happens that cannot be undone. Afterwards you can sketch that shape for a real process, say what crosses between the parts, and spot a design where the model quietly owns a rule it should never own.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Code outside, model inside
- The entry check
- Inside the agentic step
- A record, not a sentence
- The exit check
- Why a prompt is not a limit
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions