← Все сценарии использования

Repo context selection

Rank which files are actually relevant to a task before spending context (and tokens) on them.

Coding-agent use case · retrieval & context selectionawesome-jev-by-typesafe

"Repository retrieval and context selection" is a core coding-agent pattern: an agent shouldn't stuff every candidate file into the model's context — it's slow, expensive, and dilutes attention. Instead, score each retrieved file for how relevant it is to the task and keep only the ones that clear a bar. A Jev score is ideal here because it's a compact, calibrated judgment you can threshold and audit, run over many files in parallel for a fraction of a cent each — so the agent reads the three files that matter, not the thirty the retriever returned.

Попробуйте вживую

Это настоящее, а не макет. Отредактируйте ввод, нажмите «Запустить», и Jev вернёт каждый типизированный ответ за один round trip — бесплатно, без регистрации. А теперь представьте тот же вызов, запущенный по тысячам элементов параллельно.

POST jevtypesafeai.com/api/v1/decide
state — the input software gives Jev316c
questions — the typed decisions you want back
scorerelevance
How relevant is this file to completing the task?
→ 0…3 · 4 levels
noulinclude
Should this file be included in the agent's working context for this task?
→ probability 0.0 … 1.0
noullikely_edit_site
Is this file a likely place the fix will need to be made?
→ probability 0.0 … 1.0
real API · free · no signup
Typed, calibrated output appears here.
Pick a demo, tweak the input, and hit Run Jev.
Получить ключ API →← Все сценарии использования

Решения, которые принимает Jev

За один вызов Jev оценивает каждое из них — параллельно, на одном и том же вводе:

scorerelevance

How relevant is this file to completing the task?

оценивает это по упорядоченной шкале:

  1. irrelevant
  2. loosely related
  3. relevant
  4. central to the fix
noulinclude

Should this file be included in the agent's working context for this task?

возвращает откалиброванную вероятность да/нет.

noullikely_edit_site

Is this file a likely place the fix will need to be made?

возвращает откалиброванную вероятность да/нет.

Точный запрос

Это реальная полезная нагрузка за живым демо — скопируйте её, измените state, и вы уже строите:

{
  "model": "jev-latest",
  "state": "Task: \"Fix the bug where refunds over the order total are silently accepted.\"\n\nCandidate file surfaced by retrieval: `services/billing/refund.py`\n\nSnippet:\n\n  def process_refund(order, amount):\n      # TODO: validate against remaining balance\n      gateway.refund(order.id, amount)\n      record_refund(order, amount)",
  "questions": {
    "relevance": {
      "type": "score",
      "instructions": "How relevant is this file to completing the task?",
      "criteria": [
        "irrelevant",
        "loosely related",
        "relevant",
        "central to the fix"
      ]
    },
    "include": {
      "type": "noul",
      "instructions": "Should this file be included in the agent's working context for this task?"
    },
    "likely_edit_site": {
      "type": "noul",
      "instructions": "Is this file a likely place the fix will need to be made?"
    }
  }
}

Встройте это в свой код

Читайте типизированные ответы и ветвитесь обычным кодом — без разбора. Автоматически обрабатывайте случаи с высокой уверенностью и направляйте неопределённые к более крупной модели или человеку. Это один вызов API, а вывод бесплатен, так что задавайте сразу все нужные вопросы.

Постройте своё

Каждый сценарий выше — это один вызов API. Попробуйте любой из них бесплатно в playground, затем получите размещённый ключ, чтобы выпустить его за минуты.

Запустить это демо ▶Получить ключ API →
Repo context selection — сценарий использования Jev с живым демо · Jev by TypeSafe AI