← すべてのユースケース

Agent skill routing

Pick which skill or tool a coding agent should use for a request — or decline when none fit.

Coding-agent use case · skill & tool selectionawesome-jev-by-typesafe

"Skill and tool selection" is the first coding-agent pattern in the community awesome-jev catalog: as an agent's toolbox grows to dozens of skills, deciding which one a turn needs becomes a real bottleneck. Keyword or embedding matching can't say "none of these" — it always returns its closest guess. A Jev choice returns one skill with per-option probabilities, so a weak match falls below your threshold and the agent declines or asks the big model, instead of confidently firing the wrong tool. That's the difference between an agent that misroutes silently and one that knows when it doesn't know.

ライブで試す

これはモックではなく本物です。入力を編集して「実行」を押すと、Jev が 1 回の往復ですべての型付き回答を返します — 無料、登録不要。同じ呼び出しを数千件のアイテムに並列で実行する様子を想像してみてください。

POST jevtypesafeai.com/api/v1/decide
state — ソフトウェアが Jev に渡す入力368c
questions — 返してほしい型付きの判定
choiceskill
Which skill should the agent use first for this request?
→ 次のいずれか: run_tests, read_logs, edit_code, search_web, open_pr, none
noulconfident
Is the top skill a clearly correct fit (safe to auto-run without asking)?
→ 確率 0.0 … 1.0
noulneeds_followup
Will this request likely need more than one skill to resolve?
→ 確率 0.0 … 1.0
本物の API · 無料 · サインアップ不要
型付きで較正済みの出力がここに表示されます。
デモを選んで入力を調整し、こちらを押してください Jev を実行.
API キーを取得する →← すべてのユースケース

Jev が下す意思決定

1 回の呼び出しで、Jev はこれらのそれぞれを — 同じ入力に対して並列に — 評価します:

choiceskill

Which skill should the agent use first for this request?

次の選択肢の中から 1 つを選びます:

  • run_tests — run the test suite
  • read_logs — fetch and search recent logs
  • edit_code — modify source files
  • search_web — look up external docs/errors
  • open_pr — open a pull request
  • none — no available skill clearly fits — ask or escalate
noulconfident

Is the top skill a clearly correct fit (safe to auto-run without asking)?

較正済みの yes/no の確率を返します。

noulneeds_followup

Will this request likely need more than one skill to resolve?

較正済みの yes/no の確率を返します。

実際のリクエスト

これがライブデモの背後にある本物のペイロードです — コピーして、state を変えれば、もう構築できています:

{
  "model": "jev-latest",
  "state": "An AI coding agent receives: \"The staging deploy is failing with a 502 right after the container starts — can you figure out why?\"\n\nAvailable skills:\n- run_tests: run the project's test suite\n- read_logs: fetch and search recent service/deploy logs\n- edit_code: modify source files\n- search_web: look up external docs/errors\n- open_pr: open a pull request with changes",
  "questions": {
    "skill": {
      "type": "choice",
      "instructions": "Which skill should the agent use first for this request?",
      "criteria": {
        "run_tests": "run the test suite",
        "read_logs": "fetch and search recent logs",
        "edit_code": "modify source files",
        "search_web": "look up external docs/errors",
        "open_pr": "open a pull request",
        "none": "no available skill clearly fits — ask or escalate"
      }
    },
    "confident": {
      "type": "noul",
      "instructions": "Is the top skill a clearly correct fit (safe to auto-run without asking)?"
    },
    "needs_followup": {
      "type": "noul",
      "instructions": "Will this request likely need more than one skill to resolve?"
    }
  }
}

コードに組み込む

型付きの答えを読んで、素のコードで分岐します — 解析は不要です。確信度の高いケースは自動処理し、不確かなものはより大きなモデルや人へ振り分けます。1 回の API 呼び出しで出力は無料なので、必要な質問はすべて一度に投げてください。

自分のものを作る

上のどのシナリオも 1 回の API 呼び出しです。プレイグラウンドでどれでも無料で試してから、ホスト型キーを取得して数分でそのまま本番投入できます。

このデモを実行 ▶API キーを取得する →
Agent skill routing — ライブデモ付きの Jev ユースケース · Jev by TypeSafe AI