Skip to content
Jev Hub

[ Use case · Agents ]

Can Jev make decisions inside an AI agent?

Pick the next action in an agent loop in milliseconds.

Updated By Jev Hub

[ TLDR ]Partial fit
  • Yes, for the choice steps. Agents spend much of their time picking the next action from a known list.
  • Jev can make that pick in tens to hundreds of milliseconds while a language model handles planning and writing.
  • Reported browser-agent runs cost fractions of a cent per task.

Is Jev a fit for steps?

Use Jev when:

  • Your agent repeatedly chooses from a known set of actions or elements.
  • Latency matters: games, browsers, real-time systems.
  • You already use a language model for planning and want to cut its calls.

Skip it when:

  • The step requires writing, coding or multi-step reasoning. Jev can't plan.
  • The set of possible actions isn't known in advance.

Which questions does Jev answer?

One request per step, 2 questions. Jev answers them in parallel.

  • Which element should the agent click next to make progress on the goal? (choice. Options: 1, 2, 3, 4)
  • Has the goal been fully completed on this page? (yes or no. Options: Yes, No)
ONE STEPJEV ANSWERSWhat to click next?Goal finished?YOUR CODEClick itStop the agentUnsure: text model
One step, 2 questions, then your code. Jev answers the questions about each step in one request. Your own code reads the answers and their probabilities and decides what happens next.

What does it cost?

About $8.90 a month for 200,000 steps of about 680 words each: 4.5¢ per 1,000 at list price, billed by TypeSafe AI. Adjust the numbers in the calculator.

What does TypeSafe's worked example show?

TypeSafe's cookbook picks at most one skill for an agent's turn out of the 182 in Nous Research's Hermes catalogue. It uses two requests: one to rank the candidates and one to re-check the top few. A companion cookbook, function calling, maps plain-language requests to ordinary typed functions the same way.

  • The agent's language model keeps the planning; Jev makes the narrow choice of which skill or function fits the request.
  • "At most one" matters: when no skill fits, the right answer is none, so the agent does not run a wrong one.

Source: TypeSafe's cookbook Skill suggestion (opens in a new tab). These are the maker's own results on its chosen data; test on yours.

How do you get started?

  1. Test it in the playground. No code needed. Paste a real step into TypeSafe's playground and ask: “Which element should the agent click next to make progress on the goal?” with the options 1, 2, 3, 4. You'll see the answer and its probability. Open the playground (opens in a new tab).
  2. Use an existing tool. We haven't found a ready-made tool for this workload yet. See what people have built: Voice-controlled computer use for the Mac, Model router, Jev Router on OpenRouter, or browse all community builds.
  3. Integrate it. To run it on every step automatically, call Jev from the system where your steps live. The developer details below include the full request.

What have people reported?

  • Browser agent: flight search: 1 task for under 1¢, 7 seconds. Gregor Zunic, co-founder of Browser Use, self-reported.
  • Minecraft gameplay agent: 1 session (8m 43s) for 97¢. Ronak Malde, self-reported.

Self-reported figures are the author's own; we haven't reproduced them. More on the costs page.

Common questions

How do developers set it up?

The request

One request per step with all 2 questions batched over the same state, so Jev reads the state once. Keys below are the names you'll see in the response.

POST api.typesafe.ai/v1/systemone
{
  "model": "jev-latest",
  "state": "Goal: Book the cheapest nonstop SFO→JFK on Oct 12.\nPage: Search results. Visible elements: [1] Sort by price, [2] Nonstop filter, [3] First result $412 (1 stop), [4] Next page",
  "questions": {
    "next_action": {
      "type": "choice",
      "instructions": "Which element should the agent click next to make progress on the goal?",
      "criteria": {
        "1": "Sort by price",
        "2": "Nonstop filter",
        "3": "First result",
        "4": "Next page"
      }
    },
    "goal_done": {
      "type": "noul",
      "instructions": "Has the goal been fully completed on this page?"
    }
  }
}

How to wire it up

  1. Let your planner (a text model) decide the goal and sub-goal.
  2. At each step, send the goal plus the list of visible elements to Jev as a Choice.
  3. Fall back to the text model when confidence is low or no option fits.

Watch out for

  • Large pages mean large state. Send the element list, not the raw HTML.
  • Watch the 32k-token limit on state plus the longest question.

New to writing Jev questions? Read the question design guide.