vitro DocsPricing

Decision providers.

Why an agent reads 77% less with one, what vitro asks it, and what it sends.

Some questions about a page have no exact string to match: which of these buttons starts checkout, did the order go through, which parts of this page matter for renewing a licence. vitro can ask those of a decision API, with a key you bring.

Why use one

Without a decision API, an agent reads the full page into its context and reasons over all of it to find one button. With one, it asks and reads only the answer.

Five everyday tasks on real pages, run both ways three times each with TypeSafe Jev. "Without" is already vitro's trimmed snapshot, so the gain shown is the decision API's alone. Only the "without" column works with no key; every "with" figure needs a decision-provider key. Tokens are estimated as characters / 4. Measured 2026-11-12, in a separate run from Fewer tokens, so the Erlang article reads ~15,162 here and ~15,109 there.

Task, and what the agent asks insteadTokens the agent readsRight
Click the Star button on a GitHub repository
find(description:)
~3,422 → ~106 (97% less)3/3
Find out who created Erlang, on its Wikipedia article
snapshot(goal:)
~15,162 → ~4,086 (73% less)3/3
Check a search returned results, not an error
expect(means:)
~1,226 → ~59 (95% less)3/3
Locate a login form's four controls
find(descriptions:)
~333 → ~242 (27% less)3/3
Wait for results that load three seconds late
wait_for(means:)
~468 over 4 snapshots → ~252 over 2 calls (46% less, half the turns)3/3

Across the five: ~20,600 tokens without, ~4,700 with, 77% fewer, and every answer right. "Right" means the answer was checked against the page: the button found was the Star button, the goal snapshot still named Joe Armstrong, the error statement came back false.

What the agent gains:

  • Room to think. Context not spent on a 15,000-token article stays free for the task, and reasoning over 4,000 tokens is cheaper and quicker than over 15,000.
  • Answers it can act on. The reply is a uid from the agent's own snapshot, a verdict with a probability, or "none". There is no paragraph to interpret and no element to invent.
  • Fewer turns. A form's controls come back in one call, and a wait checks for itself. Each skipped turn is a model call the agent does not pay for.

What it costs:

  • Time per call: 0.2 to 0.5 seconds on Jev in this run, against a few hundredths for a plain snapshot. Goal snapshots measured on their own took up to 0.8 seconds on Jev; see Fewer tokens. That is well under the time a model takes to read the 15,000 tokens it skips.
  • Money: billed by your provider to your key, a fraction of a cent per question.
  • The page leaves the machine for the calls that use it; see what leaves.
  • Small pages gain least. A login form is already a few hundred tokens; the gain there is fewer calls.

Re-run it with any provider configured: elixir bench/decision_impact.exs --runs 3.

What a decision API is

A decision API answers typed questions about a piece of state. It does not write text. Each answer is one of the values the question offered, with a probability:

Question typeAnswervitro uses it for
Yes or noa probability that it is truestatements about a page; whether a section serves a goal
One of thesethe chosen option, and a probability for every optionpicking an element out of the page's own nodes

Nothing is generated, so there is nothing to parse: an answer is always an element on the page, or an explicit "none".

What vitro asks

Five arguments on existing tools. Without a provider they are not in the schema an agent reads, and every tool works as before.

ArgumentThe questionPer callWhat the agent gets
find(description:) "Which element on the page is: the primary checkout button?" over the page's named nodes, plus "none" 1 request, 1 question uids from the snapshot, each with a probability, or decision: "none"
find(descriptions:) the same, once per description, over the same nodes 1 request, up to 20 questions one result per description, all on one snapshot
expect(means:) "Judging only the page, is this statement true?" once per statement 1 request a verdict and a probability per statement, beside the literal checks
snapshot(goal:) "Would an agent pursuing this goal need anything in section s7?" once per section 1 request, up to 48 questions the sections that serve the goal; the rest listed by id and label
wait_for(means:) the expect(means:) question, on a fresh snapshot each time about 1 request a second, at most 30 returns once it is 0.7 likely, with how long it waited

