Fixed call, workflow, agent or delegation: choosing by evidence
Choose between a fixed model call, a deterministic workflow, a single tool-using agent and delegation using observable criteria.
By Invicly Tech, , in Generative AI, Agentic AI and RAG. About 11 minutes to read.
In short
An agent is a system where the model decides which step to take next, usually by choosing tools in a loop. That flexibility costs extra model calls, latency and unpredictability, so it should be chosen on evidence. Compare four options in order of complexity: a fixed model call, a deterministic workflow your code controls, a single tool-using agent and delegation between agents, and pick the simplest one that meets your measured targets.
Think of it like this: A fixed call is a vending machine, a workflow is a recipe, an agent is a cook who decides what to do next, and delegation is a head chef handing tasks to other cooks.
Explained simply
Not every AI feature needs an agent. Sometimes one model call is enough, for example turning a support message into a category. Sometimes a fixed recipe works best, such as search the documents, then write the answer. That recipe is what fixed RAG does.
An agent is different. The model looks at the situation and decides what to do next: search again, check a ticket, ask a question or stop. It repeats this until it is done. That makes it flexible, but every extra step costs time and money.
Delegation goes one step further. One agent hands part of the job to another agent, a bit like a manager passing work to a specialist. Each handoff adds more calls and more chances to lose information along the way.
The safe habit is to start simple and move up only when you can show the simpler option fails. You show it with numbers from the same test questions, not with a single impressive demo.
Press Play on a diagram to walk through it one step at a time.
- Your code fixes the steps
- Same path every time
- Easy to test and price
- Fails on inputs the path did not expect
- Model picks tools in a loop
- Path varies per request
- Needs budgets and stop rules
- Handles open-ended requests
- One agent hands work to another
- Extra handoff state and calls
- Harder to trace and evaluate
- Only when specialists clearly help
- Needs no outside data
- Fixed model call
- Same steps every time
- Deterministic workflow
- Fixed RAG
- Next step depends on results
- Single bounded agent
- Compare with workflow first
- Distinct specialist skills
- Delegation
- Only after a controlled comparison
In depth
Four options and their control flow
A fixed model call has no loop: input goes in, a typed output comes out. A deterministic workflow chains several steps, some of which may call a model, but your code decides the order. Routing a request to one of three prompts, or retrieve then generate, are both workflows.
A single tool-using agent runs a loop. In each turn the model returns either a final answer or a request to call a tool. Your runtime runs the tool, adds the result to the history and asks again. The path differs from request to request.
Delegation means one agent passes a subtask, plus the state it needs, to another agent with its own tools and instructions, then uses what comes back. It is sometimes called a handoff or a multi-agent design.
- Step 1Fixed call
One prompt, typed output
- Step 2Workflow
Code-ordered steps, e.g. fixed RAG
- Step 3Single agent
Model chooses tools in a bounded loop
- Step 4Delegation
Agent hands subtasks to a specialist
Observable reasons to choose each
Write the reasons as things you can count on your fixture set. A fixed call fits when the task needs no outside data and one output field set is enough. A workflow fits when the steps are the same for almost every request, such as always retrieving from one index. An agent fits when a measurable share of requests needs steps that depend on earlier results, for example check the ticket, then search the policy that applies to its product, and the workflow fails those cases. Delegation fits only when specialists with separate tools or instructions clearly beat one agent on the same cases.
Also record reasons against complexity: strict latency targets, a need for identical audit trails, or a small team that has to support the system.
- Fixed call: no outside data needed
- Workflow: same steps for most requests
- Agent: steps depend on earlier results
- Delegation: specialists measurably win
- Against: tight latency, strict audit, small team
Estimating cost and latency before you build
You can estimate roughly. A fixed call costs one model call. Fixed RAG costs one retrieval plus one model call, with a longer prompt because of the evidence. An agent costs one model call per turn, and the prompt grows every turn because the history and tool results are sent again. If an average run takes three turns with 3,000 input tokens growing by 1,000 per turn, it uses about 12,000 input tokens, four times a single 3,000-token call.
Latency adds up the same way: model time per turn plus tool time. Write the estimate down with your assumptions, label it illustrative, and replace it with measured values from the fixture runs. Prices change, so keep them in configuration, not in code.
- 1 retrieval, 1 model call
- Predictable tokens
- Latency close to one call
- 3 or more model calls
- Prompt grows each turn
- Latency adds up per turn
- Calls for each agent
- Handoff state re-sent
- Highest and most variable
Default to the simplest option that works
Make the decision a small experiment. Build the fixed RAG workflow first, run the fixture questions and record success, cost and latency. Look at the failures. If most are retrieval problems, an agent will not fix them; better search will. If failures need a follow-up lookup, try a bounded agent on the same questions and compare.
Move up only if the agent clears a threshold you set beforehand, for example ten more points of task success on the multi-step cases, with no new permission failures and latency within budget. Otherwise keep the workflow. Write the decision and its numbers in a short design note so the next person knows why the system looks the way it does.
Learn it in 4 short steps
About 40m each. Track them with a timer in your plan.
- 1Describe each option's control flow~40m
- 2List observable reasons to pick each~40m
- 3Estimate cost and latency of each~40m
- 4Default to the simplest option that works~40m
Key points
- Fixed RAG is a workflow: retrieve, then generate, decided by your code.
- Choose an agent only when the steps cannot be known in advance and a workflow measurably fails.
- Each extra loop turn adds a model call, so cost and latency grow with the number of steps.
- Delegation adds handoffs that can lose context; justify it with a controlled comparison.
- Write the reason for your choice as observable criteria, then test it against a simpler baseline.
Key terms
Tap a card to flip it. 0/5 known
Examples
Refund questions: the workflow wins
Fixture set: 20 refund questions. Step 1: run fixed RAG; it answers 17 correctly with valid citations, at about one model call each. Step 2: classify the three failures; two are search failures (synonyms) and one is a stale FAQ. Step 3: an agent would not fix either cause, so the decision is to keep fixed RAG and improve search and content. Expected evidence: a design note with the numbers, the failure classes and the decision. No agent code is written.
Order questions: an agent earns its place
Fixture set: 10 questions like why was my refund for ticket T-1042 refused. Fixed RAG cannot answer because it does not know the ticket's product, so it retrieves the general policy and gets 3 of 10. Step 1: build a bounded agent with two read-only tools, get_ticket_status and search_knowledge. Step 2: run the same 10; the agent checks the ticket, then searches the product's policy, and gets 8 of 10 with an average of 2.4 tool calls. Step 3: latency rises from about 1.5 to 4 seconds (illustrative), inside the 6 second target. The agent is adopted for this request type only.
request type option success avg calls p50 latency
refund policy fixed RAG 17/20 0 1.4 s
ticket follow-up fixed RAG 3/10 0 1.5 s
ticket follow-up agent 8/10 2.4 4.0 s
(figures illustrative; replace with your fixture results)Quick reference
- Fixed call: one prompt, one typed output, no tools
- Workflow: code decides the steps; fixed RAG is a workflow
- Agent: the model picks the next tool in a loop until it stops
- Delegation: one agent hands a subtask and its state to another
- Agent tokens grow each turn because history is re-sent
- Set the adoption threshold before running the comparison
- Write the decision, numbers and assumptions in a design note
Common mistakes
- Starting with an agent framework before a fixed workflow has been built and measured.
- Choosing an agent because a demo looked impressive, without comparing it on the same fixture questions.
- Ignoring that agent cost depends on the number of turns, which you cannot know before the request runs.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
List five request types your support assistant might get and label each fixed call, workflow, agent or delegation, with one sentence of reasoning.
- Exercise 2medium
Estimate input tokens for a three-turn agent run where the first call sends 2,500 tokens and each tool result adds 800 tokens, and compare with fixed RAG at 3,000 tokens.
- Exercise 3hard
Write a short design note template that records the options compared, fixture set version, thresholds set in advance, measured results and the decision.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Is fixed RAG outdated now that agents exist?
- No. For many question types it is faster, cheaper and easier to test, and it is the baseline an agent must beat.
- Do I need an agent framework to build an agent?
- No. A loop of a few dozen lines in plain Python shows every decision clearly. Frameworks can come later, once you know what you need from them.
- Where does the advice to start simple come from?
- Both Anthropic's building effective agents article and Google Cloud's architecture guide recommend the least complex design that meets your needs.