Fewer tokens.
A value already in context costs one reference, not every character of it.
In development
Most tool-call arguments already exist in context. Flow Cortex points at them instead of typing them out again.
A model that proposes typed tool calls, and a runtime that checks every call before it runs. Built for API workflow agents.
A value already in context costs one reference, not every character of it.
Fewer sequential model steps means less waiting between actions.
Every proposal is valid for the tool's schema before your code sees it.
Measured, not promised
We counted where every argument value came from in 17,437 public tool calls. The census motivated the design. The next section shows what a trained model does with it.
An ID, amount or date returned by an earlier call.
Flow Cortex emits one reference token
Trained and measured
We fine-tuned one 9B model twice on the same examples: once to write the full JSON, once to write a short sequence of choices that the runtime expands into the same JSON. Both were scored on the same held-out records.
Lower is better. The JSON baseline is also shown with its best speed-up, speculative decoding.
Includes reading the prompt, building state, every model call, the grammar and the checks. 20 held-out records, one request at a time. Flow Cortex needs about seven short model calls per decision; the model call time (about 20 ms each) is most of the remaining 150 ms.
Share of held-out records where the action matches. Flow Cortex is scored on content, ignoring sentence wording; literal JSON on strict exact match.
| Action | Literal JSON | Flow Cortex |
|---|---|---|
call 197 records | 88.3% | 95.4% |
respond 21 | 85.7% | 85.7% |
ask_user 31 | 71.0% | 96.8% |
abort 43 | 100% | 100% |
final 8 | 100% | 87.5% |
Tool calls are the main job and improve. The right action and the right tool were chosen on all 300 records. Literal JSON is scored strictly, so with wording ignored its numbers can only rise.
Lower latency
Move the sliders to estimate decoding time for one task. Step counts come from the census. Time per step is your assumption; on our trained model we measured 6.6 ms per step.
Estimate, not a benchmark. Mean steps from the census times your step time. Excludes prefill and runtime checks, which are the same for both. The published anchor for an 8B model is 6.3 to 9.2 ms per step.
Typed responses
Every decision is exactly one of five actions. Records are closed, so an extra field is invalid, and identifiers are minted by the runtime, so the model cannot invent one.
Trust boundary
A typed call is not a correct call. A well-formed refund can still name the wrong account or amount. Ordinary code checks every proposal before anything reaches a tool.
Proposal refund(order: obs2/orders/0, amount: 4,250, currency: USD)
Press Run checks to send the proposal through the runtime.
Agentic workflows
The first workload is API workflow agents: lookups and updates keyed by IDs, enums, dates and amounts. Pick one to see where each value comes from.
Hard planning steps route to a larger model, and that route passes the same runtime checks.
Build with Flow Cortex
We are looking for teams running API workflow agents to share traces for the next census and to try early builds.