One request, in full

snapshot(goal: "renew my driving licence") sends this, shortened here to two sections. The page goes as vitro's own line tree, each section cut to 1,200 characters:

{
  "state": {
    "url": "https://www.gov.uk/browse/driving",
    "title": "Driving and transport - GOV.UK",
    "goal": "renew my driving licence",
    "sections": {
      "s3": { "label": "Driving licences",
              "content": "212 heading Driving licences\n214 link Renew your driving licence\n..." },
      "s9": { "label": "Support links",
              "content": "401 contentinfo\n405 link Privacy\n406 link Cookies\n..." }
    }
  },
  "questions": {
    "s3": { "type": "noul",
            "instructions": "An agent is working on this page toward a goal: renew my driving licence. Would it need anything in section s3 of the state, an element to act on, or information to read?",
            "criteria": { "true": "Section s3 holds something the goal needs, or might",
                          "false": "Nothing in section s3 serves the goal" } },
    "s9": { "type": "noul", "instructions": "...", "criteria": { "...": "..." } }
  }
}

The reply:

{ "answers": { "s3": { "noul": 0.96 }, "s9": { "noul": 0.02 } } }

vitro keeps s3, drops s9, and tells the agent it did: goal.hidden: [{section: "s9", label: "Support links", relevance: 0.02}]. snapshot(sections: ["s9"]) brings it back without asking again.

The rules it follows

  • Every choice has a way out. find always offers "none". Without it, a page with no such element still gets its closest node: measured on absent elements, that happened at 0.81 confidence. With it, the answer was "none" at 0.98.
  • Lenient where a mistake costs a call, strict where it costs an action. A section is kept from 0.3, because dropping the one the agent needed costs a second call. A wait ends at 0.7, because ending early sends the agent on to a page that is not ready.
  • Probabilities are shown. A bare true or false would hide a 0.51 that an agent should not act on.
  • The page is the snapshot's. Every uid in an answer comes from the agent's own snapshot, and a click on a page that has changed since is refused, whatever the provider said.
  • Numbers stay in code. Counts, dates and arithmetic are never asked of the model.
  • It never chooses the next step. Letting the model pick what to do was measured and rejected: right most of the time, and wrong at 0.91 confidence on a rerun.

Providers

ProviderModelsQuestions per requestYour data
TypeSafe Jev jev-latest, or a pinned version 100 sent to TypeSafe with your key, under your agreement with them
Cloudflare Clef clef (larger), clef-flash (faster, cheaper): your choice 64 Workers AI on your account; Cloudflare lists Clef with zero data retention
OpenAI Decisions gpt-6-luna (beta) 400 abuse-monitoring logs up to 30 days; not used for training by default

Measured on the same five pages, a goal snapshot kept the element the goal needed in all fifteen runs across Jev, Clef and Clef Flash, in 0.2 to 3.6 seconds. Fewer tokens has the numbers.

Turning it on

  • On your machine: Settings, then Decision provider. Pick who answers, add the key, and press Check now to prove it works with one real request. Or in a terminal: vitro judgement use jev and vitro judgement key set jev. Keys are kept in ~/.vitro/credentials.json, readable only by you.
  • On vitro.run: a team admin adds the key on the Team tab. It is checked with one real request, stored encrypted in Supabase Vault, and never shown again. vitro.run brings no key of its own, so a team without a key gets no decision questions.

Agents see the new arguments after they reconnect. status says which provider answers.

What leaves, and what does not

  • Sent, only when an agent uses one of the five arguments: the accessibility tree of the part of the page being judged (as lines of role and name), the URL, the title, and the question. wait_for(means:) sends it on every check.
  • Never sent: screenshots, HTML, cookies, storage, network bodies, console logs, or anything from a call that did not use one of the five.
  • Your key goes only to the provider it belongs to. vitro never shows it again after it is saved and never falls back to another provider.

On a page that is not yours to share, leave the five out and use the role-and-name form of find, which never leaves the browser.