İçeriğe atla
Jev | typesafeAPI & Playground
…

Use Cases / agent-safety

Jev Ajan güvenliği

Ajanlar shell, ödeme veya silme API’lerini çağırabilir. Her tool’dan önce uzun sohbet tamamlaması değil, hızlı bir evet/hayır risk kapısı gerekir.

Try a related template free on this host — 5 anonymous real-API runs with no signup — then ship the same schema with a prepaid jv_live_ key. See is Jev free? and playground.

Why Jev

Noul ve Score primitifleri, onlarca–yüzlerce milisaniyede eşiğe bağlanabilir kalibre risk (allow / confirm / block) verir. Planlanan tool adı + args özetini state olarak geçin; tipli yanıta göre kodda dallanın. Örnek: shell rm -rf /workspace → yüksek risk Score + block Choice, çalıştırmadan önce.

How to define the decision

state tool adı, argüman özeti ve isteğe bağlı kullanıcı niyetini içermelidir. allow / confirm / block için Choice artı risk için Score veya Noul sorun. Etiket kümesini ajan runtime’ınızın anladığıyla aynı tutun.

When to use Jev

  • Tool çağrısı öncesi risk kapıları
  • Yıkıcı eylemler için confirm-before-send
  • Ajan planlarında politika kontrolleri

When not to use Jev

  • Sandboxing ve least-privilege IAM’ın yerine geçmek
  • Daha güvenli kod yamaları üretmek
  • Sınırsız çok atlamalı güvenlik denetimleri

Sample input and output

From the live tool template. Run it in the playground for a real API response — sample labels below are illustrative until you click Run.

Input

goal: Clean up the build directory

tool: bash

arguments: rm -rf ./dist && aws s3 sync ./build s3://prod --delete

context: CI deploy step

Sample display fields

  • action: block · 84%
  • risk: 0.84

Block veya düşük güven → duraklatın ve operatör onayı isteyin. Yalnızca risk açıkça çubuğunuzun altındayken allow. Model skorları asla sert IAM reddini veya sandbox kaçış korumasını geçersiz kılmaz.

Failure modes and human fallback

  • Upstream or network errors: retry with backoff; do not invent a decision.
  • Low confidence: route to a human queue or safer default — never auto-act on money/destructive tools.
  • Schema drift: keep a golden fixture set in CI so label changes fail the build before production.
  • Jev yumuşak bir politika kapısıdır — sandboxing veya least privilege yerine geçmez.
  • Yıkıcı para/shell tool’ları kodda sert deny list tutmalıdır.
  • API başarısızlığında fail closed (tool’u çalıştırmayın).

API example

Same prepaid jv_live_ balance as tools. Output tokens are free on this host's metering model.

curl
curl https://jevtypesafe.org/api/v1/decide \
  -H "Authorization: Bearer jv_live_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"state":"Agent tool proposal\nGoal: Clean up the build directory\nTool: bash\nArguments: rm -rf ./dist && aws s3 sync ./build s3://prod --delete\nContext: CI deploy step","questions":{"action":{"type":"choice","instructions":"Should this tool call be allowed, require confirmation, or blocked?","criteria":{"allow":"safe to run automatically","confirm":"needs human confirmation","block":"too risky — refuse"}},"risk":{"type":"score","instructions":"Overall risk of irreversible harm or data exposure (0–3 scale).","criteria":["negligible","moderate","high","critical"]},"destructive":{"type":"noul","instructions":"Is this destructive or irreversible?"},"external_side_effect":{"type":"noul","instructions":"Does this have external side effects (cloud, email, payments)?"},"data_exposure":{"type":"noul","instructions":"Could this expose sensitive data?"}}}'

FAQ

Önce hangi aracı açmalıyım?
Tools’ta Command Safety (Agent Risk) ile başlayın veya /api/v1/decide üzerinde allow/confirm/block seçenekleriyle özel sorular bağlayın.
İnsan yedek yolu nedir?
Block veya düşük güvende ajanı duraklatın ve operatöre onay UI’si gösterin. Yumuşak model skorunun sert IAM deny kurallarını geçersiz kılmasına asla izin vermeyin.

Related use cases

Ready to build?

Free anonymous tool runs, then prepaid packs and a jv_live_ key — independent host, not affiliated with TypeSafe AI.

Jev Ajan güvenliği | Tool çağrılarını çalışmadan önce koru