Providers
routing_model is optional. Leave it out to use the provider’s model above.
Set it up
Dashboard: in the graph editor, open Agent setup, then LLM, and choose the provider and model under Routing model & provider. The routing reasoning effort and each node’s routing model override are hidden while a decision model is selected, because a decision model routes every node. API: set the routing provider in the agent’sllm_config:
How a turn is routed
- Expression, unconditional and event edges are checked first, exactly as with a routing LLM. See Edges & routing.
- The decision model is asked which LLM edge matches the caller’s latest reply, or whether to stay on the current node. It reads the routing instructions, the conversation on the current node, and each edge’s
condition(orfunction_description) as what choosing that edge means. - If the chosen edge has parameters, the platform routing LLM fills them in a second call on that edge. If it cannot fill them, the call stays on the current node rather than move without values the next node needs.
- If the decision model cannot answer a turn, because of an error or an answer that is not one of the edges, that turn routes on the platform routing LLM. After a timeout, or three failures in a row, the rest of the call routes on it.
In logs and executions
Each routed turn reports the decision model’sconfidence, from 0 to 1. There is no reasoning: a decision model does not write a rationale. A turn the platform routing LLM answered is reported under that model, with its own reasoning and confidence.
Latency
A turn that stays on its node, or moves on an edge without parameters, is one decision call: typically a few hundred milliseconds. A move onto an edge with parameters adds the parameter-filling call, about a second in total.Pricing
Decision models are billed per input token. Their answer is a choice, not text, so there is no output charge.
The parameter-filling call, and any turn the platform routing LLM answers, is billed at that model’s token rates, like any routing call.
Limits
- A graph that routes on a decision model does not take
routing_reasoning_effortor a node’s ownrouting_model. Saving either is rejected. - Parameters are filled by the platform routing LLM,
gpt-4.1-minion most agents; it cannot be chosen separately.