> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Decision-model routing

> Route a graph agent on a decision model (Jev, GPT-6 Luna Decisions or Gemini Decision 1): one call scores every edge against the conversation and returns the chosen one, with a confidence.

By default a routing LLM picks the next node by writing a tool call. A decision model works differently: in one call it scores every LLM edge on the current node against the conversation and returns the edge it chose, with a confidence, without generating any text. It weighs every edge before it commits to one, so it holds up on the hard turns, where a caller's reply is ambiguous or only partly answers the question, and it answers in a few hundred milliseconds.

## Providers

| Provider (`routing_provider`) | Model (`routing_model`) | Name in the dashboard |
| - | - | - |
| `typesafe` | `jev-latest` | Jev |
| `openai-decisions` | `gpt-6-luna` | GPT-6 Luna Decisions |
| `gemini-decisions` | `gemini-decision-1` | Gemini Decision 1 |

`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's `llm_config`:

```json theme={"system"}
"llm_config": {
  "provider": "openai",
  "model": "gpt-4.1-mini",
  "routing_provider": "typesafe",
  "routing_model": "jev-latest",
  "routing_instructions": "Move on only when the caller has answered the current question.",
  "current_node_id": "greeting",
  "nodes": [ ... ]
}
```

## How a turn is routed

1. Expression, unconditional and event edges are checked first, exactly as with a routing LLM. See [Edges & routing](https://www.bolna.ai/docs/graph-agent/edges-and-routing.md).
2. 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` (or `function_description`) as what choosing that edge means.
3. If the chosen edge has [parameters](https://www.bolna.ai/docs/graph-agent/edges-and-routing.md#inline-data-extraction), 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.
4. 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.

[Router nodes](https://www.bolna.ai/docs/graph-agent/router-nodes.md) route on the decision model too.

> [!TIP]
>
> The decision model sees only each edge's `condition`, so write conditions that say when the move applies ("The caller confirmed the delivery address") rather than labels ("address").

## In logs and executions

Each routed turn reports the decision model's `confidence`, 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.

| Model | Price |
| - | - |
| Jev | \$0.042 per 1M input tokens |
| GPT-6 Luna Decisions | \$0.10 per 1M input tokens |
| Gemini Decision 1 | \$0.10 per 1M input tokens |

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_effort` or a node's own `routing_model`. Saving either is rejected.
* Parameters are filled by the platform routing LLM, `gpt-4.1-mini` on most agents; it cannot be chosen separately.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.