How it works
Before the call, a policy looks at the request and chooses a model. A short vendor lookup with no tool can go to a smaller, cheaper model. A question that needs the contract tool, or that will take several steps, goes to a larger model. The inputs are cost, difficulty and tool need. The policy should be readable, a table or a short function, not a hunch buried in a prompt. Store the chosen model id on the request so a later miss can be tied to the route that was taken.
Routing is not a fallback. The choice is made while no call has failed yet. A fallback runs only after the first model or tool fails, times out or comes back unusable. A gateway may host the policy, and the policy is still which model this request deserves. If the cheap route takes the tool-using tasks, average cost hides those misses.
A worked example
Vendor questions routed by tool need
Example, not a measured result.
Procurement agent answering vendor questions.
The policy runs before any model call.
No tool mentioned, and a short question: small model.
Contract clause or a tool call required: large model.
In this example, 800 questions arrive.
500 take the small model. 300 take the large model.
The route id is stored on each request.
Of 40 small-model misses, 25 needed the contract tool.
The policy sent them there before any call failed.
The miss is the route, not a failed call.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- Difficulty is proxied by prompt length. Short questions that need the contract tool go to the cheap model, long polite questions with no tool go to the expensive one, and the policy is not doing what it names.
- The route changes between steps of 1 task. Step 1 used the small model and step 4 used the large one, with no rule that says the task became harder. The trace is then 2 products stitched together.
- A drop in cost is reported as the routing result, and task success on the tool-using slice is not in the report. The cheap route looks successful because the failures were averaged with easy lookups.
How to measure it
Break finish rate, tool errors and cost per task down by the route, on the same task. A route that is cheaper and worse at the task is a different result from a route that is cheaper and holds the finish rate.
Audit the policy inputs against the requests it labelled easy. Sample misses and ask whether a tool was actually required. Store the model id that was chosen before the call, so a fallback later in the trace is not mistaken for the route.
Further reading
How Abracadabra helps
Split task success and the conversations behind it by the model the policy chose, for the same task and cohort, and read the ones where a cheap route stopped on a request that needed a tool.
Experimentation, canary releases and guarded rollouts are in early access. Today, compare task success before and after a change on the same task and cohort, and open the conversations behind a drop.
Request access to read this on your own agent.